/* ==========================================================================
   Site Kit · 盛大棋牌安装 — /assets/site.css
   共享外壳：重置 / 变量 / 中文排版 / 页头 / 页脚 / 基础组件
   ========================================================================== */

/* 1. 变量
   ========================================================================== */
:root {
  --ink: #0B1F18;
  --ink-2: #102A21;
  --felt: #16382C;
  --gold: #D4AF37;
  --gold-soft: #F2D27A;
  --vermilion: #C43B2E;
  --slate: #7D93A8;
  --paper: #E8E1D0;
  --paper-bright: #F5F1E6;
  --line: #2B2F36;
  --moss: #5B6F65;
  --hairline: rgba(232, 225, 208, 0.13);

  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --shell: 1180px;
  --gutter: clamp(18px, 4vw, 56px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow-hard: 6px 6px 0 var(--line);
  --shadow-lift: 0 18px 38px -18px rgba(0, 0, 0, 0.9);
}

/* 2. 重置
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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; }
a { color: var(--gold-soft); text-decoration-thickness: 1px; text-underline-offset: 3px; }
[id] { scroll-margin-top: clamp(96px, 14vh, 148px); }

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

/* 3. 中文排版与容器
   ========================================================================== */
.shell {
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
}

.section { padding-block: clamp(40px, 6vw, 80px); }
.section--tight { padding-block: clamp(26px, 3.5vw, 44px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--gold);
  flex: none;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.24;
  letter-spacing: -0.01em;
  color: var(--paper-bright);
  margin: 0 0 14px;
}

.lead {
  font-size: clamp(15.5px, 1.5vw, 18px);
  line-height: 1.8;
  color: var(--paper);
  max-width: 46ch;
}

.prose {
  max-width: 66ch;
  font-size: 16.5px;
  line-height: 1.9;
}
.prose p + p { margin-top: 1.1em; }
.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--paper-bright);
  margin: 2em 0 0.6em;
}
.prose h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold-soft);
  margin: 1.6em 0 0.4em;
}
.prose ul, .prose ol { padding-left: 1.3em; margin: 0.8em 0; list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.4em; }
.prose blockquote {
  margin: 1.4em 0;
  padding: 16px 20px;
  border-left: 3px solid var(--gold);
  background: rgba(232, 225, 208, 0.06);
  color: var(--paper);
}

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

.rule {
  height: 1px;
  border: 0;
  margin: clamp(24px, 4vw, 44px) 0;
  background: linear-gradient(90deg, var(--gold), rgba(212, 175, 55, 0) 72%);
}

/* 4. 跳过链接
   ========================================================================== */
.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 300;
  padding: 11px 20px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border-radius: 2px;
  transition: top 0.18s var(--ease);
}
.skip-link:focus { top: 12px; }

/* 5. 页头
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--ink);
  border-bottom: 1px solid var(--hairline);
  box-shadow: 0 20px 34px -28px rgba(0, 0, 0, 0.95);
}

.header-rail {
  background: var(--ink-2);
  border-bottom: 1px solid var(--hairline);
}
.header-rail-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 34px;
}
.header-status {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.03em;
  color: var(--moss);
}
.status-dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--vermilion);
  box-shadow: 0 0 0 3px rgba(196, 59, 46, 0.18);
}
.header-meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.4;
  color: var(--slate);
}

.header-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: clamp(12px, 2.6vw, 36px);
  padding-block: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--paper-bright);
}
.brand-mark {
  display: flex;
  align-items: stretch;
  gap: 3px;
  width: 36px;
  height: 36px;
  flex: none;
  padding: 4px;
  border: 1.5px solid var(--gold);
  border-radius: 2px;
  background: var(--felt);
}
.brand-mark i { display: block; flex: 1; background: var(--gold); }
.brand-mark i:nth-child(2) { background: var(--vermilion); }
.brand-mark i:nth-child(3) { background: var(--slate); }

.brand-text { display: flex; flex-direction: column; gap: 2px; }
.brand-name {
  font-family: var(--font-display);
  font-size: clamp(17px, 2.1vw, 21px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.04em;
}
.brand-tagline {
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.05em;
  color: var(--moss);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  background: transparent;
  border: 1.5px solid var(--gold);
  border-radius: 2px;
  color: var(--gold-soft);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.nav-toggle:hover { background: var(--gold); color: var(--ink); }
.nav-toggle-bars { display: grid; gap: 3px; width: 16px; flex: none; }
.nav-toggle-bars i {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 0.22s var(--ease), opacity 0.16s var(--ease);
}
.nav-toggle[aria-expanded="true"] { background: var(--gold); color: var(--ink); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.site-nav { justify-self: end; }
.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(6px, 1.6vw, 22px);
}
.nav-list a {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 2px 9px;
  color: var(--paper);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.18s var(--ease);
}
.nav-index {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--moss);
  transition: color 0.18s var(--ease);
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.24s var(--ease);
}
.nav-list a:hover { color: var(--gold-soft); }
.nav-list a:hover::after { transform: scaleX(1); }
.nav-list a[aria-current="page"] { color: var(--paper-bright); }
.nav-list a[aria-current="page"]::after { transform: scaleX(1); }
.nav-list a[aria-current="page"] .nav-index { color: var(--vermilion); }
.nav-list a[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--vermilion);
}

.header-cta {
  padding: 11px 18px;
  font-size: 13px;
  white-space: nowrap;
}

/* 6. 页脚
   ========================================================================== */
