/* ==========================================================================
   /assets/site.css — 四喜娱乐会馆 共享外壳
   ========================================================================== */

:root {
  --cinnabar: #B7282E;
  --lacquer: #7C1A1F;
  --gold: #C9A227;
  --gold-light: #E8CE86;
  --ink: #1F3A3D;
  --paper: #F7F1E6;
  --paper-2: #EADFCF;
  --jade: #4E7A6B;
  --ochre: #A9642E;

  --wrap: 1180px;
  --gutter: 24px;
  --rail: 232px;

  --font-display: "霞鹜文楷", "LXGW WenKai", "思源宋体", "Source Han Serif SC", "Songti SC", STSong, serif;
  --font-body: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --line-gold: 1px solid rgba(201, 162, 39, 0.42);
  --line-ink: 1px solid rgba(31, 58, 61, 0.22);

  --header-top-h: 74px;
  --header-bottom-h: 56px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.85;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }

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

/* ---------- 排版 ---------- */
.site-shell p,
.content-container p {
  max-width: 38em;
  margin-bottom: 1.2em;
}
.site-shell p:last-child,
.content-container p:last-child { margin-bottom: 0; }

h1, .h-display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 1.25;
  letter-spacing: 0.08em;
  color: var(--ink);
}

h2, .h-section {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.6vw, 2.15rem);
  line-height: 1.35;
  letter-spacing: 0.06em;
}

h3, .h-sub {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.06rem;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ochre);
  text-transform: uppercase;
  display: inline-block;
}

/* ---------- 布局容器 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-shell { overflow-x: hidden; }

.content-container {
  max-width: 62ch;
  padding-block: clamp(48px, 7vw, 96px);
}

.content-container > * + * { margin-top: 1.2em; }

.section-head {
  display: grid;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: var(--line-gold);
  margin-bottom: 32px;
}
.section-head .mono-label { color: var(--gold); }

.grid-auto {
  display: grid;
  gap: clamp(18px, 2.4vw, 30px);
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
}

.aside-note {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.9;
  letter-spacing: 0.03em;
  color: var(--ink);
  background: var(--paper-2);
  border-left: 3px solid var(--gold);
  padding: 16px 18px;
  max-width: 34ch;
}
.aside-note strong { color: var(--cinnabar); font-weight: 600; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease), transform 160ms var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  color: #FFF9EC;
  background: linear-gradient(102deg, var(--cinnabar) 0%, #9E2228 52%, var(--lacquer) 100%);
  box-shadow: inset 0 0 0 1px rgba(232, 206, 134, 0.55);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: linear-gradient(102deg, #C83037 0%, #AC262C 52%, #8B1E23 100%);
  box-shadow: inset 0 0 0 1px var(--gold-light);
}

.btn-ghost {
  color: var(--ink);
  border-color: rgba(31, 58, 61, 0.4);
  background: transparent;
}
.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--gold);
  color: var(--lacquer);
}

/* ---------- 面包屑 ---------- */
.breadcrumb { padding-block: 14px; }
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ochre);
}
.breadcrumb-list li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(169, 100, 46, 0.55);
}
.breadcrumb-list a { border-bottom: 1px solid transparent; transition: border-color 180ms var(--ease); }
.breadcrumb-list a:hover { border-bottom-color: var(--gold); }

/* ---------- 卡片 ---------- */
.card {
  position: relative;
  background: #FBF7EF;
  border: var(--line-ink);
  padding: 26px 24px 28px;
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease);
}
.card:hover,
.card:focus-within {
  border-color: var(--gold);
  background: #FFFCF5;
}
.card .mono-label { color: var(--gold); margin-bottom: 12px; }
.card-title { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: 0.05em; margin-bottom: 10px; }
.card-text { font-size: 0.96rem; line-height: 1.8; color: rgba(31, 58, 61, 0.86); }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--lacquer);
  border-bottom: 1px solid transparent;
  transition: border-color 180ms var(--ease);
}
.card-link::after { content: "→"; transition: transform 180ms var(--ease); }
.card-link:hover { border-bottom-color: var(--gold); }
.card-link:hover::after { transform: translateX(4px); }

/* ---------- 状态标记 ---------- */
.state-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid currentColor;
}
.state-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.state-pill[data-state="active"] { color: var(--jade); background: rgba(78, 122, 107, 0.09); }
.state-pill[data-state="soon"] { color: var(--ochre); background: rgba(169, 100, 46, 0.09); }
.state-pill[data-state="closed"] { color: var(--lacquer); background: rgba(124, 26, 31, 0.07); }

