:root {
  --bg-main: #0A0612;
  --bg-panel: #140B22;
  --bg-float: #1E1030;
  --gold: #E8B84B;
  --gold-bright: #FFD97A;
  --neon-blue: #00E5FF;
  --red-alert: #B3123C;
  --text-main: #F4E9FF;
  --text-sub: #B9A6CC;
  --border-line: #3A2450;
  --font-head: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", "Consolas", monospace;
  --header-h: 72px;
  --container-w: 1200px;
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --shadow-strong: 8px 8px 0 rgba(0, 0, 0, 0.35);
  --shadow-gold: 0 0 18px rgba(232, 184, 75, 0.45);
  --border-thick: 3px solid var(--border-line);
  --border-gold: 2px solid var(--gold);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--space-md));
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  background:
    radial-gradient(ellipse at 12% -4%, rgba(30, 16, 48, 0.9) 0%, rgba(10, 6, 18, 0) 44%),
    radial-gradient(ellipse at 88% 6%, rgba(0, 229, 255, 0.06) 0%, rgba(10, 6, 18, 0) 36%),
    linear-gradient(180deg, #0a0612 0%, #0d0715 56%, #080410 100%);
  color: var(--text-main);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: var(--neon-blue);
  text-decoration: none;
  transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out), background-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

a:hover {
  color: var(--gold-bright);
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  border: none;
  cursor: pointer;
  background: transparent;
  color: inherit;
}

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

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 2000;
  background: var(--gold);
  color: #1a0b00;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 0 0 6px 6px;
  transition: top 0.2s var(--ease-out);
}

.skip-link:focus {
  top: 0;
}

.container {
  width: min(var(--container-w), 100% - 48px);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 6, 18, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: var(--border-thick);
  transition: background 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.site-header[data-scrolled] {
  background: rgba(10, 6, 18, 0.97);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.progress-rail {
  position: absolute;
  left: 0;
  bottom: -3px;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--neon-blue));
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.5);
  z-index: 2;
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-block: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--text-main);
  text-transform: uppercase;
  line-height: 1;
}

.brand:hover {
  color: var(--gold-bright);
}

.brand-text {
  position: relative;
}

.brand-text::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}

.brand:hover .brand-text::after {
  transform: scaleX(1);
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #1a0b00;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 100%);
  padding: 3px 7px;
  border-radius: 3px;
  box-shadow: var(--shadow-gold);
  transform: rotate(3deg);
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-sub);
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 4px;
  transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out), background 0.2s var(--ease-out);
}

.nav-link:hover {
  color: var(--text-main);
  background: var(--bg-float);
  border-color: var(--border-line);
}

.nav-link[aria-current="page"] {
  color: var(--gold-bright);
  background: rgba(232, 184, 75, 0.08);
  border-color: rgba(232, 184, 75, 0.45);
  box-shadow: inset 0 -2px 0 var(--gold);
}

.header-cta {
  flex-shrink: 0;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #1a0b00;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 100%);
  border: 1px solid rgba(255, 217, 122, 0.8);
  padding: 10px 20px;
  border-radius: 4px;
  box-shadow: 4px 4px 0 rgba(179, 18, 60, 0.4);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), filter 0.2s var(--ease-out);
}

.btn-gold:hover {
  filter: brightness(1.08);
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 rgba(179, 18, 60, 0.5);
  color: #1a0b00;
}

.btn-gold:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 rgba(179, 18, 60, 0.6);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 10px;
  border: 2px solid var(--border-line);
  border-radius: 4px;
  background: var(--bg-panel);
  transition: border-color 0.2s var(--ease-out), background 0.2s var(--ease-out);
}

.nav-toggle:hover {
  border-color: var(--gold);
  background: var(--bg-float);
}

.nav-toggle-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-main);
  transition: transform 0.3s var(--ease-out), opacity 0.2s var(--ease-out), background 0.2s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--gold);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--gold);
}

.site-footer {
  margin-top: auto;
  background:
    linear-gradient(120deg, rgba(20, 11, 34, 0.98) 0%, rgba(10, 6, 18, 0.98) 100%);
  border-top: var(--border-thick);
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 18%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.4fr;
  gap: var(--space-lg);
  padding-block: var(--space-xl) var(--space-lg);
}

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: var(--space-sm);
}

.footer-brand-link:hover {
  color: var(--gold-bright);
}

.footer-about {
  color: var(--text-sub);
  font-size: 14px;
  max-width: 320px;
  line-height: 1.8;
  margin-bottom: var(--space-sm);
}

.footer-slogan {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--neon-blue);
  letter-spacing: 1px;
}

.footer-heading {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 900;
  color: var(--gold-bright);
  letter-spacing: 2px;
  margin-bottom: var(--space-sm);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-line);
}

.footer-list {
  display: grid;
  gap: 8px;
}

.footer-link {
  display: inline-block;
  font-size: 14px;
  color: var(--text-sub);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}

.footer-link:hover {
  color: var(--gold-bright);
  border-bottom-color: var(--gold);
}

