/* ============================================================
   豪发娱乐会馆 — 共享外壳样式 /assets/site.css
   ============================================================ */

:root {
  --ink: #120E0A;
  --ink-2: #211811;
  --gold: #D3A93B;
  --gold-bright: #F0D27E;
  --jade: #1E6B57;
  --jade-light: #72C4A3;
  --porcelain: #F7F1E6;
  --warm-gray: #BDB1A0;
  --cinnabar: #8C2F39;
  --glass: #3A342C;

  --line-gold: rgba(211, 169, 59, 0.22);
  --line-soft: rgba(247, 241, 230, 0.12);

  --shell-max: 1220px;
  --gutter: clamp(18px, 4vw, 48px);
  --radius: 10px;
  --radius-sm: 6px;

  --font-display: "Noto Serif SC", "Songti SC", STSong, "SimSun", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", Consolas, "Courier New", monospace;

  --shadow-1: 0 18px 44px rgba(0, 0, 0, 0.4);
  --ease: cubic-bezier(0.4, 0.1, 0.2, 1);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(211, 169, 59, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(211, 169, 59, 0.05) 1px, transparent 1px);
  background-size: 72px 72px, 72px 72px;
  background-attachment: fixed;
  color: var(--porcelain);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button { font: inherit; color: inherit; }

a {
  color: var(--jade-light);
  text-decoration: none;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
a:hover { color: var(--gold-bright); }

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

#main-content { scroll-margin-top: 120px; }

/* ---------- 中文排版 ---------- */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.6em;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--porcelain);
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5vw, 4.2rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.5rem); font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1rem; padding-inline-start: 1.25em; }

small { font-size: 0.82em; }

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.muted { color: var(--warm-gray); }
.gold { color: var(--gold-bright); }
.jade { color: var(--jade-light); }

/* ---------- 容器与节奏 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(44px, 7vw, 92px); }

.section__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}
.section__eyebrow::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(211, 169, 59, 0.55), transparent);
}

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 300;
  padding: 12px 22px;
  border-radius: 0 0 8px 8px;
  background: var(--gold-bright);
  color: #1a1206;
  font-size: 14px;
  font-weight: 700;
  transition: top 0.18s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 0;
  color: #1a1206;
}

/* ---------- 头部外壳 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(18, 14, 10, 0.9);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line-gold);
}

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--jade-light));
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

/* 通告带 */
.notice-band {
  background: linear-gradient(90deg, rgba(140, 47, 57, 0.92) 0%, rgba(48, 28, 24, 0.9) 46%, rgba(33, 24, 17, 0.92) 100%);
  border-bottom: 1px solid rgba(211, 169, 59, 0.26);
}

.notice-band__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 38px;
  padding-block: 5px;
  font-size: 13px;
}

.notice-band__tag {
  flex: 0 0 auto;
  padding: 2px 8px;
  border: 1px solid rgba(240, 210, 126, 0.5);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--gold-bright);
}

.notice-band__text {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: rgba(247, 241, 230, 0.82);
}

.notice-band__link {
  flex: 0 0 auto;
  padding-bottom: 1px;
  border-bottom: 1px solid rgba(211, 169, 59, 0.45);
  font-size: 12.5px;
  color: var(--gold);
}
.notice-band__link:hover { color: var(--gold-bright); border-color: var(--gold-bright); }

/* 铭牌导航区 */
.masthead__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding-block: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  color: var(--porcelain);
}
.brand:hover { color: var(--porcelain); }

.brand__plaque {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background: linear-gradient(150deg, var(--gold-bright), var(--gold));
  box-shadow: inset 0 0 0 1px rgba(18, 14, 10, 0.32);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  color: #1a1206;
}

.brand__text { display: block; }

.brand__name {
  display: block;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.24;
  color: var(--porcelain);
}

.brand__line {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  line-height: 1.5;
  color: var(--warm-gray);
}

.masthead__nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1 1 auto;
  justify-content: flex-end;
}

.primary-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav__link {
  position: relative;
  display: inline-block;
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(247, 241, 230, 0.78);
  white-space: nowrap;
}
.primary-nav__link::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 4px;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s var(--ease);
}
.primary-nav__link:hover {
  color: var(--gold-bright);
  background: rgba(211, 169, 59, 0.08);
}
.primary-nav__link:hover::after { transform: scaleX(1); }