/* ---------- 图片容器基础 ---------- */
.img-frame {
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
  border: var(--line-gold);
  aspect-ratio: 4 / 3;
}
.img-frame--wide { aspect-ratio: 16 / 9; }
.img-frame--tall { aspect-ratio: 3 / 4; }
.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.img-frame::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(201, 162, 39, 0.3);
  pointer-events: none;
}

/* ==========================================================================
   页头 —— 双层门楣
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--paper);
  border-bottom: var(--line-gold);
  box-shadow: 0 1px 0 rgba(31, 58, 61, 0.06);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 99;
  padding: 10px 18px;
  background: var(--lacquer);
  color: #FFF9EC;
  font-size: 14px;
  border: 1px solid var(--gold);
  transition: top 160ms var(--ease);
}
.skip-link:focus { top: 10px; }

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: width 90ms linear;
}

.header-top {
  background: var(--paper);
  transition: padding 180ms var(--ease);
}
.header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-top-h);
  padding-block: 12px;
}

.brand-lockup {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  min-width: 0;
}
.brand-name {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.3vw, 1.7rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink);
  border-bottom: 2px solid var(--cinnabar);
  padding-bottom: 3px;
  transition: color 180ms var(--ease), border-color 180ms var(--ease);
}
.brand-lockup:hover .brand-name { color: var(--cinnabar); border-bottom-color: var(--gold); }
.brand-sub {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ochre);
}

.header-utility {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}
.utility-note {
  font-size: 13px;
  color: rgba(31, 58, 61, 0.62);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.member-entry {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #FFF9EC;
  background: linear-gradient(104deg, var(--cinnabar), var(--lacquer));
  box-shadow: inset 0 0 0 1px rgba(232, 206, 134, 0.6);
  transition: box-shadow 160ms var(--ease), background 160ms var(--ease);
}
.member-entry-index { font-family: var(--font-mono); font-size: 11.5px; color: var(--gold-light); }
.member-entry:hover { box-shadow: inset 0 0 0 1px var(--gold-light), 0 0 0 1px rgba(201, 162, 39, 0.5); }

.header-bottom {
  background: var(--paper);
  border-top: var(--line-gold);
  transition: max-height 200ms var(--ease), opacity 180ms var(--ease);
  overflow: hidden;
  max-height: 120px;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 4px;
}

.nav-item { position: relative; }

.nav-link {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 15px 16px 13px;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: rgba(31, 58, 61, 0.82);
  border-bottom: 2px solid transparent;
  transition: color 160ms var(--ease), border-color 160ms var(--ease), background-color 160ms var(--ease);
}
.nav-link:hover {
  color: var(--lacquer);
  background: rgba(201, 162, 39, 0.1);
  border-bottom-color: var(--gold-light);
}
.nav-index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ochre);
  transition: color 160ms var(--ease);
}
.nav-link:hover .nav-index { color: var(--gold); }

.nav-link[aria-current="page"] {
  color: var(--lacquer);
  border-bottom-color: var(--cinnabar);
  font-weight: 600;
}
.nav-link[aria-current="page"] .nav-index {
  color: var(--gold);
  background: rgba(201, 162, 39, 0.18);
  padding: 1px 4px;
}

/* 滚动后的压缩态 */
.site-header[data-compact] .header-top-inner { min-height: 58px; padding-block: 6px; }
.site-header[data-compact] .brand-sub,
.site-header[data-compact] .utility-note { display: none; }
.site-header[data-compact] .header-bottom { max-height: 0; opacity: 0; border-top-color: transparent; }
.site-header[data-compact] .brand-name { font-size: 1.2rem; }

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid rgba(31, 58, 61, 0.35);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin-left: 12px;
  transition: border-color 160ms var(--ease), color 160ms var(--ease);
}
.nav-toggle:hover { border-color: var(--gold); color: var(--lacquer); }
.nav-toggle-bars { display: grid; gap: 3px; width: 16px; }
.nav-toggle-bars span {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform 160ms var(--ease), opacity 160ms var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(4.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(-4.5px) rotate(-45deg); }
.nav-toggle-text { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; }

/* ==========================================================================
   页脚 —— 后厅目录墙
   ========================================================================== */
.site-footer {
  margin-top: clamp(72px, 9vw, 128px);
  background: var(--lacquer);
  color: #F1E4CF;
  border-top: 3px solid var(--gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(24px, 3.4vw, 52px);
  padding-block: clamp(48px, 6vw, 76px) clamp(32px, 4vw, 48px);
}

.footer-brand { max-width: 32ch; }

.footer-seal {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  box-shadow: inset 0 0 0 4px var(--lacquer), inset 0 0 0 5px rgba(201, 162, 39, 0.55);
  margin-bottom: 18px;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.16em;
  color: var(--gold-light);
  margin-bottom: 12px;
}
.footer-brand-note {
  font-size: 0.94rem;
  line-height: 1.9;
  color: rgba(241, 228, 207, 0.78);
  max-width: 26em;
}
.footer-closing {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--gold);
  font-weight: 500;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(201, 162, 39, 0.35);
  margin-bottom: 14px;
}

.footer-links { display: grid; gap: 9px; }
.footer-links a {
  display: inline-block;
  font-size: 0.95rem;
  color: rgba(241, 228, 207, 0.86);
  border-bottom: 1px solid transparent;
  transition: color 160ms var(--ease), border-color 180ms var(--ease);
}
.footer-links a:hover {
  color: #FFFFFF;
  border-bottom-color: var(--gold);
}
.footer-path { margin-top: 16px; color: rgba(232, 206, 134, 0.62); }

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 34px;
  padding-block: 24px;
  border-top: 1px solid rgba(201, 162, 39, 0.35);
  border-bottom: 1px solid rgba(201, 162, 39, 0.35);
}
.contact-line {
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-size: 0.94rem;
}
.contact-line--wide { flex: 1 1 100%; }
.contact-line .mono-label { color: var(--gold); }
.contact-line a {
  color: #F1E4CF;
  border-bottom: 1px solid rgba(201, 162, 39, 0.4);
  transition: border-color 160ms var(--ease), color 160ms var(--ease);
}
.contact-line a:hover { color: #FFFFFF; border-bottom-color: var(--gold-light); }
.contact-note {
  flex: 1 1 100%;
  font-size: 0.86rem;
  line-height: 1.85;
  color: rgba(241, 228, 207, 0.62);
  max-width: 62ch;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
  padding-block: 18px 34px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(241, 228, 207, 0.6);
}
.legal-top {
  margin-left: auto;
  color: var(--gold-light);
  border-bottom: 1px solid transparent;
  transition: border-color 160ms var(--ease);
}
.legal-top:hover { border-bottom-color: var(--gold); }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; max-width: 46ch; }
  .utility-note { display: none; }
}

