/* ==========================================================================
   大发彩票站 · 数据夜航台 — /assets/site.css
   reset / 设计变量 / 中文排版 / 命令栏头部 / 堆叠页脚 / 通用组件
   ========================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

:root {
  --ink: #061724;
  --ink-deep: #04121D;
  --panel: #0C2333;
  --glass: rgba(20, 48, 63, 0.72);
  --cyan: #35E0D6;
  --cyan-soft: rgba(53, 224, 214, 0.14);
  --orange: #FF8A3D;
  --magenta: #FF4D8D;
  --cal: #8FB4BE;
  --white: #F2F7F8;
  --line: #33505F;
  --dim: #5A7280;
  --body-text: #C9D6DC;

  --font-display: "Arial Narrow", "Helvetica Neue Condensed", "Roboto Condensed",
    "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-serif: Georgia, "Songti SC", "Noto Serif SC", "SimSun", serif;
  --font-mono: ui-monospace, "JetBrains Mono", "IBM Plex Mono", "SFMono-Regular",
    Menlo, Consolas, monospace;
  --font-body: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;

  --shell: min(1280px, 100% - 44px);
  --dur: 0.22s;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --nav-break: 920px;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  background-color: var(--ink);
  background-image:
    repeating-linear-gradient(to bottom, rgba(53, 224, 214, 0.035) 0 1px, transparent 1px 64px),
    radial-gradient(1200px 620px at 78% -12%, rgba(53, 224, 214, 0.10), transparent 62%),
    radial-gradient(900px 520px at 6% 112%, rgba(255, 77, 141, 0.07), transparent 66%);
  color: var(--body-text);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, canvas { max-width: 100%; display: block; }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.6em;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: condensed;
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--white);
}

h1 { font-size: clamp(2.6rem, 6vw, 5.4rem); line-height: 0.98; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.16; }
h4 { font-size: 1.05rem; line-height: 1.3; letter-spacing: 0.01em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--white); }

ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: 0.4em; }

strong { color: var(--white); font-weight: 600; }

code, kbd, samp { font-family: var(--font-mono); font-size: 0.92em; color: var(--cyan); }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }

::selection { background: var(--cyan); color: var(--ink-deep); }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

#main-content { display: block; scroll-margin-top: 96px; }

/* ---------- 布局原语 ---------- */

.shell { width: var(--shell); margin-inline: auto; }

.section { padding-block: clamp(56px, 8vw, 120px); }
.section--tight { padding-block: clamp(32px, 4vw, 64px); }

.grid { display: grid; gap: clamp(16px, 2vw, 28px); }
.grid--5-7 { grid-template-columns: 5fr 7fr; }
.grid--3-9 { grid-template-columns: 3fr 9fr; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cal);
  margin: 0 0 0.9em;
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 0;
}

/* ---------- 堆叠画板 ---------- */

.panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: clamp(20px, 3.4vw, 44px);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.panel:hover { border-color: var(--cyan); }

.panel--glass {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(143, 180, 190, 0.22);
}

.panel--flat { background: transparent; border-color: var(--line); }

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: clamp(14px, 2vw, 26px);
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(51, 80, 95, 0.85);
}

.panel-index {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--cyan);
}

/* ---------- 标签牌 ---------- */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  background: rgba(12, 35, 51, 0.7);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--cal);
  line-height: 1.4;
}

.tag::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--cal);
  transform: rotate(45deg);
  flex: 0 0 auto;
}

.tag--cyan { color: var(--cyan); border-color: rgba(53, 224, 214, 0.5); }
.tag--cyan::before { background: var(--cyan); }
.tag--orange { color: var(--orange); border-color: rgba(255, 138, 61, 0.5); }
.tag--orange::before { background: var(--orange); }
.tag--magenta { color: var(--magenta); border-color: rgba(255, 77, 141, 0.5); }
.tag--magenta::before { background: var(--magenta); }

/* ---------- 数据块与表格 ---------- */

