/* ==========================================================================
   版本开奖 · 共享站点样式 /assets/site.css
   数字档案室 × 开奖现场 —— 深靛蓝舞台、暖金编号、1px 结构线、直角网格
   ========================================================================== */

/* ---------- 1. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 148px;
}

body {
  margin: 0;
  background-color: #0B1330;
  background-image:
    radial-gradient(1100px 520px at 88% -8%, rgba(122, 140, 255, 0.10), transparent 68%),
    radial-gradient(760px 420px at 0% 4%, rgba(242, 193, 92, 0.06), transparent 62%),
    linear-gradient(rgba(34, 48, 92, 0.30) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 48, 92, 0.30) 1px, transparent 1px);
  background-size: auto, auto, 96px 96px, 96px 96px;
  color: #F4F0E6;
  font-family: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

img, svg, video { display: block; max-width: 100%; height: auto; }

button { font: inherit; color: inherit; }
input, select, textarea { font: inherit; }

a { color: #7A8CFF; text-decoration: none; transition: color .18s ease; }
a:hover { color: #F2C15C; }

table { border-collapse: collapse; width: 100%; }

/* ---------- 2. 设计令牌 ---------- */
:root {
  --ink: #0B1330;
  --panel: #121C3D;
  --line: #22305C;
  --gold: #F2C15C;
  --coral: #F26B5E;
  --mint: #63D6C4;
  --violet: #7A8CFF;
  --paper: #F4F0E6;
  --muted: #8A94B8;
  --deep: #050915;

  --shell: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --bd: 1px solid #22305C;
  --dur: .18s;

  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
}

/* ---------- 3. 焦点与可访问性 ---------- */
:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 0;
}
:focus:not(:focus-visible) { outline: none; }

.skip-link {
  position: absolute;
  top: -72px;
  left: var(--gutter);
  z-index: 300;
  display: inline-block;
  padding: 11px 18px;
  background: var(--gold);
  color: #0B1330;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
  transition: top var(--dur) ease;
}
.skip-link:focus,
.skip-link:focus-visible { top: 12px; color: #0B1330; }

/* ---------- 4. 布局基础 ---------- */
.shell {
  width: min(var(--shell), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.page-main { display: block; padding-bottom: clamp(56px, 7vw, 96px); }

.section { padding: clamp(44px, 6vw, 84px) 0; }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

.rule {
  height: 1px;
  border: 0;
  background: var(--line);
  margin: 0;
}

/* ---------- 5. 中文排版 ---------- */
.prose {
  max-width: 72ch;
  font-size: 17px;
  line-height: 1.85;
  color: var(--paper);
}
.prose p + p { margin-top: 1.1em; }
.prose h2 {
  margin: 2em 0 .7em;
  font-size: clamp(21px, 2.4vw, 27px);
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--paper);
}
.prose h3 {
  margin: 1.7em 0 .6em;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--gold);
}
.prose ul, .prose ol { margin: 1em 0; padding-left: 1.2em; list-style: disc; }
.prose li { margin: .45em 0; }
.prose strong { color: var(--gold); font-weight: 700; }
.prose a { border-bottom: 1px solid rgba(122, 140, 255, .5); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-title {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 900;
  line-height: 1.24;
  letter-spacing: -.02em;
  color: var(--paper);
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}

.vnote {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--muted);
  line-height: 1;
}

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--paper);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur) ease, color var(--dur) ease, border-color var(--dur) ease, transform var(--dur) ease;
}
.btn:active { transform: translateY(1px); }

