/* =========================================================
   好运28中心 · 共享样式 /assets/site.css
   夜色控制台：深海蓝底盘 + 荧光青绿状态 + 暖橙动作
   ========================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 118px;
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--mist);
  background-color: var(--abyss);
  background-image:
    linear-gradient(rgba(155, 180, 200, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155, 180, 200, 0.045) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px;
  background-position: -1px -1px;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: 1.25; letter-spacing: 0.01em; }
p { margin: 0; }
table { border-collapse: collapse; width: 100%; }

/* ---------- 变量 ---------- */
:root {
  --abyss: #05192B;
  --tactical: #0B2A45;
  --edge: #143F5E;
  --signal: #17E6C0;
  --signal-soft: #8CF5E0;
  --action: #FF8A3D;
  --wave: #FFC24B;
  --alert: #FF5D6C;
  --mist: #E9F2F9;
  --steel: #9BB4C8;
  --night: #02090F;

  --font-sans: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;

  --shell: 1220px;
  --gutter: clamp(18px, 4vw, 40px);
  --cut: 14px;
  --cut-sm: 8px;
  --radius-pill: 999px;

  --s1: clamp(28px, 4vw, 44px);
  --s2: clamp(48px, 7vw, 88px);
}

/* ---------- 排版阶梯 ---------- */
.l28-h1 { font-size: clamp(34px, 5.4vw, 60px); font-weight: 900; line-height: 1.14; }
.l28-h2 { font-size: clamp(23px, 2.6vw, 30px); font-weight: 800; }
.l28-h3 { font-size: 18px; font-weight: 800; }
.l28-lead { font-size: clamp(16px, 1.5vw, 18px); color: var(--steel); max-width: 62ch; }
.l28-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--signal);
}
.l28-note {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
}
.l28-mono { font-family: var(--font-mono); letter-spacing: 0.06em; }

/* ---------- 焦点 ---------- */
:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- 跳转链接 ---------- */
.l28-skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 90;
  padding: 10px 18px;
  background: var(--signal);
  color: var(--abyss);
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  clip-path: polygon(var(--cut-sm) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut-sm));
  transition: top 0.18s ease;
}
.l28-skip:focus { top: 12px; }

/* ---------- 页头 ---------- */
.l28-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(5, 25, 43, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--edge);
}
.l28-header__bar {
  padding: 14px 0;
  transition: padding 0.26s ease;
}
.l28-header[data-stuck="true"] .l28-header__bar { padding: 7px 0; }

.l28-header__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
}

/* 品牌浮岛 */
.l28-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  text-decoration: none;
}
.l28-brand__mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--abyss);
  background: var(--signal);
  clip-path: polygon(var(--cut-sm) 0, 100% 0, 100% calc(100% - var(--cut-sm)), calc(100% - var(--cut-sm)) 100%, 0 100%, 0 var(--cut-sm));
}
.l28-brand__text { display: flex; flex-direction: column; gap: 1px; }
.l28-brand__name {
  font-size: 16px;
  font-weight: 800;
  color: var(--mist);
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.l28-brand__sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
  white-space: nowrap;
}

/* 栏目胶囊群 */
.l28-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  min-width: 0;
}
.l28-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px;
  background: var(--tactical);
  border: 1px solid var(--edge);
  border-radius: var(--radius-pill);
}
.l28-nav__item { display: block; }
.l28-nav__link {
  display: block;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  color: var(--steel);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.l28-nav__link:hover { color: var(--mist); background: rgba(23, 230, 192, 0.12); }
.l28-nav__link[aria-current="page"] {
  color: var(--abyss);
  background: var(--signal);
  font-weight: 800;
}

/* 右侧状态与动作 */
.l28-header__side {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.l28-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px;
  border: 1px solid var(--edge);
  border-radius: var(--radius-pill);
  background: rgba(2, 9, 15, 0.55);
}
.l28-status__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--steel);
}
.l28-status__pill--ok { color: var(--signal); }
.l28-status__pill--wave { color: var(--wave); }
.l28-status__pill--down { color: var(--alert); }

.l28-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(155, 180, 200, 0.12);
  animation: l28-breathe 5s ease-in-out infinite;
}
.l28-dot--ok { color: var(--signal); box-shadow: 0 0 0 3px rgba(23, 230, 192, 0.16); }
.l28-dot--wave { color: var(--wave); animation-duration: 2.4s; }
.l28-dot--down { color: var(--alert); animation: none; }

@keyframes l28-breathe {
  0%, 88%, 100% { opacity: 1; transform: scale(1); }
  94% { opacity: 0.42; transform: scale(0.82); }
}

