/* ==========================================================================
   澳门黄金金版 · 共享样式 /assets/site.css
   金箔手册：墨黑底、暖金细线、等宽索引、锐利直角、无圆角无阴影
   ========================================================================== */

:root {
  /* 色彩 */
  --ink-900: #111111;
  --ink-700: #1C1C1A;
  --gold-500: #C9A227;
  --gold-300: #E4C766;
  --gold-700: #8A6B18;
  --steel-500: #5C6B7A;
  --amber-600: #C1651B;
  --sand-100: #F3EADA;
  --paper-50: #FAF7F2;
  --line-300: #D8CFC0;
  --muted-600: #6E6A63;
  --text-900: #151412;

  /* 字体 */
  --font-display: "Songti SC", "Source Han Serif SC", "Noto Serif SC", "SimSun", Georgia, "Times New Roman", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  /* 尺度 */
  --maxw: 1440px;
  --gutter: clamp(20px, 5vw, 96px);
  --col-gap: 24px;
  --status-h: 44px;
}

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

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

body {
  margin: 0;
  background: var(--paper-50);
  color: var(--text-900);
  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; }
a { color: inherit; }
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }

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

/* ---------- 通用排版工具 ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.4;
  color: var(--gold-700);
  padding-left: 12px;
  border-left: 1px solid var(--gold-500);
}

.eyebrow--on-dark { color: var(--gold-300); border-left-color: var(--gold-500); }

.lead {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.8;
  color: var(--text-900);
}

.prose {
  max-width: 38em;
  font-size: 16.5px;
  line-height: 1.85;
}

.prose > * + * { margin-top: 1.05em; }

.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: -0.01em;
  margin-top: 1.9em;
}

.prose h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  margin-top: 1.7em;
}

.prose ul li,
.prose ol li {
  position: relative;
  padding-left: 20px;
  margin-top: 0.55em;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.82em;
  width: 8px;
  height: 1px;
  background: var(--gold-500);
}

.prose ol { counter-reset: prose-ol; }
.prose ol li::before {
  counter-increment: prose-ol;
  content: counter(prose-ol, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.05em;
  width: auto;
  height: auto;
  background: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--gold-700);
}

.prose a {
  text-decoration: none;
  border-bottom: 1px solid var(--gold-500);
}
.prose a:hover { color: var(--gold-700); }

/* ---------- 容器与网格 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: 920px; }

.grid {
  display: grid;
  gap: var(--col-gap);
}

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

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 26px;
  border: 1px solid transparent;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn--gold {
  background: var(--gold-500);
  border-color: var(--gold-500);
  color: #14120E;
}
.btn--gold:hover,
.btn--gold:focus-visible {
  background: var(--gold-300);
  border-color: var(--gold-300);
}

.btn--wire {
  border-color: var(--gold-500);
  color: var(--gold-300);
}
.btn--wire:hover,
.btn--wire:focus-visible {
  background: rgba(201, 162, 39, 0.14);
  color: var(--paper-50);
}

.btn--ink {
  border-color: rgba(21, 20, 18, 0.4);
  color: var(--text-900);
}
.btn--ink:hover,
.btn--ink:focus-visible {
  background: var(--text-900);
  border-color: var(--text-900);
  color: var(--paper-50);
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  line-height: 1.6;
  color: var(--muted-600);
}

.breadcrumb a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--gold-700);
  border-bottom-color: var(--gold-500);
}

.breadcrumb__sep { color: var(--line-300); }

.breadcrumb--on-dark { color: #8B8375; }
.breadcrumb--on-dark .breadcrumb__sep { color: #4A463F; }
.breadcrumb--on-dark a:hover,
.breadcrumb--on-dark a:focus-visible { color: var(--gold-300); }

/* ---------- 响应式图片容器 ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--ink-700);
  border: 1px solid var(--line-300);
  aspect-ratio: 16 / 9;
}

.media > img,
.media > picture > img,
.media > svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.media--dark {
  background: #1C1C1A;
  border-color: rgba(201, 162, 39, 0.3);
}

.media__caption {
  display: block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.7;
  color: var(--muted-600);
}

/* ==========================================================================
   站点头部
   ========================================================================== */

.site-header {
  position: relative;
  z-index: 100;
  background: var(--ink-900);
  color: var(--paper-50);
  border-bottom: 1px solid rgba(201, 162, 39, 0.3);
}

/* ---------- 跳过导航 ---------- */
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 999;
  padding: 12px 22px;
  background: var(--gold-500);
  color: #14120E;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  border: 1px solid var(--gold-300);
  transition: top 0.18s ease;
}

.skip-link:focus {
  top: 10px;
  outline: 2px solid var(--paper-50);
  outline-offset: 2px;
}

/* ---------- 常驻状态条 ---------- */
.status-bar {
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--status-h);
  padding: 0 var(--gutter);
  background: var(--ink-700);
  border-bottom: 1px solid rgba(201, 162, 39, 0.22);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.09em;
  line-height: 1;
  color: #A79F90;
  white-space: nowrap;
  overflow: hidden;
}

.status-bar__dot {
  flex: none;
  width: 6px;
  height: 6px;
  background: var(--gold-500);
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.35);
}

