/* ==========================================================================
   澳门威尼娱乐指南 · 共享站点样式 /assets/site.css
   深墨绿 + 奶油底 + 暖金 + 霓虹青 · 夜航仪表盘 / 复古出版
   ========================================================================== */

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

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

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

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

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

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

a { color: inherit; }

address { font-style: normal; }

/* ---------- 2. Tokens ---------- */
:root {
  --forest: #0E2A23;
  --forest-2: #17453A;
  --cream: #F5EFE2;
  --sand: #E7DCC4;
  --gold: #D9A93C;
  --ink: #1A1510;
  --cyan: #38E0CC;
  --orange: #D2522B;
  --mist: #C9D6CF;

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

  --rail-w: 248px;
  --edge: 2px;
  --shadow-hard: 6px 6px 0 var(--ink);
  --shadow-hard-sm: 4px 4px 0 var(--ink);
  --shadow-dark: 6px 6px 0 rgba(56, 224, 204, 0.35);

  --ease: cubic-bezier(.2, .6, .3, 1);
}

/* ---------- 3. Base ---------- */
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h1 { font-size: clamp(28px, 5vw, 48px); }
h2 { font-size: clamp(22px, 3.4vw, 36px); }
h3 { font-size: clamp(18px, 2.4px + 1.4vw, 24px); }
h4 { font-size: 18px; }

p { text-wrap: pretty; }

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

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

/* ---------- 4. Header / 侧边轨道 ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--forest);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: var(--edge) solid var(--ink);
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--forest);
  color: var(--cream);
  border-bottom: 3px solid var(--gold);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
}

.rail-deco { display: none; }
.rail-progress { display: none; }

/* 品牌 */
.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  text-decoration: none;
  color: var(--cream);
}

.brand__mark {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--cyan);
  text-transform: uppercase;
  line-height: 1.2;
}

.brand__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--cream);
  transition: color .12s var(--ease);
}

.brand__tagline {
  display: none;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--mist);
}

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

/* 汉堡按钮 */
.nav-toggle {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: var(--edge) solid var(--gold);
  color: var(--cream);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  transition: border-color .12s var(--ease), color .12s var(--ease);
}

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

.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 18px;
  height: 12px;
}

.nav-toggle__bars i {
  display: block;
  height: 2px;
  background: var(--gold);
  transition: transform .16s var(--ease), opacity .16s var(--ease), background .16s var(--ease);
}

.nav-toggle[aria-expanded="true"] { border-color: var(--cyan); color: var(--cyan); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i { background: var(--cyan); }
.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); }

/* 抽屉导航 */
.nav-rail {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  max-height: 78vh;
  overflow-y: auto;
  padding: 6px 16px 22px;
  background: var(--forest-2);
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 18px 32px rgba(14, 42, 35, 0.45);
}

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

.nav-rail__list {
  display: flex;
  flex-direction: column;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 4px 12px 14px;
  border-bottom: 1px solid rgba(201, 214, 207, 0.18);
  color: var(--cream);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: color .12s var(--ease), border-color .12s var(--ease), transform .12s var(--ease);
}

.nav-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 0;
  background: var(--cyan);
  transform: translateY(-50%);
  transition: height .14s var(--ease), background .14s var(--ease);
}

.nav-link__idx {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.nav-link:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
  transform: translateX(4px);
}

.nav-link:hover::before { height: 60%; }

.nav-link[aria-current="page"] {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.nav-link[aria-current="page"]::before {
  height: 70%;
  background: var(--gold);
}

.nav-link[aria-current="page"] .nav-link__idx { color: var(--cyan); }

.header-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

/* ---------- 5. 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border: var(--edge) solid var(--gold);
  background: transparent;
  color: var(--cream);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-align: center;
  transition: border-color .12s var(--ease), color .12s var(--ease), background-color .12s var(--ease), transform .12s var(--ease);
}

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

.btn--ghost {
  color: var(--cream);
  border-color: rgba(217, 169, 60, 0.55);
}

.btn:hover {
  border-color: var(--cyan);
  transform: translateX(4px);
}

.btn--gold:hover {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--forest);
}

.btn--ghost:hover { color: var(--cyan); }

/* ---------- 6. 布局容器 ---------- */
.container {
  width: min(1180px, calc(100% - 36px));
  margin-inline: auto;
}

.section { padding-block: 48px; }

.section--tight { padding-block: 32px; }

.section--dark {
  background: var(--forest);
  color: var(--cream);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--cream); }