.btn--gold {
  background: var(--gold);
  color: #0B1330;
  font-weight: 700;
}
.btn--gold:hover,
.btn--gold:focus-visible { background: #FFD27A; color: #0B1330; }

.btn--ghost {
  border-color: var(--line);
  color: var(--paper);
}
.btn--ghost:hover,
.btn--ghost:focus-visible { border-color: var(--gold); color: var(--gold); }

/* ---------- 7. 标签与卡片 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  line-height: 1.5;
  color: var(--muted);
  white-space: nowrap;
}
.tag--mint { color: var(--mint); border-color: rgba(99, 214, 196, .42); }
.tag--coral { color: var(--coral); border-color: rgba(242, 107, 94, .42); }
.tag--gold { color: var(--gold); border-color: rgba(242, 193, 92, .48); }

.card {
  background: var(--panel);
  border: var(--bd);
  border-radius: 0;
  padding: clamp(18px, 2.2vw, 26px);
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

/* ---------- 8. 面包屑 ---------- */
.breadcrumb {
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--muted);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before {
  content: "/";
  color: var(--line);
  font-family: var(--font-mono);
}
.breadcrumb a {
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color var(--dur) ease, border-color var(--dur) ease;
}
.breadcrumb a:hover { color: var(--gold); border-bottom-color: var(--gold); }
.breadcrumb [aria-current="page"] { color: var(--paper); }

/* ---------- 9. 图片容器基础规则 ---------- */
.figure {
  margin: 0;
  border: var(--bd);
  background: var(--panel);
}
.figure-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #121C3D;
  background-image:
    linear-gradient(135deg, rgba(122, 140, 255, .14), transparent 58%),
    repeating-linear-gradient(90deg, rgba(34, 48, 92, .55) 0 1px, transparent 1px 48px);
}
.figure-media > img,
.figure-media > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.figure-media--wide { aspect-ratio: 21 / 9; }
.figure-media--square { aspect-ratio: 1 / 1; }
.figure-media--portrait { aspect-ratio: 4 / 5; }
.figure-caption {
  padding: 11px 16px;
  border-top: var(--bd);
  font-size: 12px;
  letter-spacing: .04em;
  line-height: 1.6;
  color: var(--muted);
}

/* ==========================================================================
   10. 页头
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}

/* --- 状态带 --- */
.status-rail {
  position: relative;
  background: var(--deep);
  border-bottom: 1px solid var(--line);
}
.rail-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 32px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  color: var(--muted);
  white-space: nowrap;
}
.rail-dot {
  flex: none;
  width: 6px;
  height: 6px;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(242, 193, 92, .16);
}
.rail-sep { color: var(--line); }
.rail-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0;
  z-index: 2;
  background: linear-gradient(90deg, var(--gold), var(--coral));
  background-image:
    repeating-linear-gradient(90deg, rgba(5, 9, 21, .55) 0 1px, transparent 1px 24px),
    linear-gradient(90deg, var(--gold), var(--coral));
}
.rail-item--optional { display: inline-block; }

/* --- 主体行 --- */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  padding-block: 8px;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--paper);
  text-decoration: none;
  flex: none;
}
.brand:hover { color: var(--paper); }

.brand-mark {
  position: relative;
  flex: none;
  width: 28px;
  height: 28px;
  border: 1px solid var(--gold);
  background: linear-gradient(135deg, rgba(242, 193, 92, .22), transparent 62%);
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  background: var(--gold);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  transition: background var(--dur) ease;
}
.brand:hover .brand-mark::after { background: var(--coral); }

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.brand-name {
  font-size: 19px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--paper);
  transition: color var(--dur) ease;
}
.brand:hover .brand-name { color: var(--gold); }
.brand-line {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: .16em;
  color: var(--muted);
}

/* 移动按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--paper);
  font-size: 12px;
  letter-spacing: .16em;
  cursor: pointer;
  transition: border-color var(--dur) ease, color var(--dur) ease;
}
.nav-toggle:hover { border-color: var(--gold); color: var(--gold); }
.nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}
.nav-toggle-bars i {
  display: block;
  height: 1px;
  background: currentColor;
  transition: transform var(--dur) ease;
}
.site-header[data-nav-open="true"] .nav-toggle-bars i:first-child {
  transform: translateY(2.5px) rotate(45deg);
}
.site-header[data-nav-open="true"] .nav-toggle-bars i:last-child {
  transform: translateY(-2.5px) rotate(-45deg);
}

/* 导航 */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-list {
  counter-reset: navidx;
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-item {
  counter-increment: navidx;
  display: flex;
}
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px 11px;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: .02em;
  color: var(--paper);
  text-decoration: none;
  transition: color var(--dur) ease, background var(--dur) ease;
}
.nav-link::before {
  content: counter(navidx, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1;
  letter-spacing: .06em;
  color: var(--muted);
  transition: color var(--dur) ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 4px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .18s ease;
}
.nav-link:hover {
  color: var(--gold);
  background: rgba(242, 193, 92, .06);
}
.nav-link:hover::before { color: var(--coral); }
.nav-link:hover::after,
.nav-link:focus-visible::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { color: var(--gold); }
.nav-link[aria-current="page"]::before { color: var(--coral); }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

.nav-cta { display: none; }

/* ==========================================================================
   11. 页脚
   ========================================================================== */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 104px);
  background: var(--deep);
  color: var(--paper);
  border-top: 1px solid var(--line);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--coral) 38%, rgba(34, 48, 92, 0) 82%);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, .72fr)) minmax(0, 1.35fr);
  gap: clamp(22px, 3vw, 44px);
  padding: clamp(38px, 5vw, 64px) 0 clamp(26px, 3vw, 40px);
}