.stat { display: flex; flex-direction: column; gap: 6px; }

.stat-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1;
  color: var(--white);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--cal);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 13.5px;
  color: var(--body-text);
}

.data-table th,
.data-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(51, 80, 95, 0.7);
  white-space: nowrap;
}

.data-table th {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--cal);
  font-weight: 500;
}

.data-table tbody tr { transition: background var(--dur) var(--ease); }
.data-table tbody tr:hover { background: rgba(53, 224, 214, 0.07); }

/* ---------- 正文容器 ---------- */

.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.6em; color: var(--cal); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { color: var(--body-text); }
.prose blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 18px;
  border-left: 2px solid var(--cyan);
  color: var(--cal);
}

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

.btn:hover { border-color: var(--cyan); color: var(--cyan); }

.btn--primary {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink-deep);
}
.btn--primary:hover { background: #5CEBE2; border-color: #5CEBE2; color: var(--ink-deep); }

.btn--ghost { border-color: var(--line); color: var(--cal); }
.btn--ghost:hover { color: var(--white); border-color: var(--cal); }

.btn--sm { padding: 8px 14px; font-size: 13px; }

/* ---------- 面包屑 ---------- */

.breadcrumb { margin-bottom: 1.6em; }

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 10px; color: var(--line); }
.breadcrumb a { color: var(--cal); }
.breadcrumb a:hover { color: var(--cyan); }

/* ---------- 数据图形容器（页面阶段放置占位图） ---------- */

.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background:
    repeating-linear-gradient(to right, rgba(53, 224, 214, 0.06) 0 1px, transparent 1px 46px),
    linear-gradient(160deg, #0C2333, #061724);
  border: 1px solid var(--line);
  border-radius: 2px;
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(6, 23, 36, 0.6));
  pointer-events: none;
}

.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--square { aspect-ratio: 1 / 1; }

/* ---------- 折叠组 ---------- */

.disclosure-panel { animation: panel-in 0.24s var(--ease) both; }
.disclosure-panel[hidden] { display: none; }

@keyframes panel-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 滚动显现 ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

[data-reveal].is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   跳转链接
   ========================================================================== */

.skip-link {
  position: absolute;
  top: -70px;
  left: 12px;
  z-index: 120;
  padding: 10px 18px;
  background: var(--cyan);
  color: var(--ink-deep);
  font-weight: 700;
  font-size: 14px;
  border-radius: 2px;
  transition: top 0.18s var(--ease);
}

.skip-link:focus { top: 12px; color: var(--ink-deep); }

/* ==========================================================================
   命令栏头部
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(6, 23, 36, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner { width: var(--shell); margin-inline: auto; }

.header-top {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 66px;
  padding-block: 10px;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  color: var(--white);
}
.brand:hover { color: var(--white); }

.brand-mark {
  position: relative;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
}

.brand-mark::before {
  content: "";
  width: 11px;
  height: 11px;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(53, 224, 214, 0.5);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(53, 224, 214, 0.24);
  border-radius: 50%;
}

.brand-words { display: flex; flex-direction: column; line-height: 1.16; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.06em;
  color: var(--white);
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--cal);
}

.version-badge {
  padding: 3px 7px;
  border: 1px solid rgba(255, 138, 61, 0.5);
  background: rgba(255, 138, 61, 0.08);
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  line-height: 1.5;
  white-space: nowrap;
}

/* 工具区 */
.header-utility {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.window-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  background: rgba(12, 35, 51, 0.72);
}

.window-btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 7px 12px;
  color: var(--cal);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.window-btn + .window-btn { border-left: 1px solid var(--line); }
.window-btn:hover { color: var(--white); }

.window-btn.is-active {
  background: var(--cyan-soft);
  color: var(--cyan);
  box-shadow: inset 0 -2px 0 var(--cyan);
}

.refresh-indicator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--dim);
}

.refresh-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 9px var(--cyan);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.78); }
}

