/* ==========================================================================
   SG飞艇往期预测记录 — 全站样式
   设计语言：满幅色块 / 超大字重排版 / 虚线数据框 / 跑马灯
   ========================================================================== */

:root {
  --blue: #0057b8;
  --yellow: #ffd700;
  --ink: #111111;
  --paper: #ffffff;
  --grey: #f2f2f0;
  --muted: #6b6b6b;
  --red: #e4322b;
  --green: #0f9d58;

  --nav-h: 62px;
  --pad-x: clamp(16px, 4vw, 56px);
  --radius: 0px;

  /* 内容最大宽度：色块背景保持通栏，内部文字居中对齐到这条基准线 */
  --maxw: 1320px;
  --gutter: max(var(--pad-x), calc((100% - var(--maxw)) / 2));

  --sans: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "微软雅黑", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

/* ---------- 通用排版工具 ---------- */

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.6;
}

.display {
  font-size: clamp(2.2rem, 8.5vw, 7rem);
  line-height: 0.95;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.display--tight {
  font-size: clamp(1.8rem, 5.2vw, 4rem);
  line-height: 1.05;
}

.section-title {
  font-size: clamp(1.6rem, 4.2vw, 3.2rem);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.lede {
  font-size: clamp(15px, 1.6vw, 19px);
  line-height: 1.75;
  max-width: 62ch;
  color: #333;
}

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.wrap {
  padding: clamp(48px, 7vw, 104px) var(--pad-x);
}

.wrap--tight {
  padding: clamp(32px, 4.5vw, 64px) var(--pad-x);
}


.bg-grey {
  background: var(--grey);
}

.bg-ink {
  background: var(--ink);
  color: var(--paper);
}

/* ---------- 顶部导航 ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 var(--pad-x);
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}

.nav__brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.nav__mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: var(--blue);
  color: var(--paper);
  font-size: 12px;
  letter-spacing: 0;
  align-self: center;
}

.nav__brand span {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 34px);
}

.nav__menu a {
  font-size: 13px;
  letter-spacing: 0.1em;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.18s ease, opacity 0.18s ease;
}

.nav__menu a:hover {
  border-color: var(--yellow);
}

.nav__menu a[aria-current="page"] {
  border-color: var(--blue);
  font-weight: 700;
}

.nav__toggle {
  display: none;
  width: 38px;
  height: 32px;
  border: 1px solid var(--ink);
  background: var(--paper);
  cursor: pointer;
  padding: 8px 7px;
  flex-direction: column;
  justify-content: space-between;
}

.nav__toggle i {
  display: block;
  height: 2px;
  background: var(--ink);
}

@media (max-width: 860px) {
  .nav__toggle {
    display: flex;
  }
  .nav__menu {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--ink);
    transform: translateY(-120%);
    transition: transform 0.28s ease;
  }
  .nav__menu[data-open="true"] {
    transform: translateY(0);
  }
  .nav__menu a {
    padding: 16px var(--pad-x);
    border-bottom: 1px solid #e4e4e0;
    font-size: 15px;
  }
  .nav__menu a:hover {
    background: var(--yellow);
    border-color: #e4e4e0;
  }
}

/* ---------- 面包屑 ---------- */

.crumb {
  padding: 10px var(--pad-x);
  border-bottom: 1px solid #e4e4e0;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: var(--paper);
}

.crumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.crumb li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.crumb li + li::before {
  content: "›";
  color: #bdbdb8;
}

.crumb a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.crumb [aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- 色块（首屏主视觉） ---------- */

.block {
  position: relative;
  padding: clamp(24px, 3.4vw, 46px) var(--pad-x) clamp(28px, 3.8vw, 52px);
  overflow: hidden;
}

.block--blue {
  background: var(--blue);
  color: var(--paper);
}

.block--yellow {
  background: var(--yellow);
  color: var(--ink);
}

.block__kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: clamp(16px, 2.6vw, 30px);
}

.block__kicker .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.72);
  }
}

.data-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 5vw, 76px);
  align-items: flex-end;
}

.data-item .label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.72;
  display: block;
  margin-bottom: 4px;
}