/* 移动导航按钮 */
.l28-navtoggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border: 1px solid var(--edge);
  border-radius: var(--radius-pill);
  background: var(--tactical);
  color: var(--mist);
  font-size: 13.5px;
  font-weight: 700;
}
.l28-navtoggle__box { display: grid; gap: 3px; width: 16px; }
.l28-navtoggle__box span {
  display: block;
  height: 2px;
  background: var(--signal);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.l28-header[data-open="true"] .l28-navtoggle__box span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.l28-header[data-open="true"] .l28-navtoggle__box span:nth-child(2) { opacity: 0; }
.l28-header[data-open="true"] .l28-navtoggle__box span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.l28-navtoggle__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; }

/* 滚动进度光带 */
.l28-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: rgba(20, 63, 94, 0.55);
  overflow: hidden;
}
.l28-progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--signal), var(--action));
}

/* ---------- 按钮 ---------- */
.l28-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  clip-path: polygon(var(--cut-sm) 0, 100% 0, 100% calc(100% - var(--cut-sm)), calc(100% - var(--cut-sm)) 100%, 0 100%, 0 var(--cut-sm));
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.l28-btn--action { background: var(--action); color: #221004; }
.l28-btn--action:hover { background: #FFA567; }
.l28-btn--signal { color: var(--signal); border-color: var(--signal); background: rgba(23, 230, 192, 0.07); }
.l28-btn--signal:hover { background: rgba(23, 230, 192, 0.18); color: var(--signal-soft); border-color: var(--signal-soft); }
.l28-btn--ghost { color: var(--mist); border-color: var(--edge); background: rgba(11, 42, 69, 0.66); }
.l28-btn--ghost:hover { border-color: var(--signal-soft); color: var(--signal-soft); }
.l28-btn:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--signal-soft); }

/* ---------- 容器 / 网格 ---------- */
.l28-shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.l28-article { max-width: 76ch; }
.l28-section { margin-top: var(--s1); }
.l28-grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.l28-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.l28-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.l28-grid--split { grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); gap: clamp(20px, 3vw, 40px); }

/* ---------- 面包屑 ---------- */
.l28-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: clamp(18px, 3vw, 30px);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--steel);
}
.l28-crumbs a { color: var(--steel); text-decoration: none; }
.l28-crumbs a:hover { color: var(--signal); }
.l28-crumbs li { display: inline-flex; align-items: center; gap: 8px; }
.l28-crumbs li + li::before { content: "/"; color: var(--edge); }
.l28-crumbs [aria-current="page"] { color: var(--mist); }

/* ---------- 切角面板 ---------- */
.l28-panel {
  position: relative;
  padding: clamp(18px, 2.6vw, 30px);
  background: var(--tactical);
  border: 1px solid var(--edge);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: border-color 0.22s ease, background-color 0.22s ease;
}
.l28-panel:hover { border-color: var(--signal-soft); }
.l28-panel--flat { background: rgba(11, 42, 69, 0.5); }

/* ---------- 编号画板（堆叠面板） ---------- */
.l28-plate {
  position: relative;
  padding: clamp(20px, 3vw, 36px);
  margin-bottom: clamp(18px, 2.4vw, 28px);
  background: var(--tactical);
  border: 1px solid var(--edge);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.l28-plate::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--edge);
}
.l28-plate[data-state="live"]::before { background: var(--signal); }
.l28-plate[data-state="wave"]::before { background: var(--wave); }
.l28-plate[data-state="down"]::before { background: var(--alert); }
.l28-plate__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 16px;
  margin-bottom: 14px;
}
.l28-plate__num {
  font-family: var(--font-mono);
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--signal);
  letter-spacing: 0.02em;
}
.l28-plate__title { font-size: clamp(19px, 2.1vw, 24px); font-weight: 800; }
.l28-plate__body { color: var(--steel); max-width: 68ch; }
.l28-plate__body strong { color: var(--mist); }

/* ---------- 斜向轨迹线 ---------- */
.l28-rule {
  height: 26px;
  margin: clamp(20px, 3vw, 34px) 0;
  background-image: repeating-linear-gradient(
    -45deg,
    var(--edge) 0 2px,
    transparent 2px 14px
  );
  -webkit-mask-image: linear-gradient(90deg, var(--signal), transparent 65%);
  mask-image: linear-gradient(90deg, var(--signal), transparent 65%);
  opacity: 0.6;
}

