/* ==========================================================================
   /assets/site.css — 澳门威斯人中心 共享样式
   01 变量  02 重置  03 排版  04 工具类  05 按钮  06 头部  07 页脚  08 图像  09 动效
   ========================================================================== */

:root {
  --abyss: #081A33;
  --midnight: #0F2A4A;
  --sea: #1F4E79;
  --gold: #C9A227;
  --gold-bright: #E8C766;
  --gold-dark: #8A6A16;
  --cinnabar: #C84832;
  --slate: #7F9AA8;
  --mist: #DCE6EA;
  --ivory: #F4F1E8;
  --ink: #111820;
  --cold: #AAB8BE;

  --font-display: "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 260ms;

  --shell: 1240px;
  --gutter: clamp(16px, 3vw, 40px);
  --header-h: 84px;

  --line: rgba(127, 154, 168, 0.22);
  --line-soft: rgba(127, 154, 168, 0.12);
  --line-gold: rgba(201, 162, 39, 0.34);
  --notch: 16px;
}

/* ---------- 02 重置 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd, ul, ol { margin: 0; }

ul, ol { padding: 0; list-style: none; }

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

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

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }

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

/* ---------- 03 中文排版 ---------- */
body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  color: var(--ivory);
  background-color: var(--abyss);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: 0.02em;
  color: var(--ivory);
}

h1 { font-size: clamp(34px, 5vw, 68px); }
h2 { font-size: clamp(24px, 3vw, 42px); }
h3 { font-size: clamp(18px, 1.9vw, 26px); }
h4 { font-size: 18px; }

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

::selection {
  background: var(--gold);
  color: var(--abyss);
}

/* ---------- 04 工具类 ---------- */
.container {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: clamp(48px, 7vw, 96px);
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 32px;
  margin-bottom: clamp(24px, 3vw, 40px);
}

.prose {
  max-width: 72ch;
  font-size: 17px;
  line-height: 1.85;
  color: rgba(244, 241, 232, 0.86);
}

.prose p + p { margin-top: 1em; }
.prose a { color: var(--gold-bright); }

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

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
}

.numeral {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  color: var(--gold-bright);
}

.rule {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, var(--line-gold), rgba(127, 154, 168, 0.06));
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--slate);
}

.breadcrumb a {
  color: var(--slate);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

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

.breadcrumb__sep { color: rgba(127, 154, 168, 0.45); }

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

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
}

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

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

@media (max-width: 560px) {
  .grid--auto { grid-template-columns: 1fr; }
}

/* ---------- 05 按钮与焦点 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 2px;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}

.btn:hover { transform: translateY(-1px); }

.btn--gold {
  background: var(--gold);
  color: var(--abyss);
}

.btn--gold:hover,
.btn--gold:focus-visible {
  background: var(--gold-bright);
  color: var(--abyss);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(201, 162, 39, 0.5);
  color: var(--ivory);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
  background: rgba(201, 162, 39, 0.1);
}

.btn--cinnabar {
  background: var(--cinnabar);
  color: #FFF6F2;
}

.btn--cinnabar:hover,
.btn--cinnabar:focus-visible { background: #DA5740; }

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

.skip-link {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 500;
  transform: translate(-50%, -130%);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--abyss);
  background: var(--gold);
  text-decoration: none;
  transition: transform var(--dur) var(--ease);
}

.skip-link:focus { transform: translate(-50%, 0); }

/* ---------- 06 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: linear-gradient(180deg, #0A2140 0%, #081A33 100%);
  color: var(--ivory);
  border-bottom: 1px solid var(--line-soft);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background-image: repeating-linear-gradient(90deg, rgba(201, 162, 39, 0.55) 0 1px, transparent 1px 26px);
  opacity: 0.35;
  pointer-events: none;
}

.header-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(127, 154, 168, 0.14);
}

.header-progress__bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--sea) 0%, var(--gold) 55%, var(--gold-bright) 100%);
  transition: width 120ms linear;
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 2.4vw, 40px);
  width: 100%;
  max-width: var(--shell);
  min-height: var(--header-h);
  margin-inline: auto;
  padding: 12px var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.brand__mark {
  position: relative;
  display: block;
  width: 36px;
  height: 36px;
  border: 1px solid var(--gold);
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.24), rgba(31, 78, 121, 0.18) 62%, transparent);
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
  transition: border-color var(--dur) var(--ease);
}

.brand__mark-line {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 50%;
  height: 1px;
  background: var(--gold-bright);
  transform: rotate(-38deg);
  transform-origin: center;
  opacity: 0.9;
}

.brand:hover .brand__mark,
.brand:focus-visible .brand__mark { border-color: var(--gold-bright); }

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.12em;
  color: var(--ivory);
}

.brand__utility {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.1em;
  color: var(--slate);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--ivory);
  border: 1px solid var(--line-gold);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 20px;
}

.nav-toggle__bars span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: currentColor;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(5.5px) 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.5px) rotate(-45deg); }

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

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 26px);
}

.site-nav__link {
  position: relative;
  display: inline-block;
  padding: 6px 2px 8px;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: rgba(220, 230, 234, 0.78);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.site-nav__link:hover,
.site-nav__link:focus-visible { color: var(--gold-bright); }

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

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

.site-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--gold-bright);
}

.site-nav__cta { white-space: nowrap; }

body.nav-open { overflow: hidden; }

/* 抽屉断点 */
@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 28px;
    background: linear-gradient(180deg, #0C2444 0%, #081A33 100%);
    border-bottom: 1px solid var(--line-gold);
    box-shadow: 0 30px 48px -28px rgba(0, 0, 0, 0.85);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity var(--dur) var(--ease),
                transform var(--dur) var(--ease),
                visibility var(--dur) var(--ease);
  }

  .site-nav[data-open] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav__list li + li { border-top: 1px solid var(--line-soft); }

  .site-nav__link {
    display: block;
    padding: 15px 2px;
    font-size: 16px;
    letter-spacing: 0.1em;
  }

  .site-nav__link::after { display: none; }

  .site-nav__link[aria-current="page"] {
    color: var(--gold-bright);
    box-shadow: inset 3px 0 0 var(--gold);
    padding-left: 12px;
  }

  .site-nav__cta {
    width: 100%;
    margin-top: 20px;
    padding-block: 14px;
  }
}