.status-bar__item {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.status-bar__key { color: #7A7365; }

.status-bar__val {
  color: var(--gold-300);
  font-weight: 500;
  letter-spacing: 0.1em;
}

.status-bar__val--ok { color: var(--gold-300); }

.status-bar__divider { color: #4A463F; }

.status-bar__item--state { margin-left: auto; }

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-700) 0%, var(--gold-500) 58%, var(--gold-300) 100%);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* ---------- 品牌行 ---------- */
.header-main {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 20px var(--gutter) 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1 1 auto;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.brand__mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding-bottom: 2px;
  border: 1px solid var(--gold-500);
  color: var(--gold-500);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
  transition: color 0.18s ease, border-color 0.18s ease;
}

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

.brand__text { display: block; min-width: 0; }

.brand__name {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.25;
  color: var(--paper-50);
}

.brand__sub {
  display: block;
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  line-height: 1.4;
  color: #8B8375;
}

.brand--footer .brand__name { font-size: 19px; }

/* ---------- 等宽版本标签 ---------- */
.header-tags {
  display: flex;
  flex: none;
  gap: 8px;
}

.tag-mono {
  display: inline-block;
  padding: 6px 9px;
  border: 1px solid rgba(201, 162, 39, 0.4);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1;
  color: var(--gold-300);
  white-space: nowrap;
}

/* ---------- 移动导航按钮 ---------- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  flex: none;
  min-height: 44px;
  padding: 0 14px;
  background: transparent;
  border: 1px solid rgba(201, 162, 39, 0.45);
  color: var(--gold-300);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease;
}

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

.nav-toggle__label { display: inline-block; }

.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 16px;
}

.nav-toggle__bars i {
  display: block;
  height: 1px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.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 {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0 var(--gutter);
  border-top: 1px solid rgba(250, 247, 242, 0.08);
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  padding: 15px 26px 15px 0;
  margin-right: 8px;
  color: #C6BFB0;
  font-size: 15px;
  letter-spacing: 0.05em;
  line-height: 1.5;
  text-decoration: none;
  transition: color 0.18s ease;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 8px;
  width: 0;
  height: 1px;
  background: var(--gold-500);
  transition: width 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.site-nav__link:hover::after,
.site-nav__link:focus-visible::after { width: calc(100% - 26px); }

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

.site-nav__link[aria-current="page"]::after { width: calc(100% - 26px); }

.site-nav__num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #6E6A63;
  transition: color 0.18s ease;
}

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

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

/* ==========================================================================
   站点页脚
   ========================================================================== */

.site-footer {
  margin-top: clamp(48px, 7vw, 96px);
  background: var(--ink-900);
  color: #B7B0A2;
  border-top: 1px solid rgba(201, 162, 39, 0.32);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.5fr);
  gap: 44px 32px;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 64px var(--gutter) 52px;
}

.footer-brand { min-width: 0; }

.footer-summary {
  margin-top: 20px;
  max-width: 32em;
  font-size: 14px;
  line-height: 1.8;
  color: #8B8375;
}

.footer-mono {
  display: flex;
  gap: 8px;
  margin-top: 22px;
}

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

.footer-col__title {
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(201, 162, 39, 0.22);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.4;
  color: var(--gold-500);
}

.footer-col__list li + li { margin-top: 11px; }

.footer-col__list a {
  display: inline-block;
  font-size: 14.5px;
  line-height: 1.6;
  color: #B7B0A2;
  text-decoration: none;
  transition: color 0.18s ease, padding-left 0.18s ease;
}

.footer-col__list a:hover,
.footer-col__list a:focus-visible {
  color: var(--gold-300);
  padding-left: 6px;
}

.footer-contact { min-width: 0; }

.footer-contact__list li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(250, 247, 242, 0.06);
  font-size: 13.5px;
  line-height: 1.7;
}

.footer-contact__key {
  padding-top: 2px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: #6E6A63;
}

.footer-contact__val {
  color: #CFC8BA;
  word-break: break-word;
}

.footer-contact__note {
  margin-top: 16px;
  font-size: 12.5px;
  line-height: 1.75;
  color: #7C7568;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: baseline;
  justify-content: space-between;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 22px var(--gutter) 28px;
  border-top: 1px solid rgba(250, 247, 242, 0.07);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.7;
  color: #6E6A63;
}

.footer-bottom__copy,
.footer-bottom__legal { margin: 0; }

/* ==========================================================================
   滚动显现协议
   ========================================================================== */

[data-reveal].reveal-armed {
  opacity: 0;
  transform: translateY(16px);
}

[data-reveal].reveal-armed.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   响应式
   ========================================================================== */

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

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

  .header-tags { display: none; }

  .header-main {
    padding: 16px var(--gutter);
  }

  .site-nav {
    max-height: 0;
    overflow: hidden;
    border-top-color: transparent;
    transition: max-height 0.22s ease, border-color 0.22s ease;
  }

  .site-nav[data-open] {
    max-height: 560px;
    padding-bottom: 12px;
    border-top-color: rgba(250, 247, 242, 0.08);
  }

  .site-nav__list { flex-direction: column; }

  .site-nav__link {
    display: flex;
    width: 100%;
    padding: 14px 0;
    margin-right: 0;
    border-bottom: 1px solid rgba(250, 247, 242, 0.07);
    font-size: 15px;
  }

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

  .site-nav__link[aria-current="page"] {
    color: var(--gold-300);
    padding-left: 10px;
    border-left: 1px solid var(--gold-500);
  }
}

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

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 24px;
    padding-top: 48px;
    padding-bottom: 40px;
  }
  .footer-contact { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }

  .status-bar {
    gap: 10px;
    font-size: 10px;
    letter-spacing: 0.06em;
  }
  .status-bar__divider { display: none; }

  .brand { gap: 11px; }
  .brand__mark { width: 36px; height: 36px; font-size: 18px; }
  .brand__sub { font-size: 9.5px; letter-spacing: 0.07em; }

  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 460px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-contact { grid-column: 1; }
}

/* ==========================================================================
   动效偏好
   ========================================================================== */

@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;
  }

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

  .scroll-progress { display: none; }
}
