/* =========================================================
   乐投导航 · 共享样式 /assets/site.css
   深夜导航控制台：深靛蓝底 + 霓虹青信号 + 琥珀橙时间戳
   ========================================================= */

:root {
  --bg: #0B1026;
  --bg-deep: #070B1C;
  --panel: #141B3C;
  --panel-soft: #101733;
  --cyan: #38F2E0;
  --cyan-soft: #5EF6E8;
  --amber: #FFB347;
  --ice: #EAF6FF;
  --ice-dim: #D6E9FA;
  --mist: #8A94B8;
  --teal: #0F3B3A;
  --wine: #5A1F3D;
  --glass: rgba(56, 242, 224, 0.12);
  --ok: #4ADE80;
  --warn: #F87171;

  --line: rgba(56, 242, 224, 0.20);
  --line-soft: rgba(138, 148, 184, 0.22);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;

  --shell: 1200px;

  --font-display: "Arial Narrow", "Helvetica Neue Condensed", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Helvetica Neue", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-serif: Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Courier New", monospace;
}

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

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

body {
  margin: 0;
  min-height: 100%;
  background-color: var(--bg);
  color: var(--ice);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* 环境层：扫描线 + 冷光 + 单点暖色高光 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% -12%, rgba(56, 242, 224, 0.10), transparent 46%),
    radial-gradient(circle at 92% 6%, rgba(255, 179, 71, 0.07), transparent 42%),
    repeating-linear-gradient(0deg, rgba(138, 148, 184, 0.05) 0 1px, transparent 1px 5px);
}

.site-header,
.site-footer,
main,
.page-body {
  position: relative;
  z-index: 1;
}

img, svg, video { max-width: 100%; }

::selection { background: rgba(56, 242, 224, 0.32); color: #04121C; }

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

/* ---------- 排版节奏 ---------- */
h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ice);
}

h1 { font-size: clamp(2.1rem, 5vw, 3.25rem); letter-spacing: 0.08em; }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.15rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); letter-spacing: 0.06em; }
h4 { font-size: 1rem; letter-spacing: 0.08em; }

p { margin: 0 0 1em; }

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

ul, ol { padding-left: 1.15rem; }

.mono { font-family: var(--font-mono); letter-spacing: 0.02em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(56, 242, 224, 0.8);
}

.lede {
  max-width: 60ch;
  margin: 0 0 1.25rem;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1.9vw, 1.28rem);
  line-height: 1.72;
  color: var(--ice-dim);
}

.prose { max-width: 76ch; }
.prose > * + * { margin-top: 1rem; }
.prose p, .prose ul, .prose ol { max-width: 74ch; }
.prose h2, .prose h3 { margin-top: clamp(1.75rem, 4vw, 2.75rem); }
.prose strong { color: var(--ice); }

/* ---------- 布局 ---------- */
.shell,
.header-shell,
.footer-shell {
  width: min(100% - 2.5rem, var(--shell));
  margin-inline: auto;
}

.grid { display: grid; gap: clamp(1.1rem, 3vw, 2rem); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--split { grid-template-columns: minmax(220px, 3fr) minmax(0, 9fr); }

section { margin-bottom: clamp(2.25rem, 5vw, 4rem); }

.section-head { margin-bottom: clamp(1rem, 2.5vw, 1.75rem); }
.section-head p { color: var(--mist); max-width: 68ch; margin-bottom: 0; }

/* ---------- 跳过链接 ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 999;
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius);
  background: var(--cyan);
  color: #051220;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  transition: top 0.2s ease;
}

.skip-link:focus { top: 0.85rem; color: #051220; }

/* ---------- 按钮 ---------- */
.btn,
.cta-btn,
.ghost-btn,
.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.72rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cta-btn {
  background: var(--cyan);
  color: #051220;
  box-shadow: 0 0 0 0 rgba(56, 242, 224, 0.45);
}
.cta-btn:hover {
  background: var(--cyan-soft);
  color: #051220;
  box-shadow: 0 0 18px rgba(56, 242, 224, 0.45);
}

.ghost-btn {
  background: transparent;
  border-color: rgba(234, 246, 255, 0.26);
  color: var(--ice);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  padding: 0.6rem 0.95rem;
}
.ghost-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(56, 242, 224, 0.08);
}