.footer-contact .footer-list li {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.7;
}

.footer-note {
  font-size: 13px;
  color: var(--red-alert);
  border-left: 3px solid var(--red-alert);
  padding-left: 10px;
  margin-top: 6px;
}

.footer-legal {
  border-top: 1px solid var(--border-line);
  background: rgba(0, 0, 0, 0.24);
}

.footer-legal-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-block: var(--space-sm);
  flex-wrap: wrap;
}

.legal-text {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-sub);
}

.legal-list {
  display: flex;
  gap: var(--space-md);
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 28px;
  width: 48px;
  height: 48px;
  border-radius: 4px;
  background: var(--bg-float);
  border: 2px solid var(--gold);
  color: var(--gold-bright);
  font-size: 20px;
  box-shadow: var(--shadow-strong);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), visibility 0.3s;
  z-index: 900;
}

.back-to-top[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--gold);
  color: #1a0b00;
}

.panel {
  background: var(--bg-panel);
  border: var(--border-thick);
  border-radius: 6px;
  box-shadow: var(--shadow-strong);
  padding: var(--space-lg);
}

.page-title-block {
  padding-block: var(--space-xl);
  border-bottom: var(--border-thick);
  margin-bottom: var(--space-lg);
  position: relative;
  background: linear-gradient(135deg, rgba(232, 184, 75, 0.08) 0%, transparent 46%);
}

.eyebrow-index {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: var(--space-xs);
  opacity: 0.8;
}

.page-title-block h1 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.1;
  letter-spacing: 2px;
  color: var(--text-main);
  text-shadow: 4px 4px 0 rgba(232, 184, 75, 0.14);
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.section-head h2 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 28px;
  color: var(--text-main);
}

.section-head .eyebrow-index {
  margin-bottom: 0;
}

.link-neon {
  color: var(--neon-blue);
  border-bottom: 1px solid rgba(0, 229, 255, 0.4);
  padding-bottom: 1px;
  font-weight: 500;
}

.link-neon:hover {
  color: var(--gold-bright);
  border-bottom-color: var(--gold);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--neon-blue);
  background: transparent;
  border: 2px solid var(--neon-blue);
  padding: 9px 18px;
  border-radius: 4px;
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.btn-ghost:hover {
  background: rgba(0, 229, 255, 0.12);
  color: var(--gold-bright);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.2);
}

.tag-version {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold-bright);
  border: 1px solid var(--gold);
  border-radius: 3px;
  padding: 2px 8px;
  background: rgba(232, 184, 75, 0.08);
  letter-spacing: 1px;
}

.img-placeholder {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background: var(--bg-float);
  border: var(--border-thick);
  border-radius: 4px;
  contain: layout style;
}

.img-placeholder::after {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--text-sub);
  content: "澳门威斯人游戏 · 图像占位";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(-45deg, rgba(232, 184, 75, 0.03) 0 8px, transparent 8px 16px);
}

.ratio-16x9 {
  aspect-ratio: 16 / 9;
}

.ratio-4x3 {
  aspect-ratio: 4 / 3;
}

.ratio-1x1 {
  aspect-ratio: 1 / 1;
}

.grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.info-note {
  display: block;
  font-size: 13px;
  color: var(--text-sub);
  border-left: 3px solid var(--red-alert);
  background: rgba(179, 18, 60, 0.08);
  padding: 12px 16px;
  margin-block: var(--space-sm);
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }

  .footer-nav {
    padding-left: var(--space-sm);
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 62px;
  }

  .container {
    width: min(100% - 28px, var(--container-w));
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    inset: var(--header-h) 0 0 0;
    background: rgba(10, 6, 18, 0.98);
    backdrop-filter: blur(14px);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-md);
    border-top: 1px solid var(--gold);
    border-bottom: 3px solid var(--gold);
    transform: translateX(100%);
    transition: transform 0.35s var(--ease-out);
    overflow-y: auto;
    z-index: 999;
  }

  .site-nav[data-open] {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .nav-link {
    font-size: 17px;
    padding: 14px 16px;
    border: 1px solid transparent;
  }

  .nav-link[aria-current="page"] {
    border-color: var(--gold);
    background: rgba(232, 184, 75, 0.12);
  }

  .nav-toggle {
    display: flex;
  }

  .header-cta {
    display: none;
  }

  .header-inner {
    gap: var(--space-sm);
  }

  .brand-text {
    font-size: 19px;
  }

  .brand-badge {
    font-size: 11px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    padding-block: var(--space-lg) var(--space-md);
  }

  .footer-nav {
    padding-left: 0;
  }

  .footer-legal-inner {
    flex-direction: column;
    text-align: center;
    padding-block: var(--space-sm);
  }

  .legal-list {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
  }

  .grid-2col,
  .grid-3col {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .panel {
    padding: var(--space-md);
  }

  .page-title-block h1 {
    font-size: 36px;
  }

  .back-to-top {
    right: 16px;
    bottom: 20px;
    width: 42px;
    height: 42px;
  }
}
