/* ==========================================================================
   澳门主站 · 共享外壳样式 /assets/site.css
   目录型内容地图 · 青花蓝底色域 + 霓虹玫红坐标 + 招牌暖黄数字
   ========================================================================== */

/* ---------- 1 变量 ---------- */
:root {
  --blue-ink: #14456E;
  --blue-deep: #0F3354;
  --blue-sub: #2F6E9E;
  --blue-pale: #A8C6DA;
  --indigo: #241E3C;
  --green-deep: #0F3B36;
  --neon: #E23E7A;
  --neon-deep: #C22C66;
  --yellow: #F2B21B;
  --paper: #F4F1EA;
  --ink: #14161A;
  --warn: #6E1E38;

  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --shell-max: 1240px;
  --shell-pad: 32px;
  --gut: 32px;
  --radius: 2px;

  --line-soft: 1px solid rgba(168, 198, 218, 0.55);
  --line-dark: 1px solid rgba(168, 198, 218, 0.22);
  --shadow-soft: 0 1px 0 rgba(20, 69, 110, 0.06), 0 18px 40px -32px rgba(20, 69, 110, 0.65);
  --ease: 240ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

@media (max-width: 900px) {
  :root { --shell-pad: 20px; --gut: 20px; }
}
@media (max-width: 560px) {
  :root { --shell-pad: 16px; --gut: 16px; }
}

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

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

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

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

a {
  color: inherit;
  text-decoration: none;
}

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

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

table {
  border-collapse: collapse;
}

/* ---------- 3 基础排版 ---------- */
body {
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.85;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.12rem, 2vw, 1.4rem); }

p { line-height: 1.85; }

a {
  transition: color var(--ease), border-color var(--ease), background-color var(--ease);
}

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

.site-header :focus-visible,
.site-footer :focus-visible,
.panel--blue :focus-visible,
.panel--green :focus-visible,
.panel--indigo :focus-visible {
  outline-color: var(--yellow);
}

::selection {
  background: var(--neon);
  color: #fff;
}

/* ---------- 4 通用容器 / 网格 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--shell-pad);
}

.shell--row {
  display: flex;
  align-items: center;
  gap: 24px;
}

.shell--split {
  justify-content: space-between;
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gut);
}

.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; }
.col-12 { grid-column: span 12; }

@media (max-width: 900px) {
  .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9 { grid-column: span 12; }
}

/* ---------- 5 文字 / 索引原子 ---------- */
.display {
  font-family: var(--font-mono);
  font-size: clamp(2.4rem, 7vw, 6rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

.num,
[data-count-to] {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.coord {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--blue-sub);
}

.coord::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--blue-pale);
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 1px solid var(--blue-pale);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--blue-sub);
  white-space: nowrap;
}

.tag-chip--neon {
  border-color: var(--neon);
  color: var(--neon);
}

.tag-chip--yellow {
  border-color: rgba(242, 178, 27, 0.7);
  color: var(--yellow);
}

.prose {
  color: var(--ink);
}

.prose p {
  max-width: 38em;
  margin-block: 0 1.5em;
}

.prose p:last-child { margin-bottom: 0; }

.prose--light,
.prose--light p {
  color: rgba(244, 241, 234, 0.88);
}

.rule {
  height: 1px;
  border: 0;
  background: var(--blue-pale);
  opacity: 0.7;
}

/* ---------- 6 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid var(--blue-ink);
  border-radius: var(--radius);
  background: transparent;
  color: var(--blue-ink);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.btn:hover {
  background: var(--blue-ink);
  color: var(--paper);
}

.btn--solid {
  background: var(--blue-ink);
  border-color: var(--blue-ink);
  color: var(--paper);
}

.btn--solid:hover {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
  color: #fff;
}

.btn--neon {
  background: var(--neon);
  border-color: var(--neon);
  color: #fff;
}

.btn--neon:hover {
  background: var(--neon-deep);
  border-color: var(--neon-deep);
  color: #fff;
}

.btn--ghost-light {
  background: transparent;
  border-color: rgba(168, 198, 218, 0.6);
  color: var(--paper);
}

.btn--ghost-light:hover {
  background: rgba(168, 198, 218, 0.16);
  border-color: var(--yellow);
  color: var(--yellow);
}

/* ---------- 7 面包屑 ---------- */
.crumbs { padding-block: 18px; }

.crumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--blue-sub);
}