@media (max-width: 860px) {
  :root { --gutter: 18px; }

  .nav-toggle { display: inline-flex; }

  .header-bottom {
    max-height: 0;
    opacity: 0;
    border-top-color: transparent;
  }
  .main-nav[data-open],
  .header-bottom:has(.main-nav[data-open]) {
    max-height: 640px;
    opacity: 1;
  }
  .header-bottom:has(.main-nav[data-open]) { border-top-color: var(--gold); }

  .nav-list {
    flex-direction: column;
    gap: 0;
    padding-block: 6px 14px;
  }
  .nav-item { border-bottom: 1px solid rgba(201, 162, 39, 0.24); }
  .nav-item:last-child { border-bottom: 0; }
  .nav-link {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 14px 4px;
    font-size: 16px;
  }
  .nav-link[aria-current="page"] { background: rgba(201, 162, 39, 0.1); }

  .site-header[data-compact] .header-bottom { max-height: 0; }
  .site-header[data-compact] .header-bottom:has(.main-nav[data-open]) { max-height: 640px; opacity: 1; }

  .header-top-inner { flex-wrap: wrap; }
  .brand-sub { display: none; }
  .member-entry { padding: 8px 13px; font-size: 13px; }

  .content-container { padding-block: 36px 64px; }
  .aside-note { max-width: none; }

  .footer-contact { gap: 10px 22px; }
  .legal-top { margin-left: 0; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .brand-name { font-size: 1.22rem; letter-spacing: 0.1em; }
  .member-entry-text { letter-spacing: 0.02em; }
  .member-entry-index { display: none; }
  .header-utility { gap: 10px; }
  .contact-line--wide { display: grid; gap: 4px; }
  .footer-legal { flex-direction: column; align-items: flex-start; }
  .img-frame { aspect-ratio: 3 / 2; }
}

/* ---------- 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- 显现（页面阶段可选用 data-reveal） ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 420ms var(--ease), transform 420ms var(--ease);
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
}