.section--sand { background: var(--sand); }

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 26px;
  padding-bottom: 14px;
  border-bottom: var(--edge) solid var(--ink);
}

.section--dark .section__head { border-bottom-color: var(--gold); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--orange);
  text-transform: uppercase;
  line-height: 1.4;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: var(--edge);
  background: var(--gold);
  flex: none;
}

.section--dark .eyebrow { color: var(--cyan); }

.lede {
  max-width: 40em;
  font-size: 17px;
  line-height: 1.75;
  color: #2f261d;
}

.section--dark .lede { color: var(--mist); }

.prose { max-width: 40em; }
.prose > * + * { margin-top: 14px; }
.prose h2 { margin-top: 32px; }
.prose h3 { margin-top: 24px; }
.prose ul { list-style: square; padding-left: 1.2em; }
.prose li + li { margin-top: 6px; }

.rule {
  height: var(--edge);
  border: 0;
  background: var(--ink);
  opacity: 0.16;
  margin-block: 24px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* ---------- 7. 网格 ---------- */
.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

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

@media (min-width: 1000px) {
  .grid { gap: 26px; }
  .grid--7-4 { grid-template-columns: 7fr 4fr; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- 8. 卡片 ---------- */
.card {
  position: relative;
  padding: 22px;
  background: var(--cream);
  border: var(--edge) solid var(--ink);
  box-shadow: var(--shadow-hard);
}

.card--sub {
  background: var(--sand);
  box-shadow: var(--shadow-hard-sm);
}

.card--offset { margin-top: 0; }

@media (min-width: 760px) {
  .card--offset { margin-top: 22px; }
}

.card--dark {
  background: var(--forest-2);
  border-color: var(--forest-2);
  color: var(--cream);
  box-shadow: var(--shadow-dark);
}

.card--dark h2,
.card--dark h3,
.card--dark h4 { color: var(--cream); }

.card__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.card__meta {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #6a5c4b;
}

.card--dark .card__meta { color: var(--mist); }

.panel {
  padding: 18px;
  background: var(--forest);
  border: var(--edge) solid var(--ink);
  color: var(--cream);
}

.panel h3 { color: var(--cream); }

/* ---------- 9. 标签与状态 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--gold);
  background: rgba(217, 169, 60, 0.12);
  color: #7a5c14;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  line-height: 1.6;
  white-space: nowrap;
}

.tag--gold { border-color: var(--gold); color: #7a5c14; }
.tag--cyan { border-color: var(--forest-2); color: var(--forest-2); background: rgba(56, 224, 204, 0.16); }
.tag--orange { border-color: var(--orange); color: var(--orange); background: rgba(210, 82, 43, 0.1); }

.card--dark .tag,
.section--dark .tag { color: var(--cream); }

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(56, 224, 204, 0.22);
  flex: none;
}

.status-dot--warn {
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(210, 82, 43, 0.2);
}

/* ---------- 10. 数值指标 ---------- */
.metric-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  background: var(--forest);
  border: var(--edge) solid var(--ink);
  color: var(--cream);
}

.metric__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 30px;
  line-height: 1.05;
  color: var(--cyan);
}

.metric__label {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--mist);
  line-height: 1.5;
}

/* ---------- 11. 图片容器 ---------- */
.media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: var(--edge) solid var(--ink);
  background-color: var(--forest-2);
  background-image:
    linear-gradient(rgba(56, 224, 204, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 224, 204, 0.10) 1px, transparent 1px),
    radial-gradient(120% 90% at 18% 8%, rgba(217, 169, 60, 0.30), transparent 62%);
  background-size: 28px 28px, 28px 28px, 100% 100%;
  box-shadow: var(--shadow-hard-sm);
}

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

.media--wide { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 4 / 5; }
.media--square { aspect-ratio: 1 / 1; }

.media__frame {
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(217, 169, 60, 0.55);
  pointer-events: none;
}

.media__caption {
  display: block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  opacity: 0.75;
}

/* ---------- 12. 面包屑与提示块 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: #6a5c4b;
}

.crumbs a {
  color: var(--forest-2);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 1px;
  transition: color .12s var(--ease), border-color .12s var(--ease);
}

.crumbs a:hover { color: var(--cyan); border-bottom-color: var(--cyan); }

.crumbs__sep { color: var(--gold); }

.callout {
  padding: 16px 18px;
  border: var(--edge) solid var(--ink);
  border-left-width: 8px;
  border-left-color: var(--gold);
  background: var(--sand);
}

.callout__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 6px;
}

/* ---------- 13. 折叠条目 ---------- */
.faq {
  border: var(--edge) solid var(--ink);
  background: var(--cream);
  box-shadow: var(--shadow-hard-sm);
}