.crumbs__item { display: inline-flex; align-items: center; gap: 8px; }
.crumbs__link { color: var(--blue-sub); }
.crumbs__link:hover { color: var(--neon); }
.crumbs__sep { color: var(--blue-pale); }
.crumbs__item[aria-current="page"] { color: var(--ink); }

/* ---------- 8 色域面板 ---------- */
.panel {
  padding: var(--gut);
  border: var(--line-soft);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.panel--paper { background: var(--paper); }
.panel--outline { background: transparent; box-shadow: none; }

.panel--blue {
  background: var(--blue-ink);
  border-color: transparent;
  color: var(--paper);
}

.panel--green {
  background: var(--green-deep);
  border-color: transparent;
  color: var(--paper);
}

.panel--indigo {
  background: var(--indigo);
  border-color: transparent;
  color: var(--paper);
}

.panel--blue h2, .panel--blue h3, .panel--blue h4,
.panel--green h2, .panel--green h3, .panel--green h4,
.panel--indigo h2, .panel--indigo h3, .panel--indigo h4 {
  color: #fff;
}

.panel--blue a, .panel--green a, .panel--indigo a { color: var(--yellow); }
.panel--blue a:hover, .panel--green a:hover, .panel--indigo a:hover { color: var(--neon); }

.panel--blue .coord, .panel--green .coord, .panel--indigo .coord { color: var(--blue-pale); }
.panel--blue .coord::before, .panel--green .coord::before, .panel--indigo .coord::before {
  background: rgba(168, 198, 218, 0.55);
}

/* ---------- 9 图片容器基础规则 ---------- */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: var(--line-soft);
  border-radius: var(--radius);
  background-image:
    linear-gradient(140deg, rgba(20, 69, 110, 0.94) 0%, rgba(15, 59, 54, 0.88) 52%, rgba(36, 30, 60, 0.92) 100%);
  background-color: var(--blue-deep);
  box-shadow: var(--shadow-soft);
}

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

.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--offset { transform: translateY(-18px); }

.media-frame--grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image: radial-gradient(rgba(244, 241, 234, 0.6) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
}

.media-frame__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(244, 241, 234, 0.92);
  background-image: linear-gradient(to top, rgba(20, 22, 26, 0.78), rgba(20, 22, 26, 0));
}

/* ==========================================================================
   10 页头
   ========================================================================== */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  transform: translateY(-220%);
  transition: transform var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--blue-ink);
  color: #fff;
  border-bottom: 1px solid rgba(168, 198, 218, 0.35);
}

.header-upper {
  background: var(--blue-ink);
  border-bottom: 1px solid rgba(168, 198, 218, 0.22);
}

.header-upper > .shell { min-height: 62px; }

.site-header.is-condensed .header-upper { display: none; }

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-block: 8px;
}

.brand-mark::before {
  content: "";
  width: 3px;
  height: 20px;
  background: var(--neon);
  flex: 0 0 auto;
}

.brand-mark__cn {
  font-weight: 900;
  font-size: 17px;
  letter-spacing: 0.18em;
  color: #fff;
  white-space: nowrap;
}

.brand-mark__sub {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--blue-pale);
  white-space: nowrap;
}

.upper-nav__list {
  display: flex;
  align-items: center;
  gap: 24px;
}

.upper-nav__item { display: inline-flex; }

.upper-nav__link {
  padding-block: 6px;
  border-bottom: 1px solid transparent;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: rgba(244, 241, 234, 0.78);
  white-space: nowrap;
}

.upper-nav__link:hover {
  color: var(--yellow);
  border-bottom-color: var(--yellow);
}

.upper-nav__link[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--neon);
}

.header-cta {
  padding: 9px 16px;
  border-radius: var(--radius);
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.header-cta:hover {
  background: var(--neon);
  color: #fff;
}

.header-lower {
  background: var(--blue-deep);
}

.header-lower > .shell { min-height: 54px; }

.index-nav { width: 100%; }

.index-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

.index-nav__item { flex: 0 0 auto; }

.index-nav__link {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 16px 14px 13px;
  border-bottom: 2px solid transparent;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: rgba(244, 241, 234, 0.72);
}

.index-nav__code {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--blue-pale);
}

.index-nav__label { white-space: nowrap; }

.index-nav__link:hover {
  background: rgba(47, 110, 158, 0.35);
  color: #fff;
}

.index-nav__link[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--neon);
}