.site-footer {
  margin-top: clamp(48px, 8vw, 96px);
  background: var(--ink-2);
  border-top: 2px solid var(--gold);
  color: var(--paper);
}
.footer-shell { padding-block: clamp(38px, 6vw, 72px) 0; }

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
}

.footer-kicker {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.26em;
  line-height: 1.4;
  color: var(--gold);
  margin-bottom: 12px;
}
.footer-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--paper-bright);
  margin-bottom: 16px;
}
.footer-note {
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.85;
  color: var(--moss);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: clamp(20px, 3vw, 40px);
}
.footer-col-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.4;
  color: var(--gold);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.28);
}
.footer-list { display: grid; gap: 10px; }
.footer-list a {
  display: inline-block;
  color: var(--paper);
  font-size: 14.5px;
  line-height: 1.7;
  text-decoration: none;
  transition: color 0.16s var(--ease), padding-left 0.16s var(--ease);
}
.footer-list a:hover { color: var(--gold-soft); padding-left: 5px; }

.footer-contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 20px clamp(20px, 3vw, 40px);
  margin-top: clamp(34px, 5vw, 58px);
  padding-top: 26px;
  border-top: 1px solid var(--hairline);
}
.footer-contact-k {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.4;
  color: var(--slate);
  margin-bottom: 8px;
}
.footer-contact-v {
  display: block;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--paper-bright);
  overflow-wrap: anywhere;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: clamp(26px, 4vw, 42px);
  padding-block: 22px;
  border-top: 1px solid var(--hairline);
}
.footer-legal {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--moss);
}
.footer-copy {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--moss);
}

/* 7. 按钮
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1.5px solid transparent;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
              background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-gold {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.38);
}
.btn-gold:hover {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
  color: var(--ink);
  box-shadow: 0 7px 0 rgba(0, 0, 0, 0.38);
}

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(232, 225, 208, 0.34);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-soft); }

.btn-sm { padding: 9px 15px; font-size: 13px; }

/* 8. 面包屑
   ========================================================================== */
.breadcrumb {
  border-bottom: 1px solid var(--hairline);
  padding-block: 14px;
  font-size: 13px;
  color: var(--moss);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "/"; color: var(--moss); opacity: 0.6; }
.breadcrumb a { color: var(--paper); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-soft); }
.breadcrumb [aria-current="page"] { color: var(--gold-soft); }

/* 9. 布局与基础组件
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
}

.grid, .grid-2, .grid-3 {
  display: grid;
  gap: clamp(18px, 3vw, 32px);
}
.grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

.card {
  background: var(--felt);
  border: 1.5px solid rgba(232, 225, 208, 0.12);
  border-radius: 2px;
  padding: clamp(18px, 2.4vw, 26px);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(212, 175, 55, 0.45);
}
.card-title {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--paper-bright);
  margin-bottom: 8px;
}
.card-body { font-size: 14.5px; line-height: 1.85; color: var(--paper); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid rgba(125, 147, 168, 0.5);
  border-radius: 2px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.6;
  color: var(--slate);
}
.tag--gold { border-color: rgba(212, 175, 55, 0.55); color: var(--gold-soft); }
.tag--red {
  border-color: rgba(196, 59, 46, 0.7);
  color: var(--paper);
  background: rgba(196, 59, 46, 0.14);
}

.stat {
  border-left: 2px solid var(--gold);
  padding-left: 14px;
}
.stat-value {
  display: block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--gold);
}
.stat-label {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--moss);
}

/* 10. 图片容器（页面阶段放置实拍与界面局部）
   ========================================================================== */