.faq + .faq { margin-top: 14px; }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
  transition: background-color .12s var(--ease), color .12s var(--ease);
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "＋";
  font-family: var(--font-mono);
  color: var(--gold);
  flex: none;
}

.faq summary:hover { background: rgba(217, 169, 60, 0.14); }

.faq[open] summary {
  background: var(--sand);
  border-bottom: var(--edge) solid var(--ink);
}

.faq[open] summary::after { content: "－"; color: var(--forest-2); }

.faq__body {
  padding: 14px 16px 18px;
  font-size: 15px;
}

.faq__body > * + * { margin-top: 10px; }

/* ---------- 14. 页脚 ---------- */
.site-footer {
  margin-top: 64px;
  background: var(--forest);
  color: var(--cream);
  border-top: 3px solid var(--gold);
}

.footer__inner {
  width: min(1180px, calc(100% - 36px));
  margin-inline: auto;
  padding: 44px 0 30px;
  display: grid;
  gap: 30px;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .footer__inner { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1080px) {
  .footer__inner {
    grid-template-columns: 1.5fr 0.85fr 0.85fr 0.85fr 1.35fr;
    gap: 26px;
  }
}

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

.footer__mark {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  color: var(--cyan);
  text-transform: uppercase;
}

.footer__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.2;
  color: var(--cream);
}

.footer__tagline {
  font-size: 13px;
  line-height: 1.6;
  color: var(--mist);
}

.footer__closing {
  margin-top: 4px;
  padding-left: 10px;
  border-left: var(--edge) solid var(--gold);
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(201, 214, 207, 0.85);
}

.footer__group h3 {
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(217, 169, 60, 0.35);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer__list a {
  display: inline-block;
  font-size: 14px;
  color: var(--mist);
  text-decoration: none;
  transition: color .12s var(--ease), transform .12s var(--ease);
}

.footer__list a:hover {
  color: var(--cyan);
  transform: translateX(4px);
}

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

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--mist);
}

.footer__hours {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--cyan);
}

.footer__note {
  margin-top: 4px;
  padding-left: 10px;
  border-left: var(--edge) solid var(--gold);
  font-size: 12.5px;
  line-height: 1.65;
  color: rgba(201, 214, 207, 0.8);
}

.footer__legal {
  width: min(1180px, calc(100% - 36px));
  margin-inline: auto;
  padding: 16px 0 30px;
  border-top: 1px solid rgba(201, 214, 207, 0.2);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: rgba(201, 214, 207, 0.75);
}

/* ---------- 15. 桌面端：左侧固定轨道 ---------- */
@media (min-width: 1024px) {
  body { padding-left: var(--rail-w); }

  .site-header {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--rail-w);
    height: 100vh;
    border-bottom: 0;
    border-right: 3px solid var(--gold);
    overflow: hidden;
  }

  .header__inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    height: 100%;
    padding: 30px 22px 26px 28px;
    overflow-y: auto;
  }

  .rail-deco {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: repeating-linear-gradient(to bottom, var(--gold) 0 2px, transparent 2px 14px);
    opacity: 0.5;
    pointer-events: none;
  }

  .rail-progress {
    display: block;
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: rgba(56, 224, 204, 0.14);
    pointer-events: none;
  }

  .rail-progress span {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--cyan);
    transform: scaleY(0);
    transform-origin: top center;
  }

  .brand__tagline { display: block; }

  .nav-toggle { display: none; }

  .nav-rail {
    display: flex;
    flex-direction: column;
    position: static;
    flex: 1;
    max-height: none;
    overflow: visible;
    padding: 0;
    background: none;
    border-bottom: 0;
    box-shadow: none;
  }

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

  .nav-rail__list { flex: none; }

  .nav-link { font-size: 14.5px; padding-block: 11px; }

  .header-actions {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(201, 214, 207, 0.2);
  }

  .skip-link:focus { left: 16px; top: 16px; }
}

/* ---------- 16. 动效偏好 ---------- */
@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;
  }

  .btn:hover,
  .nav-link:hover,
  .footer__list a:hover { transform: none; }
}