/* ---------- 状态标签 ---------- */
.l28-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid var(--edge);
  border-radius: var(--radius-pill);
  background: rgba(2, 9, 15, 0.45);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--steel);
}
.l28-tag--ok { color: var(--signal); border-color: rgba(23, 230, 192, 0.42); }
.l28-tag--wave { color: var(--wave); border-color: rgba(255, 194, 75, 0.42); }
.l28-tag--down { color: var(--alert); border-color: rgba(255, 93, 108, 0.42); }

/* ---------- 图片容器（页面阶段放占位图） ---------- */
.l28-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(23, 230, 192, 0.1), transparent 55%),
    linear-gradient(180deg, var(--tactical), var(--abyss));
  border: 1px solid var(--edge);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.l28-media--wide { aspect-ratio: 21 / 9; }
.l28-media--square { aspect-ratio: 1 / 1; }
.l28-media img { width: 100%; height: 100%; object-fit: cover; }
.l28-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(155, 180, 200, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155, 180, 200, 0.07) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ---------- 页脚 ---------- */
.l28-footer {
  margin-top: clamp(48px, 8vw, 96px);
  background: var(--night);
  border-top: 1px solid var(--edge);
}
.l28-footer__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(34px, 5vw, 60px) var(--gutter) 26px;
}
.l28-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: clamp(20px, 3vw, 40px);
}
.l28-footer__col { min-width: 0; }
.l28-footer__mark {
  display: inline-block;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--mist);
}
.l28-footer__line {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--steel);
  max-width: 34ch;
}
.l28-footer__note {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--signal);
}
.l28-footer__title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--signal);
}
.l28-footer__list { display: grid; gap: 9px; }
.l28-footer__link {
  font-size: 14.5px;
  color: var(--steel);
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.l28-footer__link:hover { color: var(--signal-soft); padding-left: 4px; }
.l28-footer__plain {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--steel);
  word-break: break-word;
}

.l28-footer__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: clamp(28px, 4vw, 44px);
  padding: clamp(18px, 2.4vw, 26px);
  background: var(--tactical);
  border: 1px solid var(--edge);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.l28-footer__cta-text { font-size: 16px; font-weight: 700; color: var(--mist); }
.l28-footer__cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.l28-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: clamp(22px, 3vw, 34px);
  padding-top: 20px;
  border-top: 1px solid var(--edge);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--steel);
}

/* ---------- 返回顶部（由 JS 生成） ---------- */
.l28-top {
  position: fixed;
  right: clamp(16px, 3vw, 34px);
  bottom: clamp(16px, 3vw, 34px);
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--tactical);
  color: var(--signal);
  border: 1px solid var(--signal);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s;
}
.l28-top[data-show="true"] { opacity: 1; visibility: visible; transform: none; }
.l28-top:hover { background: rgba(23, 230, 192, 0.16); }

/* ---------- 入场显现 ---------- */
.l28-js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.32s ease, transform 0.32s ease;
}
.l28-js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .l28-status { display: none; }
}
@media (max-width: 1023px) {
  html { scroll-padding-top: 96px; }
  .l28-header__inner { gap: 12px; }
  .l28-brand__sub { display: none; }
  .l28-nav {
    position: absolute;
    left: var(--gutter);
    right: var(--gutter);
    top: calc(100% + 10px);
    display: block;
    justify-content: flex-start;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  }
  .l28-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    border-radius: 16px;
    box-shadow: 0 26px 52px rgba(2, 9, 15, 0.65);
  }
  .l28-nav__link { padding: 12px 14px; border-radius: 10px; font-size: 15.5px; }
  .l28-header[data-open="true"] .l28-nav { opacity: 1; visibility: visible; transform: none; }
  .l28-navtoggle { display: inline-flex; }
  .l28-header__side { margin-left: auto; }
  .l28-grid--split,
  .l28-grid--3,
  .l28-grid--2 { grid-template-columns: minmax(0, 1fr); }
  .l28-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .l28-brand__mark { width: 34px; height: 34px; font-size: 13px; }
  .l28-brand__name { font-size: 15px; }
  .l28-header__side .l28-btn--action { display: none; }
  .l28-footer__grid { grid-template-columns: minmax(0, 1fr); }
  .l28-footer__cta { flex-direction: column; align-items: flex-start; }
  .l28-footer__cta-actions { width: 100%; }
  .l28-footer__cta-actions .l28-btn { flex: 1 1 auto; }
  .l28-plate { clip-path: none; border-radius: 4px; }
}

/* ---------- 动效克制 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .l28-js [data-reveal] { opacity: 1; transform: none; }
  .l28-dot { animation: none; }
}