.media {
  position: relative;
  display: block;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--felt);
  border: 1.5px solid rgba(232, 225, 208, 0.14);
  border-radius: 2px;
}
.media > img,
.media > picture > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 14px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--paper);
  background: linear-gradient(to top, rgba(11, 31, 24, 0.94), rgba(11, 31, 24, 0));
}
.media--wide { aspect-ratio: 21 / 9; }
.media--square { aspect-ratio: 1 / 1; }
.media--tall { aspect-ratio: 4 / 5; }
.media--contain > img { object-fit: contain; padding: 8px; }

/* 11. JS 注入组件：滚动进度 / 返回顶部
   ========================================================================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 90;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  background: var(--felt);
  border: 1.5px solid var(--gold);
  border-radius: 2px;
  color: var(--gold);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  box-shadow: 0 12px 26px -12px rgba(0, 0, 0, 0.95);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease),
              background 0.18s var(--ease), color 0.18s var(--ease);
}
.to-top[data-visible] { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top:hover { background: var(--gold); color: var(--ink); }

/* 12. 滚动显现
   ========================================================================== */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.reveal-ready [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* 13. 断点：平板
   ========================================================================== */
@media (min-width: 900px) {
  .footer-top { grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.6fr); }
  .split { grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr); }
  .split--flip { grid-template-columns: minmax(0, 1fr) minmax(220px, 0.34fr); }
}

/* 14. 断点：移动导航
   ========================================================================== */
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; grid-column: 2; }
  .header-main { grid-template-columns: minmax(0, 1fr) auto auto; }
  .brand { grid-column: 1; }
  .header-cta { grid-column: 3; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    justify-self: stretch;
    max-height: 0;
    overflow: hidden;
    padding-inline: var(--gutter);
    background: var(--ink-2);
    border-bottom: 1px solid var(--hairline);
    box-shadow: 0 26px 42px -20px rgba(0, 0, 0, 0.95);
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.32s var(--ease), opacity 0.22s var(--ease), visibility 0.22s;
  }
  .site-nav[data-open] {
    max-height: 74vh;
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
    padding-block: 6px 18px;
  }

  .nav-list { flex-direction: column; gap: 0; }
  .nav-list li { border-bottom: 1px solid var(--hairline); }
  .nav-list li:last-child { border-bottom: 0; }
  .nav-list a {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    padding: 14px 4px;
    font-size: 15.5px;
  }
  .nav-index { font-size: 11.5px; letter-spacing: 0.1em; }
  .nav-list a::after { display: none; }
  .nav-list a[aria-current="page"]::before {
    left: auto;
    right: 0;
    top: 50%;
    margin: -3px 0 0;
  }
  .nav-list a[aria-current="page"] {
    color: var(--gold-soft);
    box-shadow: inset 0 -2px 0 var(--gold);
  }
}

/* 15. 断点：手机
   ========================================================================== */
@media (max-width: 680px) {
  .header-rail { display: none; }
  .header-main { padding-block: 10px; gap: 8px; }
  .brand { gap: 9px; }
  .brand-mark { width: 28px; height: 28px; padding: 3px; }
  .brand-name { font-size: 16px; }
  .brand-tagline { display: none; }
  .header-cta { padding: 9px 12px; font-size: 12px; letter-spacing: 0.02em; }
  .footer-title { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .nav-toggle { padding: 10px; }
  .nav-toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .header-cta { padding: 9px 10px; font-size: 11.5px; }
}

/* 16. 减少动态效果
   ========================================================================== */
@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;
  }
  .reveal-ready [data-reveal] { opacity: 1; transform: none; }
  .card:hover, .btn:hover { transform: none; }
}
