/* ============================================================
   澳门娱乐正版 · 共享样式表  /assets/site.css
   框架外壳 + 通用组件（页面专属布局由后续页面 CSS 承担）
   ============================================================ */

/* ---------- 1. reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body, h1, h2, h3, h4, h5, p, ul, ol, li, figure, blockquote, dl, dd {
  margin: 0;
}
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg, video { display: block; max-width: 100%; }
table { border-collapse: collapse; width: 100%; }

/* ---------- 2. 设计令牌 ---------- */
:root {
  --ink-deepest: #05110F;
  --ink-base: #0B2B26;
  --ink-layer: #123B33;
  --gold: #C9A227;
  --gold-bright: #E8C766;
  --neon: #E23A78;
  --cyan: #4FD1C5;
  --ivory: #F2EFE6;
  --graphite: #8A9791;
  --glass: rgba(255, 255, 255, 0.08);
  --gradient-mist: linear-gradient(160deg, #0B2B26 0%, #123B33 45%, #1B1B3A 100%);

  --line-soft: rgba(201, 162, 39, 0.22);
  --line-strong: rgba(201, 162, 39, 0.55);
  --line-cool: rgba(79, 209, 197, 0.26);
  --line-hair: rgba(255, 255, 255, 0.07);

  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", "SFMono-Regular", Consolas, "Courier New", monospace;

  --gutter: clamp(20px, 5vw, 92px);
  --shell-max: 1360px;
  --measure: 42em;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  background-color: var(--ink-base);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.8;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
p { max-width: var(--measure); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.01em;
}
strong { color: var(--gold-bright); font-weight: 700; }
::selection { background: var(--neon); color: #FFFFFF; }

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 1px;
}

.mono { font-family: var(--font-mono); }

/* ---------- 4. 页面框架线（桌面端左右细描边） ---------- */
@media (min-width: 1080px) {
  body::before,
  body::after {
    content: "";
    position: fixed;
    top: 0;
    bottom: 0;
    width: 1px;
    z-index: 55;
    pointer-events: none;
    background: linear-gradient(
      180deg,
      rgba(201, 162, 39, 0) 0%,
      rgba(201, 162, 39, 0.42) 12%,
      rgba(201, 162, 39, 0.42) 88%,
      rgba(201, 162, 39, 0) 100%
    );
  }
  body::before { left: clamp(16px, 2.2vw, 34px); }
  body::after { right: clamp(16px, 2.2vw, 34px); }
}

/* ---------- 5. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: -72px;
  left: clamp(16px, 2.2vw, 34px);
  z-index: 200;
  padding: 10px 20px;
  background: var(--gold);
  color: var(--ink-deepest);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: top 0.18s var(--ease);
}
.skip-link:focus { top: 0; }

/* ---------- 6. 页头外壳 ---------- */
.site-frame-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(5, 17, 15, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.6vw, 44px);
}

/* 品牌 */
.brand-mark {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: clamp(14px, 2vw, 32px);
  border-right: 1px solid var(--line-soft);
}
.brand-index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--gold);
  border: 1px solid var(--line-soft);
  padding: 3px 6px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.28; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(15px, 1.5vw, 19px);
  letter-spacing: 0.02em;
  color: var(--ivory);
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--graphite);
}

/* 导航 */
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  margin-left: auto;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(2px, 1vw, 10px);
}
.nav-link {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px 8px;
  font-size: 14.5px;
  color: rgba(242, 239, 230, 0.76);
  border-bottom: 2px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.nav-index {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--graphite);
  transition: color 0.18s var(--ease);
}
.nav-label { white-space: nowrap; }
.nav-link:hover { color: var(--ivory); border-bottom-color: var(--gold-bright); }
.nav-link:hover .nav-index { color: var(--neon); }
.nav-link[aria-current="page"] {
  color: var(--gold-bright);
  border-bottom-color: var(--gold);
}
.nav-link[aria-current="page"] .nav-index { color: var(--gold); }

.nav-aside {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 移动端按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 9px 14px;
  border: 1px solid var(--line-soft);
  background: var(--glass);
  color: var(--ivory);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.nav-toggle:hover { border-color: var(--line-strong); color: var(--gold-bright); }
.nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 16px;
  height: 12px;
}
.nav-toggle-bars span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--gold);
  transition: transform 0.18s var(--ease), opacity 0.18s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(5.25px) 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(-5.25px) rotate(-45deg); }

/* 滚动进度 */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}
.scroll-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--neon) 100%);
}

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 20px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease),
              border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink-deepest);
}
.btn-gold:hover { background: var(--gold-bright); border-color: var(--gold-bright); }
.btn-ghost {
  background: var(--glass);
  color: var(--ivory);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--line-strong);
  color: var(--gold-bright);
}
.btn-neon {
  background: var(--neon);
  border-color: var(--neon);
  color: #FFFFFF;
}
.btn-neon:hover { box-shadow: 0 8px 26px rgba(226, 58, 120, 0.38); }

/* ---------- 8. 页脚外壳 ---------- */
.site-frame-footer {
  margin-top: clamp(64px, 9vw, 132px);
  background: var(--ink-deepest);
  border-top: 1px solid var(--line-soft);
}
.footer-inner {
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(28px, 4vw, 46px);
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 2.1fr);
  gap: clamp(28px, 4vw, 64px);
}
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 26px);
  letter-spacing: 0.02em;
  color: var(--ivory);
}
.footer-brand-line {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--gold);
}
.footer-region {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--graphite);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}
.footer-col { min-width: 0; }
.footer-col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}
.footer-list { display: flex; flex-direction: column; gap: 9px; }
.footer-list li { line-height: 1.7; }
.footer-list a {
  font-size: 14.5px;
  color: rgba(242, 239, 230, 0.78);
  transition: color 0.18s var(--ease), padding-left 0.18s var(--ease);
}
.footer-list a:hover { color: var(--gold-bright); padding-left: 6px; }