@media (max-width: 420px) {
  .brand__name { font-size: 17px; letter-spacing: 0.08em; }
  .brand__utility { font-size: 10px; }
  .nav-toggle__label { display: none; }
}

/* ---------- 07 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 110px);
  background: linear-gradient(180deg, #0C2444 0%, #081A33 58%, #061426 100%);
  color: var(--ivory);
  border-top: 1px solid var(--line-gold);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 8px;
  background-image: repeating-linear-gradient(90deg, rgba(201, 162, 39, 0.5) 0 1px, transparent 1px 24px);
  opacity: 0.4;
  pointer-events: none;
}

.site-footer::after {
  content: "";
  position: absolute;
  right: -140px;
  bottom: -180px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 78, 121, 0.45) 0%, transparent 68%);
  pointer-events: none;
}

.footer-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 74px) var(--gutter) 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: clamp(24px, 3vw, 48px);
}

.footer-brand__name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--ivory);
}

.footer-brand__line {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--slate);
}

.footer-brand__cta { margin-top: 22px; }

.footer-col__title {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-col ul {
  display: grid;
  gap: 10px;
}

.footer-col a {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(244, 241, 232, 0.76);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.footer-col a:hover,
.footer-col a:focus-visible { color: var(--gold-bright); }

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 28px;
  margin-top: clamp(32px, 5vw, 56px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.footer-contact__line {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ivory);
}

.footer-contact__addr {
  font-size: 14px;
  color: rgba(244, 241, 232, 0.72);
}

.footer-note {
  flex-basis: 100%;
  max-width: 78ch;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--slate);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--cold);
}

.footer-legal__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-legal__links a {
  color: var(--cold);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.footer-legal__links a:hover,
.footer-legal__links a:focus-visible { color: var(--gold-bright); }

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

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-legal { flex-direction: column; align-items: flex-start; }
}

/* ---------- 08 图像容器 ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(152deg, var(--midnight) 0%, #0A1F3A 58%, var(--abyss) 100%);
  border: 1px solid var(--line-gold);
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%);
}

.media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    repeating-linear-gradient(0deg, rgba(127, 154, 168, 0.1) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(90deg, rgba(127, 154, 168, 0.1) 0 1px, transparent 1px 26px);
  pointer-events: none;
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(8, 26, 51, 0) 42%, rgba(8, 26, 51, 0.62) 100%);
  pointer-events: none;
}

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

.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--3x4 { aspect-ratio: 3 / 4; }
.media--wide { aspect-ratio: 21 / 9; }

.media--plain::after { display: none; }

@media (max-width: 560px) {
  .media--wide { aspect-ratio: 16 / 9; }
}

/* ---------- 09 动效与降级 ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms var(--ease), transform 520ms var(--ease);
}

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

[data-section-link] {
  color: rgba(244, 241, 232, 0.62);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

[data-section-link]:hover { color: var(--gold-bright); }

[data-section-link][aria-current="true"] {
  color: var(--gold-bright);
}

@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;
    scroll-behavior: auto !important;
  }

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

  .btn:hover { transform: none; }
}