.primary-nav__link[aria-current="page"] {
  color: var(--gold-bright);
  background: rgba(211, 169, 59, 0.12);
}
.primary-nav__link[aria-current="page"]::after { transform: scaleX(1); }

.masthead__cta { flex: 0 0 auto; }

/* 移动开关 */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(211, 169, 59, 0.4);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.nav-toggle:hover {
  background: rgba(211, 169, 59, 0.1);
  border-color: var(--gold);
}

.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--gold-bright);
  transition: transform 0.22s var(--ease), opacity 0.22s var(--ease);
}
.nav-toggle[data-open] .nav-toggle__bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[data-open] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[data-open] .nav-toggle__bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease), transform 0.2s var(--ease), filter 0.2s var(--ease);
}

.btn--solid {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  border-color: rgba(18, 14, 10, 0.28);
  color: #1a1206;
}
.btn--solid:hover {
  color: #1a1206;
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn--ghost {
  background: rgba(211, 169, 59, 0.06);
  border-color: rgba(211, 169, 59, 0.55);
  color: var(--gold-bright);
}
.btn--ghost:hover {
  background: rgba(211, 169, 59, 0.16);
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}

.btn--sm {
  padding: 9px 15px;
  font-size: 13px;
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: linear-gradient(180deg, rgba(33, 24, 17, 0.96) 0%, #120E0A 100%);
  border-top: 1px solid var(--line-gold);
  padding-top: clamp(40px, 6vw, 74px);
  color: var(--porcelain);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr));
  gap: clamp(26px, 3.4vw, 56px);
  padding-bottom: clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--line-soft);
}

.footer-brand {
  display: grid;
  align-content: start;
  gap: 14px;
}

.brand--footer { gap: 14px; }

.footer-brand__name {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.3;
  color: var(--porcelain);
}

.footer-brand__desc {
  margin: 0;
  max-width: 36ch;
  font-size: 14px;
  line-height: 1.8;
  color: var(--warm-gray);
}

.footer-col__title {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-col__list {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col__link {
  font-size: 14.5px;
  color: rgba(247, 241, 230, 0.78);
  border-bottom: 1px solid transparent;
}
.footer-col__link:hover {
  color: var(--gold-bright);
  border-color: rgba(211, 169, 59, 0.6);
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 30px;
  padding-block: 24px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13.5px;
  color: var(--warm-gray);
}

.footer-contact__item {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
}

.footer-contact__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--jade-light);
}

.footer-contact__cta { margin-inline-start: auto; }

.footer-contact__note {
  flex: 1 0 100%;
  margin: 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(189, 177, 160, 0.72);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 20px 30px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(189, 177, 160, 0.7);
}

.footer-base__copy,
.footer-base__legal { margin: 0; }

/* ---------- 面包屑 ---------- */
.breadcrumb {
  padding-block: 18px;
  font-size: 12.5px;
  color: var(--warm-gray);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.breadcrumb__list li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(211, 169, 59, 0.5);
}
.breadcrumb__list a { color: var(--warm-gray); }
.breadcrumb__list a:hover { color: var(--gold-bright); }
.breadcrumb__list [aria-current="page"] { color: var(--porcelain); }

/* ---------- 网格 ---------- */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

/* ---------- 编号章节 ---------- */
.chapter {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(14px, 2vw, 26px);
  align-items: start;
}

.chapter__no {
  font-family: var(--font-mono);
  font-size: clamp(30px, 4.2vw, 48px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: rgba(211, 169, 59, 0.36);
  -webkit-text-stroke: 1px rgba(211, 169, 59, 0.75);
}

/* ---------- 面板 / 铭牌 / 摘要条 ---------- */
.panel {
  position: relative;
  padding: clamp(18px, 2.4vw, 30px);
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  background: var(--ink-2);
}

.panel--glass {
  background: rgba(58, 52, 44, 0.42);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-color: rgba(247, 241, 230, 0.14);
}

.plaque {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid rgba(211, 169, 59, 0.55);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(211, 169, 59, 0.14), rgba(211, 169, 59, 0.04));
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--gold-bright);
}

.summary-strip {
  padding: 16px 20px;
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(211, 169, 59, 0.07);
  color: var(--porcelain);
}
.summary-strip p:last-child { margin-bottom: 0; }