.refresh-time {
  color: var(--white);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

/* 移动按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  background: rgba(12, 35, 51, 0.8);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--cal);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.nav-toggle:hover { border-color: var(--cyan); color: var(--white); }

.nav-toggle-bars { display: inline-flex; flex-direction: column; gap: 4px; }

.nav-toggle-bars span {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 命令栏导航 */
.nav-cmd { border-top: 1px solid rgba(51, 80, 95, 0.55); }

.nav-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list li { margin: 0; }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 15px;
  color: var(--cal);
  font-size: 13.5px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
}

.nav-link::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  background: var(--line);
  transform: rotate(45deg);
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 5px;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur) var(--ease);
}

.nav-link:hover { color: var(--white); }
.nav-link:hover::before { background: var(--cal); }

.nav-link[aria-current="page"] { color: var(--white); }
.nav-link[aria-current="page"]::before {
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

/* 滚动进度 */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  pointer-events: none;
}

.scroll-progress-bar {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
  transform: scaleX(0);
  transform-origin: left center;
}

/* ==========================================================================
   页脚
   ========================================================================== */

.site-footer {
  margin-top: clamp(48px, 7vw, 96px);
  background: linear-gradient(180deg, var(--ink-deep), var(--ink));
  border-top: 1px solid var(--line);
}

.footer-inner {
  width: var(--shell);
  margin-inline: auto;
  padding-block: clamp(38px, 6vw, 72px) 26px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 2.4fr;
  gap: clamp(24px, 4vw, 64px);
}

.footer-brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: var(--white);
  margin: 0 0 0.35em;
}

.footer-brand-sub {
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--cyan);
  margin: 0 0 0.9em;
}

.footer-note {
  font-size: 13px;
  line-height: 1.7;
  color: var(--dim);
  max-width: 34ch;
  margin: 0;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 32px);
}

.footer-col-title {
  position: relative;
  margin: 0 0 1em;
  padding-bottom: 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--white);
}

.footer-col-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 26px;
  height: 2px;
  background: var(--cyan);
}

.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin: 0 0 0.55em; }

.footer-links a {
  color: var(--cal);
  font-size: 13.5px;
  transition: color var(--dur) var(--ease);
}

.footer-links a:hover { color: var(--cyan); }

.footer-meta {
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: 20px;
  border-top: 1px dashed rgba(51, 80, 95, 0.8);
}

.footer-contact,
.footer-address {
  font-size: 13px;
  color: var(--cal);
  margin: 0 0 0.5em;
}

.footer-address { color: var(--dim); }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 1em 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--dim);
}

.footer-footnote { color: var(--dim); font-family: var(--font-body); letter-spacing: 0.02em; }

/* ==========================================================================
   响应式
   ========================================================================== */

@media (max-width: 1080px) {
  .refresh-label { display: none; }
}

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }

  .nav-cmd {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    border-top: 1px solid var(--line);
    background: rgba(8, 26, 38, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 8px 0 18px;
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.4);
  }

  .nav-cmd[data-open] { display: block; }

  .nav-list {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    width: var(--shell);
    margin-inline: auto;
  }

  .nav-link {
    width: 100%;
    padding: 14px 2px;
    font-size: 15px;
    border-bottom: 1px solid rgba(51, 80, 95, 0.5);
  }

  .nav-link::after { display: none; }
  .nav-link[aria-current="page"] { color: var(--cyan); }

  .footer-top { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .window-switch { display: none; }

  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .grid--5-7,
  .grid--3-9,
  .grid--2,
  .grid--3 { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  :root { --shell: min(1280px, 100% - 32px); }

  .refresh-indicator { display: none; }
  .header-utility .btn { display: none; }
  .header-top { min-height: 60px; gap: 12px; }
  .brand-tag { display: none; }
  .nav-toggle { margin-left: auto; }

  .footer-legal { flex-direction: column; gap: 6px; }
}

/* ==========================================================================
   动效降级
   ========================================================================== */

@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;
  }

  [data-reveal] { opacity: 1; transform: none; }
}