.footer-brand-name {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  font-size: clamp(21px, 2.4vw, 28px);
  font-weight: 900;
  letter-spacing: -.01em;
  line-height: 1.2;
  color: var(--paper);
}
.footer-brand-name::before {
  content: "";
  flex: none;
  width: 26px;
  height: 2px;
  background: var(--gold);
}
.footer-tagline {
  max-width: 30ch;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted);
}
.footer-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  color: var(--muted);
}

.footer-col { min-width: 0; }
.footer-col-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  line-height: 1.6;
  color: var(--muted);
}
.footer-col-title::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  min-width: 12px;
  background: var(--line);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links a {
  display: inline-block;
  padding: 6px 0;
  font-size: 14px;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--dur) ease, border-color var(--dur) ease;
}
.footer-links a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.footer-contact { min-width: 0; }
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.contact-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--muted);
}
.contact-value {
  font-size: 14px;
  line-height: 1.6;
  color: var(--paper);
  word-break: break-word;
}

.copy-chip {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 6px 10px;
  border: 1px dashed var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--paper);
  text-align: left;
  cursor: pointer;
  transition: border-color var(--dur) ease, color var(--dur) ease, background var(--dur) ease;
}
.copy-chip:hover { border-color: var(--gold); color: var(--gold); background: rgba(242, 193, 92, .06); }
.copy-chip .copy-value {
  font-size: 13px;
  line-height: 1.5;
  word-break: break-all;
}
.copy-chip .copy-state {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--muted);
}
.copy-chip[data-copied="true"] { border-color: var(--mint); color: var(--mint); }
.copy-chip[data-copied="true"] .copy-state { color: var(--mint); }

.contact-note {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.75;
  color: var(--muted);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 32px;
  padding: 18px 0 26px;
  border-top: 1px solid var(--line);
}
.footer-legal {
  max-width: 74ch;
  font-size: 11.5px;
  line-height: 1.75;
  letter-spacing: .02em;
  color: var(--muted);
}
.footer-year {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  color: var(--muted);
  white-space: nowrap;
}

/* ==========================================================================
   12. 平板
   ========================================================================== */
@media (max-width: 1180px) {
  .nav-link { padding: 9px 10px 11px; font-size: 13.5px; }
  .nav-link::before { font-size: 9.5px; }
  .nav-link::after { left: 10px; right: 10px; }
  .brand-line { display: none; }
}

@media (max-width: 1080px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }
  .footer-brand { grid-column: 1 / -1; }
}

/* ==========================================================================
   13. 移动导航断点
   ========================================================================== */
@media (max-width: 940px) {
  html { scroll-padding-top: 132px; }

  .header-inner { min-height: 66px; gap: 12px; }

  .nav-toggle { display: inline-flex; }

  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 55;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--panel);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 26px 56px rgba(5, 9, 21, .72);
    padding: 10px 0 22px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }
  .primary-nav[data-open="true"] { display: flex; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 var(--gutter);
  }
  .nav-item {
    display: block;
    border-bottom: 1px solid var(--line);
  }
  .nav-link {
    width: 100%;
    padding: 15px 2px 15px 0;
    font-size: 15px;
  }
  .nav-link::before { font-size: 10px; }
  .nav-link::after {
    left: 0;
    right: auto;
    width: 28px;
    bottom: 9px;
  }
  .nav-link:hover::after,
  .nav-link[aria-current="page"]::after { transform: scaleX(1); width: 28px; }

  .nav-cta {
    display: inline-flex;
    align-self: flex-start;
    margin: 20px var(--gutter) 0;
  }
}

/* ==========================================================================
   14. 手机
   ========================================================================== */
@media (max-width: 640px) {
  body { font-size: 15.5px; }

  .rail-inner { height: 30px; gap: 9px; font-size: 9.5px; letter-spacing: .12em; }
  .rail-item--optional { display: none; }

  .brand-mark { width: 24px; height: 24px; }
  .brand-mark::after { inset: 5px; }
  .brand-name { font-size: 17px; }

  .footer-meta { flex-direction: column; align-items: flex-start; }
  .footer-year { order: -1; }
}

@media (max-width: 620px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand { grid-column: auto; }
  .footer-tagline { max-width: none; }
}

/* ==========================================================================
   15. 降低动效
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .card:hover { transform: none; }
  .btn:active { transform: none; }
  .nav-link:hover,
  .nav-link[aria-current="page"],
  .nav-link:focus-visible { }
}