.btn {
  background: var(--panel);
  border-color: var(--line);
  color: var(--ice);
}
.btn:hover { border-color: var(--cyan); color: var(--cyan); }

.copy-btn {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  padding: 0.24rem 0.6rem;
  border-radius: 999px;
  background: transparent;
  border-color: var(--line-soft);
  color: var(--mist);
}
.copy-btn:hover { color: var(--cyan); border-color: var(--cyan); }
.copy-btn[data-copied] { color: var(--ok); border-color: var(--ok); }

/* ---------- 标签 / 状态 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-decoration: none;
}
.tag:hover { border-color: var(--cyan); color: var(--cyan-soft); }
.tag--amber { color: var(--amber); border-color: rgba(255, 179, 71, 0.35); background: rgba(255, 179, 71, 0.1); }

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mist);
}
.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mist);
}
.status--ok { color: var(--ok); }
.status--ok::before { background: var(--ok); }
.status--warn { color: var(--warn); }
.status--warn::before { background: var(--warn); }
.status--pending { color: var(--amber); }
.status--pending::before { background: var(--amber); }

/* ---------- 卡片 ---------- */
.card {
  position: relative;
  padding: clamp(1rem, 2.4vw, 1.6rem);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--panel);
}
.card h3 { margin-bottom: 0.4rem; }
.card p:last-child { margin-bottom: 0; }

.card--glass {
  background: var(--glass);
  border-color: var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.card--teal {
  background: linear-gradient(158deg, var(--teal), var(--bg) 88%);
  border-color: rgba(56, 242, 224, 0.26);
}

.card--wine {
  background: linear-gradient(158deg, var(--wine), var(--bg) 88%);
  border-color: rgba(248, 113, 113, 0.3);
}

/* ---------- 时间线 ---------- */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.2rem;
  border-left: 1px solid var(--line);
}
.timeline > li {
  position: relative;
  padding: 0 0 1.6rem 0.3rem;
}
.timeline > li:last-child { padding-bottom: 0; }
.timeline > li::before {
  content: "";
  position: absolute;
  left: -1.62rem;
  top: 0.55rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--cyan);
  box-shadow: 0 0 10px rgba(56, 242, 224, 0.5);
}
.timeline > li:hover::before { background: var(--cyan); }
.timeline .stamp,
.timeline time {
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--amber);
}

/* ---------- 图像占位容器 ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(140deg, rgba(20, 27, 60, 0.95), rgba(11, 16, 38, 0.98)),
    repeating-linear-gradient(90deg, rgba(56, 242, 224, 0.07) 0 1px, transparent 1px 30px);
}
.media-frame > img,
.media-frame > svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 90% at 84% 8%, rgba(255, 179, 71, 0.16), transparent 56%);
}
.media-frame--chart { aspect-ratio: 4 / 3; }
.media-frame--portrait { aspect-ratio: 3 / 4; }

.media-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 0.7rem 0.95rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--ice);
  background: linear-gradient(0deg, rgba(7, 11, 28, 0.94), rgba(7, 11, 28, 0));
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--mist);
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 0.5rem; }
.breadcrumb li + li::before { content: "/"; color: rgba(138, 148, 184, 0.6); }
.breadcrumb a { color: var(--mist); }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb [aria-current="page"] { color: var(--ice); }

/* ---------- 显现 ---------- */
[data-reveal] { opacity: 1; transform: none; }
html[data-reveal-ready] [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
html[data-reveal-ready] [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* =========================================================
   页头
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(180deg, rgba(11, 16, 38, 0.97), rgba(11, 16, 38, 0.88));
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.scroll-rail {
  position: absolute;
  left: 0;
  bottom: -1px;
  display: block;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  box-shadow: 0 0 12px rgba(56, 242, 224, 0.6);
  transition: width 0.12s linear;
}

.brand-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  padding-block: 0.7rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ice);
  text-decoration: none;
}
.brand:hover { color: var(--ice); }

.brand-mark {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(56, 242, 224, 0.5);
  background: radial-gradient(circle at 50% 50%, rgba(56, 242, 224, 0.3), transparent 66%);
}
.brand-mark::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px solid rgba(56, 242, 224, 0.34);
}
.brand-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}
.brand-mark i {
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid transparent;
  border-top-color: var(--cyan);
  animation: radar-spin 7s linear infinite;
}

