/* ============================================================
   澳门电玩城 CN · /assets/site.css
   共享外壳：reset / 变量 / 排版 / 头部 / 页脚 / 通用组件
   ============================================================ */

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

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

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, li, figure, figcaption, blockquote, dl, dd, table, th, td {
  margin: 0;
  padding: 0;
}

ul, ol { list-style: none; }

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

button { font: inherit; color: inherit; background: none; border: 0; }

a { color: inherit; }

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

/* ---------- 2. Tokens ---------- */
:root {
  --ink: #070A1A;
  --panel: #10152E;
  --sector: #17123A;
  --neon: #A855F7;
  --cyan: #22D3EE;
  --gold: #F5C542;
  --red: #F43F5E;
  --text: #F7F5FF;
  --muted: #B8B3D9;
  --edge: #3B2E66;

  --shell: 1280px;
  --gutter: clamp(16px, 4vw, 40px);

  --font-head: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(.22, .9, .28, 1);
  --cut-sm: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  --cut-lg: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

/* ---------- 3. Base / 中文排版 ---------- */
body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: clamp(16px, 0.35vw + 15px, 17.5px);
  line-height: 1.75;
  color: var(--text);
  background-color: var(--ink);
  background-image:
    radial-gradient(1100px 560px at 8% -12%, rgba(168, 85, 247, .20), transparent 62%),
    radial-gradient(900px 480px at 96% 2%, rgba(34, 211, 238, .13), transparent 64%),
    radial-gradient(700px 500px at 50% 108%, rgba(23, 18, 58, .9), transparent 70%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 全站极淡扫描线，只做质感，不影响可读性 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 4px);
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -.005em;
  text-wrap: balance;
}

h1 { font-size: clamp(28px, 4.4vw, 48px); text-shadow: 0 0 26px rgba(168, 85, 247, .38); }
h2 { font-size: clamp(22px, 2.8vw, 32px); text-shadow: 0 0 20px rgba(168, 85, 247, .26); }
h3 { font-size: clamp(18px, 2vw, 24px); line-height: 1.28; }

p { text-wrap: pretty; }

strong { color: var(--gold); font-weight: 700; }

::selection { background: rgba(168, 85, 247, .45); color: #fff; }

:where(a, button, [tabindex]):focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 4. 布局骨架 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(36px, 5.4vw, 68px); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(18px, 2.6vw, 30px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--neon), var(--cyan));
}

.lede {
  max-width: 62ch;
  font-size: clamp(16px, .8vw + 14px, 18px);
  line-height: 1.8;
  color: var(--muted);
}

.rule {
  height: 1px;
  border: 0;
  margin-block: clamp(24px, 3.6vw, 40px);
  background: linear-gradient(90deg, transparent, var(--edge) 18%, var(--edge) 82%, transparent);
}

.stack > * + * { margin-top: clamp(12px, 1.6vw, 20px); }

/* ---------- 5. 通用按钮 ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  clip-path: var(--cut-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease),
              background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}

.btn:focus-visible { outline: none; }

.btn:focus-visible::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 2px solid var(--cyan);
  pointer-events: none;
}

.btn-primary {
  color: #FFFFFF;
  background-image: linear-gradient(135deg, var(--red), #AF2246 78%);
  box-shadow: 0 8px 22px rgba(244, 63, 94, .28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(244, 63, 94, .44);
}

.btn-ghost {
  color: var(--text);
  background-color: rgba(16, 21, 46, .72);
  border: 1px solid var(--edge);
}

.btn-ghost:hover {
  color: var(--cyan);
  border-color: rgba(34, 211, 238, .7);
  transform: translateY(-2px);
}

/* ---------- 6. 面包屑 ---------- */
.crumbs { margin-bottom: clamp(14px, 2vw, 22px); }

.crumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--muted);
}

.crumb { display: inline-flex; align-items: center; }

.crumb:not(:first-child)::before {
  content: "›";
  margin-inline: 9px;
  color: var(--neon);
}

.crumb-link {
  text-decoration: none;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}

.crumb-link:hover { color: var(--cyan); border-bottom-color: rgba(34, 211, 238, .6); }

.crumb[aria-current="page"] { color: var(--gold); }

/* ---------- 7. 面板 / 标签 / 网格 ---------- */
.panel {
  position: relative;
  padding: clamp(16px, 2.2vw, 26px);
  background-image: linear-gradient(158deg, rgba(16, 21, 46, .96), rgba(23, 18, 58, .74));
  border: 1px solid var(--edge);
  border-radius: 14px;
}

.panel-cut { clip-path: var(--cut-lg); border-radius: 0; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .05em;
  color: var(--muted);
  background-color: rgba(168, 85, 247, .10);
  border: 1px solid var(--edge);
  border-radius: 999px;
}