.footer-contact { gap: 10px; font-size: 13.5px; color: var(--graphite); }
.footer-contact .footer-contact-strong {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ivory);
}

.footer-legal {
  position: sticky;
  bottom: 0;
  z-index: 20;
  background: var(--ink-deepest);
  border-top: 1px solid var(--line-hair);
}
.footer-legal-inner {
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: 14px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--graphite);
}
.footer-icp { color: var(--gold); letter-spacing: 0.1em; }
.footer-copy { color: var(--graphite); }

/* ---------- 9. 布局工具 ---------- */
.container {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(44px, 7vw, 104px); }
.section-tight { padding-block: clamp(26px, 4vw, 56px); }

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

/* ---------- 10. 标题组 ---------- */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: clamp(24px, 4vw, 56px);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold);
}
.display-title {
  font-size: clamp(2rem, 5.4vw, 4.2rem);
  letter-spacing: -0.02em;
  line-height: 1.06;
}
.lede {
  max-width: var(--measure);
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  line-height: 1.85;
  color: rgba(242, 239, 230, 0.82);
}
.rule {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--line-soft) 0%, rgba(201, 162, 39, 0) 100%);
}

/* ---------- 11. 卡片与面板 ---------- */
.card {
  position: relative;
  display: block;
  background: var(--ink-layer);
  border: 1px solid var(--line-hair);
  border-radius: var(--radius);
  padding: clamp(18px, 2.4vw, 30px);
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease),
              box-shadow 0.18s var(--ease);
}
.card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.38);
}
.card-solid { background: var(--ink-layer); }
.card-glass {
  background: var(--glass);
  border-color: rgba(255, 255, 255, 0.13);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.card-glass:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--line-strong);
}
.card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.card-body {
  max-width: var(--measure);
  font-size: 15px;
  line-height: 1.8;
  color: rgba(242, 239, 230, 0.78);
}

.glass-panel {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding: clamp(20px, 3vw, 40px);
}

.action-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: clamp(24px, 3vw, 40px);
  padding: 14px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--graphite);
}
.action-strip-link {
  color: var(--gold-bright);
  transition: color 0.18s var(--ease);
}
.action-strip-link:hover { color: var(--neon); }

/* ---------- 12. 标签与元信息 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid var(--line-cool);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--cyan);
}
.meta-line {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--graphite);
}
.index-num {
  font-family: var(--font-mono);
  color: var(--gold);
  letter-spacing: 0.1em;
}

/* ---------- 13. 数据组 ---------- */
.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(18px, 3vw, 48px);
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.8vw, 2.1rem);
  letter-spacing: -0.02em;
  color: var(--gold-bright);
  line-height: 1.1;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--graphite);
}

/* ---------- 14. 图片容器基础规则 ---------- */
.figure { margin: 0; }
.figure-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--gradient-mist);
}
.figure-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.06);
}
.figure-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 82% 0%, rgba(226, 58, 120, 0.18) 0%, rgba(226, 58, 120, 0) 58%),
    linear-gradient(180deg, rgba(5, 17, 15, 0) 52%, rgba(5, 17, 15, 0.72) 100%);
}
.figure--wide .figure-media { aspect-ratio: 21 / 9; }
.figure--portrait .figure-media { aspect-ratio: 3 / 4; }
.figure-caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--graphite);
}

/* ---------- 15. 面包屑 ---------- */
.breadcrumb { margin-bottom: clamp(20px, 3vw, 36px); }
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--graphite);
}
.breadcrumb-item { display: inline-flex; align-items: center; }
.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  margin-right: 8px;
  color: var(--gold);
}
.breadcrumb-item a { color: rgba(242, 239, 230, 0.72); transition: color 0.18s var(--ease); }
.breadcrumb-item a:hover { color: var(--gold-bright); }
.breadcrumb-item.is-current { color: var(--gold); }

/* ---------- 16. 响应式 ---------- */
@media (max-width: 1080px) {
  .nav-list { gap: 0; }
  .nav-link { padding: 10px 6px; font-size: 14px; }
}

@media (max-width: 960px) {
  .brand-mark { border-right: 0; padding-right: 0; }
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    margin: 0;
    max-height: 86vh;
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 26px var(--gutter) calc(26px + env(safe-area-inset-bottom, 0px));
    background: var(--ink-deepest);
    border-top: 1px solid var(--gold);
    box-shadow: 0 -26px 60px rgba(0, 0, 0, 0.62);
    transform: translateY(102%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.24s var(--ease), visibility 0.24s linear;
  }
  .site-nav[data-open] {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-link {
    justify-content: flex-start;
    gap: 12px;
    padding: 14px 2px;
    font-size: 17px;
    color: rgba(242, 239, 230, 0.86);
    border-bottom: 1px solid var(--line-hair);
    border-left: 2px solid transparent;
  }
  .nav-link:hover,
  .nav-link[aria-current="page"] {
    border-bottom-color: var(--line-hair);
    border-left-color: var(--gold);
    color: var(--gold-bright);
    padding-left: 12px;
  }
  .nav-aside { flex-direction: column; gap: 10px; }
  .nav-aside .btn { width: 100%; }

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

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

@media (max-width: 620px) {
  body { font-size: 16px; }
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .footer-cols { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .footer-legal-inner { justify-content: flex-start; font-size: 11px; }
  .brand-sub { font-size: 10px; letter-spacing: 0.06em; }
}

@media (max-width: 400px) {
  .brand-index { display: none; }
}

/* ---------- 17. 动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
  .scroll-progress { display: none; }
}