/* ---------- 状态胶囊 / 标签 ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid rgba(211, 169, 59, 0.35);
  border-radius: 999px;
  background: rgba(211, 169, 59, 0.08);
  font-size: 12.5px;
  line-height: 1.2;
  color: var(--gold-bright);
}
.chip--jade {
  border-color: rgba(114, 196, 163, 0.42);
  background: rgba(30, 107, 87, 0.24);
  color: var(--jade-light);
}
.chip--alert {
  border-color: rgba(140, 47, 57, 0.6);
  background: rgba(140, 47, 57, 0.22);
  color: #E9A9AE;
}

/* ---------- 图片容器（页面阶段放置 img） ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(211, 169, 59, 0.2);
  border-radius: var(--radius);
  background: linear-gradient(160deg, #2b221a 0%, #16110c 100%);
}
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--wide { aspect-ratio: 21 / 9; }

.media-frame img,
.media-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.media-frame:hover img { transform: scale(1.03); }

/* ---------- 正文阅读栏 ---------- */
.prose {
  max-width: 72ch;
  font-size: 16.5px;
  line-height: 1.85;
  color: rgba(247, 241, 230, 0.88);
}
.prose h2 { margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose a { border-bottom: 1px solid rgba(114, 196, 163, 0.5); }
.prose a:hover { border-color: var(--gold-bright); }

/* ---------- 对照表 ---------- */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.compare-table caption {
  padding-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-align: left;
  text-transform: uppercase;
  color: var(--gold);
}
.compare-table th {
  padding: 12px 14px;
  background: var(--jade);
  font-weight: 700;
  text-align: left;
  color: var(--porcelain);
}
.compare-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(211, 169, 59, 0.16);
  color: rgba(247, 241, 230, 0.85);
  vertical-align: top;
}
.compare-table tbody tr:hover td { background: rgba(211, 169, 59, 0.05); }

/* ---------- 抽屉 ---------- */
.drawer {
  overflow: hidden;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  background: var(--ink-2);
}
.drawer + .drawer { margin-top: 12px; }
.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  font-size: 14.5px;
  color: var(--porcelain);
}
.drawer__body {
  padding: 0 18px 18px;
  font-size: 14.5px;
  color: var(--warm-gray);
}

/* ---------- 索引链接（配合 data-index-link） ---------- */
[data-index-link] {
  display: block;
  padding: 8px 12px;
  border-left: 2px solid rgba(211, 169, 59, 0.28);
  font-size: 13.5px;
  color: var(--warm-gray);
}
[data-index-link]:hover {
  color: var(--gold-bright);
  border-left-color: rgba(211, 169, 59, 0.7);
}
[data-index-link][aria-current] {
  color: var(--gold-bright);
  border-left-color: var(--gold);
  background: rgba(211, 169, 59, 0.1);
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1120px) {
  .nav-toggle { display: inline-flex; }

  .masthead__nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 12px;
    padding: 16px var(--gutter) 24px;
    background: rgba(18, 14, 10, 0.99);
    border-bottom: 1px solid rgba(211, 169, 59, 0.28);
    box-shadow: var(--shadow-1);
  }

  .site-header[data-open] .masthead__nav { display: flex; }

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

  .primary-nav__link {
    padding: 13px 12px;
    border-bottom: 1px solid rgba(211, 169, 59, 0.12);
    border-radius: 0;
    font-size: 15px;
  }
  .primary-nav__link::after { display: none; }
  .primary-nav__link[aria-current="page"] {
    background: rgba(211, 169, 59, 0.1);
    box-shadow: inset 3px 0 0 var(--gold);
  }

  .masthead__cta { width: 100%; }
}

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

@media (max-width: 760px) {
  .footer-contact__cta {
    margin-inline-start: 0;
    width: 100%;
  }
  .brand__line { letter-spacing: 0.16em; }
}

@media (max-width: 600px) {
  .grid-12 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .masthead__inner { min-height: 68px; gap: 14px; }
  .brand__plaque { width: 36px; height: 36px; font-size: 18px; }
  .brand__name { font-size: 17px; }
  .brand__line { font-size: 9.5px; }
  .chapter { grid-template-columns: 1fr; }
  .chapter__no { font-size: 28px; }
}

@media (max-width: 560px) {
  .notice-band__text { display: none; }
  .notice-band__inner { gap: 10px; }
  .notice-band__link { margin-inline-start: auto; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- 动效降级 ---------- */
@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--solid:hover { transform: none; }
  .media-frame:hover img { transform: none; }
}