.tag-gold { color: var(--gold); border-color: rgba(245, 197, 66, .45); background-color: rgba(245, 197, 66, .10); }
.tag-cyan { color: var(--cyan); border-color: rgba(34, 211, 238, .45); background-color: rgba(34, 211, 238, .10); }
.tag-red  { color: #FF8098; border-color: rgba(244, 63, 94, .45); background-color: rgba(244, 63, 94, .12); }

.grid {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ---------- 8. 图片容器基础 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--edge);
  border-radius: 14px;
  background-image: linear-gradient(150deg, var(--sector), #0A0B1F 70%);
}

.media-frame[data-ratio="wide"] { aspect-ratio: 21 / 9; }
.media-frame[data-ratio="square"] { aspect-ratio: 1 / 1; }
.media-frame[data-ratio="tall"] { aspect-ratio: 4 / 5; }

.media-frame img,
.media-frame picture,
.media-frame picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(180deg, transparent 52%, rgba(7, 10, 26, .74));
}

.media-tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--text);
  background-color: rgba(7, 10, 26, .78);
  border: 1px solid var(--edge);
  border-radius: 999px;
}

.media-caption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- 9. 滚动显现 ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s var(--ease) var(--reveal-delay, 0s),
              transform .7s var(--ease) var(--reveal-delay, 0s);
}

.js [data-reveal][data-revealed] {
  opacity: 1;
  transform: none;
}

/* ============================================================
   10. 头部：双层信息导航
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background-color: rgba(7, 10, 26, .92);
  border-bottom: 1px solid var(--edge);
  transition: box-shadow .25s var(--ease), background-color .25s var(--ease);
}

@supports (backdrop-filter: blur(12px)) {
  .site-header { backdrop-filter: blur(12px); }
}

.site-header[data-scrolled] {
  background-color: rgba(7, 10, 26, .98);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .55);
}

.skip-link {
  position: absolute;
  top: -64px;
  left: var(--gutter);
  z-index: 120;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  color: #04121A;
  text-decoration: none;
  background-color: var(--cyan);
  border-radius: 0 0 10px 10px;
  transition: top .2s var(--ease);
}

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

.hdr-shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* 上层：品牌说明 + 客服 */
.hdr-utility {
  background-image: linear-gradient(90deg, var(--sector), var(--panel) 52%, var(--sector));
  border-bottom: 1px solid rgba(59, 46, 102, .72);
}

.hdr-utility .hdr-shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 18px;
  min-height: 36px;
  padding-block: 6px;
}

.hdr-note {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  letter-spacing: .08em;
  color: var(--muted);
}

.hdr-note-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background-color: var(--cyan);
  box-shadow: 0 0 10px var(--cyan), 0 0 22px rgba(34, 211, 238, .55);
  animation: hdr-breathe 3.6s ease-in-out infinite;
}

@keyframes hdr-breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: .32; }
}

.hdr-utility-meta {
  font-size: 12.5px;
  letter-spacing: .05em;
  color: var(--muted);
}

.hdr-mono {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .01em;
  color: var(--gold);
}

/* 下层：品牌 + 栏目 + 行动 */
.hdr-main-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px clamp(10px, 1.5vw, 22px);
  padding-block: 12px;
}

.brand,
.ft-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--text);
  border-radius: 8px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 20px;
  line-height: 1;
  color: #0A0620;
  background-image: linear-gradient(140deg, var(--neon), var(--cyan));
  clip-path: polygon(0 0, 100% 0, 100% 66%, 66% 100%, 0 100%);
  box-shadow: 0 0 20px rgba(168, 85, 247, .5);
}

.brand-text { display: block; }

.brand-name {
  display: block;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: .02em;
  line-height: 1.2;
}

.brand-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .22em;
  color: var(--muted);
}

/* 主导航 */
.nav {
  display: flex;
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(2px, .9vw, 14px);
}

.nav-item { flex: 0 0 auto; }

.nav-link {
  position: relative;
  display: inline-block;
  padding: 10px 8px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 3px;
  height: 2px;
  background-image: linear-gradient(90deg, var(--neon), var(--cyan));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .28s var(--ease);
}

.nav-link:hover,
.nav-link:focus-visible { color: var(--text); }

.nav-link:hover::after,
.nav-link:focus-visible::after { transform: scaleX(1); }

.nav-link[aria-current="page"] {
  color: var(--gold);
  text-shadow: 0 0 14px rgba(245, 197, 66, .5);
}

.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
  background-image: linear-gradient(90deg, var(--gold), var(--red));
}

.hdr-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  margin-left: auto;
}

.hdr-cta { flex: 0 0 auto; }

/* 移动端开关 */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--edge);
  border-radius: 12px;
  background-color: rgba(23, 18, 58, .88);
  cursor: pointer;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}

.nav-toggle:hover { border-color: rgba(34, 211, 238, .75); }

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background-color: var(--text);
  transition: transform .25s var(--ease), opacity .18s linear;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   11. 页脚
   ============================================================ */
.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: clamp(48px, 7vw, 96px);
  padding-bottom: clamp(20px, 3vw, 32px);
  background-image: linear-gradient(180deg, var(--sector), #0C0A22 62%, var(--ink));
  border-top: 1px solid var(--edge);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background-image: linear-gradient(90deg, var(--red), var(--neon) 28%, var(--cyan) 62%, var(--gold));
  opacity: .9;
}