.index-nav__link[aria-current="page"] .index-nav__code {
  color: var(--yellow);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 9px 12px;
  border: 1px solid rgba(168, 198, 218, 0.5);
  border-radius: var(--radius);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.nav-toggle:hover { border-color: var(--yellow); color: var(--yellow); }

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 10px;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1px;
  background: currentColor;
  transition: transform var(--ease);
}

.nav-toggle__bars::before { top: 1px; }
.nav-toggle__bars::after { bottom: 1px; }

.site-header[data-open="true"] .nav-toggle__bars::before { transform: translateY(4px) rotate(45deg); }
.site-header[data-open="true"] .nav-toggle__bars::after { transform: translateY(-4px) rotate(-45deg); }

.read-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 3px;
  background: rgba(168, 198, 218, 0.28);
  pointer-events: none;
}

.read-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: var(--neon);
  transition: width 120ms linear;
}

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .upper-nav { display: none; }
  .header-cta { display: none; }

  .index-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 6px 0 10px;
    max-height: min(72vh, 520px);
    overflow-y: auto;
    background: var(--blue-deep);
    border-top: 1px solid rgba(168, 198, 218, 0.2);
    border-bottom: 1px solid rgba(168, 198, 218, 0.35);
    box-shadow: 0 26px 42px -30px rgba(0, 0, 0, 0.85);
  }

  .site-header[data-open="true"] .index-nav { display: block; }

  .index-nav__list { display: block; }

  .index-nav__link {
    display: flex;
    width: 100%;
    padding: 13px calc(var(--shell-pad) + 6px);
    border-bottom: 1px solid rgba(168, 198, 218, 0.16);
    border-left: 3px solid transparent;
    font-size: 15px;
  }

  .index-nav__link:hover { background: rgba(47, 110, 158, 0.28); }

  .index-nav__link[aria-current="page"] {
    border-bottom-color: rgba(168, 198, 218, 0.16);
    border-left-color: var(--neon);
    background: rgba(47, 110, 158, 0.3);
  }
}

/* ==========================================================================
   11 页脚
   ========================================================================== */
.site-footer {
  margin-top: 0;
  background: var(--indigo);
  border-top: 3px solid var(--neon);
  color: rgba(244, 241, 234, 0.76);
  font-size: 15px;
  line-height: 1.75;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(200px, 0.9fr) minmax(0, 2fr);
  gap: 56px;
  padding-block: 56px 40px;
}

.footer-brand__mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.18em;
  color: #fff;
}

.footer-brand__dot {
  display: block;
  width: 20px;
  height: 3px;
  background: var(--neon);
  flex: 0 0 auto;
}

.footer-brand__line {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--blue-pale);
}

.footer-brand__note {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(244, 241, 234, 0.5);
}

.footer-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.footer-col__title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #fff;
}

.footer-col__code {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--yellow);
}

.footer-col__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col__item { display: block; }

.footer-col__link {
  display: inline-block;
  border-bottom: 1px solid transparent;
  color: rgba(244, 241, 234, 0.72);
}

.footer-col__link:hover {
  color: var(--yellow);
  border-bottom-color: rgba(242, 178, 27, 0.5);
}

.footer-contact {
  background: rgba(15, 59, 54, 0.34);
  border-top: 1px solid rgba(168, 198, 218, 0.18);
  border-bottom: 1px solid rgba(168, 198, 218, 0.18);
}

.footer-contact__inner { padding-block: 18px; }

.footer-contact__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: rgba(244, 241, 234, 0.85);
}

.footer-contact__key {
  color: var(--blue-pale);
  letter-spacing: 0.1em;
  font-size: 11.5px;
}

.footer-contact__value { color: #fff; }
.footer-contact__sep { color: rgba(168, 198, 218, 0.4); }

.footer-legal { background: rgba(0, 0, 0, 0.22); }

.footer-legal__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding-block: 16px 20px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: rgba(244, 241, 234, 0.58);
}

.footer-legal__links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.footer-legal__links a { color: rgba(244, 241, 234, 0.7); }
.footer-legal__links a:hover { color: var(--yellow); }
.footer-legal__icp { color: var(--blue-pale); }

@media (max-width: 980px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-block: 40px 32px;
  }
  .footer-map { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}

@media (max-width: 560px) {
  .footer-map { grid-template-columns: 1fr; }
  .footer-brand__mark { font-size: 16px; }
}

/* ==========================================================================
   12 显隐与动效
   ========================================================================== */
.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity 420ms ease, transform 420ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

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

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

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

  .read-progress__bar { transition: none; }
  .media-frame--offset { transform: none; }
}