.brand-copy { display: flex; flex-direction: column; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.2;
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--mist);
}

.brand-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: transparent;
  color: var(--ice);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--cyan); color: var(--cyan); }
.nav-toggle-bars { display: inline-flex; flex-direction: column; gap: 3px; }
.nav-toggle-bars i {
  display: block;
  width: 14px;
  height: 1.5px;
  background: currentColor;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  padding-block: 0.55rem 0.7rem;
  border-top: 1px solid var(--line-soft);
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(0.85rem, 2.2vw, 1.85rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  display: inline-block;
  padding: 0.3rem 0.55rem;
  border-radius: var(--radius-sm);
  color: var(--ice);
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}
.nav-list a:hover {
  color: var(--cyan);
  background: rgba(56, 242, 224, 0.08);
}
.nav-list a[aria-current="page"] {
  color: var(--cyan);
  background: var(--glass);
  box-shadow: inset 0 -2px 0 var(--cyan);
}

.nav-pulse {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--mist);
  white-space: nowrap;
}
.nav-pulse i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulse-ring 2.8s ease-out infinite;
}

/* =========================================================
   页脚
   ========================================================= */
.site-footer {
  margin-top: clamp(3rem, 7vw, 6rem);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20, 27, 60, 0.92), var(--bg-deep));
}
.site-footer::before {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(90deg, rgba(56, 242, 224, 0), var(--cyan) 22%, var(--amber) 78%, rgba(255, 179, 71, 0));
  opacity: 0.55;
}

.footer-shell { padding-block: clamp(2rem, 5vw, 3.5rem) 1.25rem; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.35fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.footer-mark {
  display: block;
  width: 24px;
  height: 24px;
  margin-bottom: 0.7rem;
  border-radius: 50%;
  border: 1px solid rgba(56, 242, 224, 0.5);
  background: radial-gradient(circle at 50% 50%, rgba(56, 242, 224, 0.28), transparent 68%);
}

.footer-name {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ice);
}

.footer-desc {
  margin: 0;
  max-width: 34ch;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--mist);
}

.footer-heading {
  margin: 0 0 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mist);
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.footer-col a {
  color: var(--ice);
  font-size: 0.92rem;
  text-decoration: none;
}
.footer-col a:hover { color: var(--cyan); }

.contact-list { gap: 0.6rem !important; }

.contact-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.contact-value {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--ice);
}

.contact-note {
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--mist);
  max-width: 32ch;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
}

.footer-legal {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--mist);
}

/* =========================================================
   动效
   ========================================================= */
@keyframes radar-spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(56, 242, 224, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(56, 242, 224, 0); }
  100% { box-shadow: 0 0 0 0 rgba(56, 242, 224, 0); }
}

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-desc { max-width: 60ch; }
}

@media (max-width: 900px) {
  .grid--2,
  .grid--3,
  .grid--split { grid-template-columns: minmax(0, 1fr); }

  .brand-actions {
    order: 3;
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
    padding-bottom: 0.35rem;
  }

  .nav-toggle {
    display: inline-flex;
    order: 2;
    margin-left: auto;
  }

  .site-nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    padding-block: 0.4rem 1rem;
  }

  .site-nav[data-open] { display: flex; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }
  .nav-list li { width: 100%; }
  .nav-list a {
    display: block;
    width: 100%;
    padding: 0.7rem 0.6rem;
    font-size: 0.86rem;
    letter-spacing: 0.08em;
    border-radius: var(--radius-sm);
    border-bottom: 1px solid var(--line-soft);
  }
  .nav-list a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--cyan); }

  .nav-pulse { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }

  .shell,
  .header-shell,
  .footer-shell { width: min(100% - 1.75rem, var(--shell)); }

  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-base { flex-direction: column; }

  .brand-name { font-size: 0.98rem; letter-spacing: 0.12em; }
  .brand-sub { letter-spacing: 0.1em; }

  .brand-actions { gap: 0.45rem; }
  .ghost-btn, .cta-btn { padding: 0.62rem 0.9rem; font-size: 0.82rem; }
}

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

  html[data-reveal-ready] [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .scroll-rail { transition: none; }
}