.data-item .value {
  font-size: clamp(17px, 2.1vw, 26px);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* 虚线数据框 + 复制 */
.copybox {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  border: 1px dashed currentColor;
  padding: 8px 14px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: background 0.18s ease;
}

.copybox:hover {
  background: rgba(255, 255, 255, 0.14);
}

.block--yellow .copybox:hover {
  background: rgba(0, 0, 0, 0.07);
}

.copybox .label {
  margin-bottom: 2px;
}

.copybox svg {
  width: 17px;
  height: 17px;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
}

.copybox[data-copied="true"] svg {
  stroke: var(--green);
}

/* 圆形箭头按钮 */
.circle-btn {
  width: clamp(64px, 8vw, 104px);
  height: clamp(64px, 8vw, 104px);
  border: 1px solid currentColor;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: inherit;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  flex: none;
}

.circle-btn:hover {
  background: var(--ink);
  color: var(--yellow);
}

.circle-btn svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.block__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: clamp(18px, 2.6vw, 30px);
}

/* ---------- 跑马灯 ---------- */

.ticker {
  background: var(--paper);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  overflow: hidden;
  padding: 7px 0;
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.ticker:hover .ticker__track {
  animation-play-state: paused;
}

.ticker__group {
  display: flex;
  align-items: center;
  gap: 26px;
  padding-right: 26px;
  white-space: nowrap;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
}

.ticker__group b {
  font-weight: 600;
}

.ticker__group i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  display: inline-block;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- 号码球 ---------- */

.balls {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(6px, 0.9vw, 12px);
  align-items: center;
}

.ball {
  --ball-size: clamp(38px, 5.2vw, 62px);
  width: var(--ball-size);
  height: var(--ball-size);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: calc(var(--ball-size) * 0.42);
  font-weight: 700;
  color: #fff;
  border-radius: 50%;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.16);
  position: relative;
}

.ball--sm {
  --ball-size: 30px;
  font-size: 13px;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.16);
}

.ball--xs {
  --ball-size: 24px;
  font-size: 11px;
  box-shadow: none;
}