.ft-slant {
  position: absolute;
  top: 0;
  right: -12%;
  width: 64%;
  height: 240px;
  pointer-events: none;
  background-image: radial-gradient(circle at 72% 0%, rgba(168, 85, 247, .3), transparent 66%);
}

.ft-shell {
  position: relative;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.ft-top {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 3.4vw, 48px);
  padding-block: clamp(32px, 4.4vw, 56px) clamp(20px, 3vw, 34px);
}

.ft-identity { min-width: 0; }

.ft-brand .brand-mark { width: 38px; height: 38px; font-size: 18px; }
.ft-brand .brand-name { font-size: 16px; }

.ft-summary {
  max-width: 40ch;
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--muted);
}

.ft-stamp {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  color: rgba(184, 179, 217, .72);
}

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

.ft-col { min-width: 0; }

.ft-col-title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: none;
}

.ft-links { display: grid; gap: 10px; }

.ft-link {
  display: inline-block;
  font-size: 14.5px;
  color: var(--muted);
  text-decoration: none;
  transition: color .18s var(--ease), transform .18s var(--ease);
}

.ft-link::before {
  content: "›";
  margin-right: 8px;
  font-family: var(--font-mono);
  color: rgba(168, 85, 247, .8);
}

.ft-link:hover,
.ft-link:focus-visible {
  color: var(--cyan);
  transform: translateX(3px);
}

.ft-contact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px clamp(16px, 3vw, 40px);
  padding-block: clamp(18px, 2.6vw, 26px);
  border-top: 1px solid rgba(59, 46, 102, .85);
  border-bottom: 1px solid rgba(59, 46, 102, .85);
}

.ft-contact-item { min-width: 0; }

.ft-label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(184, 179, 217, .8);
}

.ft-value {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text);
  overflow-wrap: anywhere;
}

.ft-note {
  margin-top: 5px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--muted);
}

.ft-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: clamp(16px, 2.2vw, 22px);
}

.ft-copy {
  font-size: 12.5px;
  letter-spacing: .02em;
  color: var(--muted);
}

.ft-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.ft-legal-link {
  font-size: 12.5px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}

.ft-legal-link:hover,
.ft-legal-link:focus-visible {
  color: var(--cyan);
  border-bottom-color: rgba(34, 211, 238, .65);
}

/* ============================================================
   12. 响应式
   ============================================================ */
@media (max-width: 1080px) {
  .nav-link { font-size: 14px; padding-inline: 7px; }
  .brand-name { font-size: 16px; }
  .hdr-cta { padding: 10px 15px; font-size: 13.5px; }
}

@media (max-width: 960px) {
  html { scroll-padding-top: 120px; }

  .ft-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ft-identity { grid-column: 1 / -1; }
  .ft-summary { max-width: 56ch; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }

  .nav {
    order: 3;
    display: none;
    flex: 1 1 100%;
    width: 100%;
    justify-content: flex-start;
    margin-top: 12px;
    padding: 10px;
    background-image: linear-gradient(158deg, rgba(16, 21, 46, .98), rgba(23, 18, 58, .94));
    border: 1px solid var(--edge);
    border-radius: 14px;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
    box-shadow: 0 16px 36px rgba(0, 0, 0, .5);
  }

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

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    width: 100%;
  }

  .nav-link {
    display: block;
    width: 100%;
    padding: 12px 14px;
    font-size: 15.5px;
    color: var(--text);
    border-left: 2px solid transparent;
    border-radius: 10px;
  }

  .nav-link::after { display: none; }

  .nav-link:hover,
  .nav-link:focus-visible {
    background-color: rgba(168, 85, 247, .14);
    border-left-color: var(--neon);
  }

  .nav-link[aria-current="page"] {
    color: var(--gold);
    background-color: rgba(245, 197, 66, .1);
    border-left-color: var(--gold);
  }
}

@media (max-width: 720px) {
  .ft-contact { grid-template-columns: 1fr; }
  .ft-top { gap: 24px; }
  .ft-legal { justify-content: flex-start; }
}

@media (max-width: 600px) {
  .hdr-cta { display: none; }
  .brand-sub { letter-spacing: .16em; font-size: 9.5px; }
  .brand-mark { width: 38px; height: 38px; font-size: 18px; }
  .hdr-note { font-size: 11.5px; letter-spacing: .04em; }
  .hdr-utility-meta { font-size: 11.5px; }
  .hdr-mono { font-size: 12px; }
}

@media (max-width: 460px) {
  .ft-top { grid-template-columns: 1fr; }
  .hdr-utility .hdr-shell { gap: 2px 14px; }
}

/* ---------- 13. 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .hdr-note-dot { animation: none; opacity: 1; }

  .js [data-reveal] { opacity: 1; transform: none; }

  .btn-primary:hover,
  .btn-ghost:hover,
  .ft-link:hover { transform: none; }
}