.ball[data-n="1"] { background: #f2c700; color: #1a1a1a; }
.ball[data-n="2"] { background: #1a6ff0; }
.ball[data-n="3"] { background: #2b2b2b; }
.ball[data-n="4"] { background: #ff7a00; }
.ball[data-n="5"] { background: #3fbfe0; color: #10343c; }
.ball[data-n="6"] { background: #7b4bd6; }
.ball[data-n="7"] { background: #9aa4ad; color: #1a1a1a; }
.ball[data-n="8"] { background: #e4322b; }
.ball[data-n="9"] { background: #6f4a2a; }
.ball[data-n="10"] { background: #17a05e; }

.ball__rank {
  position: absolute;
  bottom: -17px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
}

/* 深色背景上的名次标注 */
.block--blue .ball__rank,
.bg-ink .ball__rank {
  color: rgba(255, 255, 255, 0.86);
}

.block--yellow .ball__rank {
  color: rgba(0, 0, 0, 0.66);
}

.balls--ranked {
  margin-bottom: 20px;
}

/* ---------- 标签 ---------- */

.tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 3px 9px;
  border: 1px solid currentColor;
  white-space: nowrap;
}

.tag--big { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tag--small { background: var(--paper); color: var(--ink); }
.tag--odd { background: var(--blue); color: #fff; border-color: var(--blue); }
.tag--even { background: var(--yellow); color: var(--ink); border-color: var(--ink); }
.tag--dragon { background: var(--red); color: #fff; border-color: var(--red); }
.tag--tiger { background: #0e7d4f; color: #fff; border-color: #0e7d4f; }
.tag--hit { background: var(--green); color: #fff; border-color: var(--green); }
.tag--miss { background: #ddd; color: #666; border-color: #ccc; }

/* ---------- 拼贴网格（首页栏目导航） ---------- */

.tiles {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(10px, 1.4vw, 18px);
}

.tile {
  grid-column: span 3;
  border: 1px solid var(--ink);
  padding: 20px 18px;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--paper);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.tile:hover {
  transform: translateY(-6px);
  background: var(--yellow);
}

.tile--wide { grid-column: span 6; }
.tile--offset { margin-top: clamp(16px, 3vw, 46px); }
.tile--blue { background: var(--blue); color: #fff; }
.tile--blue:hover { background: var(--ink); color: var(--yellow); }

.tile__no {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  opacity: 0.6;
}

.tile__title {
  font-size: clamp(20px, 2.3vw, 30px);
  font-weight: 600;
  line-height: 1.2;
  margin-top: auto;
}

.tile__desc {
  font-size: 13px;
  line-height: 1.6;
  margin-top: 8px;
  opacity: 0.78;
}

.tile__arrow {
  margin-top: 14px;
  font-size: 18px;
}

@media (max-width: 980px) {
  .tile { grid-column: span 6; }
  .tile--wide { grid-column: span 12; }
  .tile--offset { margin-top: 0; }
}

@media (max-width: 560px) {
  .tile { grid-column: span 12; min-height: 160px; }
}

/* ---------- 数字面板 ---------- */

.figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.figure {
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 22px 20px 26px;
}

.figure__num {
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  line-height: 1;
  font-weight: 500;
  font-family: var(--mono);
  letter-spacing: -0.02em;
}

.figure__num small {
  font-size: 0.42em;
  letter-spacing: 0.04em;
  margin-left: 4px;
}

.figure__label {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- 表格 ---------- */

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--ink);
  background: var(--paper);
}

table.data {
  width: 100%;
  border-collapse: collapse;
  min-width: 1020px;
}

/* 表格内的号码球与标签始终保持单行 */
table.data .balls {
  flex-wrap: nowrap;
}

table.data td:nth-child(5),
table.data td:nth-child(6) {
  white-space: nowrap;
}

table.data th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 12px 14px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  white-space: nowrap;
  position: sticky;
  top: 0;
}

table.data td {
  padding: 12px 14px;
  border-bottom: 1px solid #e6e6e2;
  font-size: 14px;
  vertical-align: middle;
}

table.data tbody tr:hover {
  background: #fffbe0;
}

table.data tbody tr:last-child td {
  border-bottom: none;
}

.cell-issue {
  font-family: var(--mono);
  font-weight: 700;
  white-space: nowrap;
}

.cell-time {
  font-family: var(--mono);
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

/* ---------- 筛选条 ---------- */

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
}

.field {
  display: flex;
  align-items: center;
  border: 1px solid var(--ink);
  background: var(--paper);
  height: 42px;
}

.field label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0 10px;
  border-right: 1px solid var(--ink);
  height: 100%;
  display: grid;
  place-items: center;
  background: var(--grey);
  white-space: nowrap;
}

.field input,
.field select {
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  padding: 0 12px;
  height: 100%;
  min-width: 120px;
  color: inherit;
}

.btn {
  height: 42px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.btn:hover {
  background: var(--yellow);
  color: var(--ink);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  border: 1px solid var(--ink);
  background: var(--paper);
  font: inherit;
  font-size: 13px;
  padding: 7px 15px;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}

.chip[aria-pressed="true"] {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.chip:hover {
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--ink);
}

/* ---------- 分页 ---------- */

.pager {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
  flex-wrap: wrap;
}

.pager button {
  min-width: 40px;
  height: 40px;
  border: 1px solid var(--ink);
  background: var(--paper);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.pager button[aria-current="true"] {
  background: var(--ink);
  color: var(--paper);
}

.pager button:disabled {
  opacity: 0.32;
  cursor: not-allowed;
}

.pager__info {
  font-size: 13px;
  color: var(--muted);
  margin: 0 8px;
}

/* ---------- 条形图 ---------- */

.barlist {
  display: grid;
  gap: 9px;
}

.barline {
  display: grid;
  grid-template-columns: 34px 1fr 54px;
  align-items: center;
  gap: 12px;
}

.bartrack {
  height: 22px;
  background: #e9e9e5;
  position: relative;
  overflow: hidden;
}

.barfill {
  height: 100%;
  background: var(--blue);
  width: 0;
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.barfill--hot { background: var(--red); }
.barfill--cold { background: #9aa4ad; }

.barval {
  font-family: var(--mono);
  font-size: 13px;
  text-align: right;
  color: var(--muted);
}

/* 双向占比条 */
.splitbar {
  display: flex;
  height: 46px;
  border: 1px solid var(--ink);
  overflow: hidden;
}

.splitbar > div {
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: flex-basis 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  white-space: nowrap;
}

/* 走势折线 */
.spark {
  width: 100%;
  height: 160px;
  border: 1px solid var(--ink);
  background: var(--paper);
  display: block;
}

/* ---------- 卡片网格 ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(12px, 1.6vw, 22px);
}

.card {
  border: 1px solid var(--ink);
  padding: 22px 20px;
  background: var(--paper);
}

.card h3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 8px;
}

.card p {
  font-size: 14px;
  line-height: 1.7;
  color: #3d3d3d;
}

.card__no {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
  display: block;
  margin-bottom: 14px;
}

/* ---------- 折叠面板 ---------- */

.acc {
  border-top: 1px solid var(--ink);
}

.acc details {
  border-bottom: 1px solid var(--ink);
}

.acc summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 44px 18px 0;
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 500;
  position: relative;
}

.acc summary::-webkit-details-marker {
  display: none;
}

.acc summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  line-height: 1;
  color: var(--blue);
}

.acc details[open] summary::after {
  content: "–";
}

.acc summary:hover {
  color: var(--blue);
}

.acc .acc__body {
  padding: 0 0 20px;
  font-size: 15px;
  line-height: 1.8;
  color: #3d3d3d;
  max-width: 72ch;
}

/* ---------- 两栏排版 ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(20px, 4vw, 64px);
  align-items: start;
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.stack > * + * {
  margin-top: clamp(14px, 2vw, 22px);
}

/* ---------- 时间线 ---------- */

.timeline {
  border-left: 2px solid var(--ink);
  padding-left: 22px;
  display: grid;
  gap: 26px;
}

.timeline li {
  position: relative;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 7px;
  width: 12px;
  height: 12px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.timeline h4 {
  font-size: 17px;
  font-weight: 600;
}

.timeline p {
  font-size: 14px;
  color: #444;
  margin-top: 4px;
}

/* ---------- 提示条 ---------- */

.notice {
  border: 1px solid var(--ink);
  border-left: 8px solid var(--yellow);
  padding: 16px 20px;
  font-size: 14px;
  line-height: 1.75;
  background: var(--paper);
}

.notice strong {
  letter-spacing: 0.04em;
}

/* ---------- 页脚 ---------- */

.footer {
  background: var(--ink);
  color: #cfcfcf;
  padding: clamp(40px, 5vw, 70px) var(--pad-x) 28px;
}

.footer a {
  color: #cfcfcf;
}

.footer a:hover {
  color: var(--yellow);
}

.footer__top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 28px;
  padding-bottom: 30px;
  border-bottom: 1px solid #3a3a3a;
}

.footer__brand {
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  color: #fff;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.footer h5 {
  margin: 0 0 12px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
}

.footer li + li {
  margin-top: 7px;
}

.footer li {
  font-size: 14px;
}

.footer__bottom {
  margin-top: 24px;
  font-size: 12px;
  line-height: 1.8;
  color: #8f8f8f;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  justify-content: space-between;
}

.age {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid var(--red);
  color: var(--red);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  flex: none;
}

/* ---------- 回到顶部 ---------- */

.totop {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  background: var(--yellow);
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  transform: translateY(10px);
}

.totop[data-show="true"] {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ---------- 进入动画 ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---------- 小工具 ---------- */

.hide-sm {
  display: initial;
}

@media (max-width: 700px) {
  .hide-sm {
    display: none;
  }
}

.muted {
  color: var(--muted);
}

.center {
  text-align: center;
}

.mt-s { margin-top: 12px; }
.mt-m { margin-top: 24px; }
.mt-l { margin-top: clamp(28px, 4vw, 52px); }

/* ==========================================================================
   内容居中容器
   色块与页脚的背景保持通栏，内部内容统一收窄到 --maxw 并居中。
   放在文件末尾，确保覆盖各区块自身的 padding 简写。
   ========================================================================== */

.nav,
.crumb,
.block,
.wrap,
.footer {
  padding-inline: var(--gutter);
}

/* 跑马灯保持满幅滚动，不参与收窄 */
.ticker {
  padding-inline: 0;
}

/* 首屏内容居中对齐 */
.block {
  text-align: center;
}

/* 顶部 LIVE 状态标签居中 */
.block__kicker {
  justify-content: center;
}

/* 数据行（期号、开奖时间、复制按钮等）居中 */
.data-row {
  justify-content: center;
}

/* 开奖号码球居中 */
.balls {
  justify-content: center;
}

/* 倒计时区块底部信息居中 */
.block__foot {
  justify-content: center;
}