/* ============================================================
   皇冠娱乐会馆 · 共享站点样式 /assets/site.css
   金冠夜色系统：深墨黑框架 + 皇冠金描边 + 暖米白纸面
   ============================================================ */

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

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

body, 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%; }

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

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

h1, h2, h3, h4 { font-weight: 600; }

/* ---------- 变量 ---------- */
:root {
  --ink: #0E0E10;
  --gold: #C9A227;
  --rice: #F6F1E7;
  --ruby: #B3122E;
  --jade: #1F8A70;
  --grey: #6E6A63;
  --brass: #8A7326;
  --moss: #2E3A33;
  --clay: #C4633A;
  --paper: #EFE7D6;
  --ink-muted: #2A2A2E;

  --rail-w: 96px;
  --topbar-h: 72px;
  --maxw: 1280px;

  --font-display: "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", Georgia, serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", "Roboto Mono", Consolas, "Liberation Mono", "Courier New", monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --line: rgba(201, 162, 39, .38);
  --line-soft: rgba(201, 162, 39, .18);
}

/* ---------- 基础排版 ---------- */
body {
  padding-top: var(--topbar-h);
  background-color: var(--rice);
  background-image:
    radial-gradient(circle at 10% 6%, rgba(201, 162, 39, .10), transparent 44%),
    radial-gradient(circle at 92% 2%, rgba(31, 138, 112, .07), transparent 38%),
    repeating-linear-gradient(0deg, rgba(14, 14, 16, .022) 0 1px, transparent 1px 4px);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  min-height: 100vh;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  box-shadow: 0 0 0 1px var(--ink);
}

/* ---------- 通用容器与网格 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

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

.section { padding: 56px 0; }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(201, 162, 39, .55);
}

.section-num {
  font-family: var(--font-mono);
  font-size: 34px;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--gold);
}

.section-title {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.35;
  font-weight: 900;
  letter-spacing: -.01em;
}

.hairline {
  height: 1px;
  border: 0;
  margin: 32px 0;
  background: linear-gradient(90deg, var(--gold), rgba(201, 162, 39, .04));
}

.prose {
  max-width: 34em;
  font-size: 16.5px;
  line-height: 1.85;
  color: #23232A;
}

.prose p + p { margin-top: 14px; }

.prose ul { list-style: disc; padding-left: 1.4em; }

.lead {
  font-size: 19px;
  line-height: 1.8;
  color: var(--ink-muted);
}

.meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--grey);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  transition: transform .15s var(--ease), background-color .15s var(--ease),
              color .15s var(--ease), border-color .15s var(--ease), box-shadow .15s var(--ease);
}

.btn--gold { background: var(--gold); color: var(--ink); box-shadow: 0 6px 18px rgba(201, 162, 39, .22); }
.btn--gold:hover { background: #D9B441; transform: translateY(-2px); }

.btn--ruby { background: var(--ruby); color: var(--rice); box-shadow: 0 6px 18px rgba(179, 18, 46, .22); }
.btn--ruby:hover { background: #C71834; transform: translateY(-2px); }

.btn--ghost { background: transparent; color: var(--ink); border-color: rgba(14, 14, 16, .35); }
.btn--ghost:hover { border-color: var(--gold); color: var(--brass); transform: translateY(-2px); }

/* ---------- 卡片与标签 ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  border: 1px solid rgba(138, 115, 38, .45);
  border-radius: 2px;
  background: var(--paper);
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), border-color .16s var(--ease);
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 12px 26px rgba(14, 14, 16, .14);
}

.card--paper { background: var(--paper); }

.card--ink {
  background: linear-gradient(160deg, #1A1A1D, #0E0E10);
  border-color: rgba(201, 162, 39, .42);
  color: var(--rice);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.4;
  font-weight: 900;
}

.card-text { font-size: 15px; line-height: 1.8; color: var(--grey); }
.card--ink .card-text { color: rgba(246, 241, 231, .74); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1.6;
  white-space: nowrap;
}

.tag--gold { background: rgba(201, 162, 39, .16); color: var(--brass); border: 1px solid rgba(201, 162, 39, .5); }
.tag--ruby { background: var(--ruby); color: var(--rice); }
.tag--jade { background: var(--jade); color: var(--rice); }
.tag--clay { background: rgba(196, 99, 58, .16); color: var(--clay); border: 1px solid rgba(196, 99, 58, .5); }

/* ---------- 面包屑 ---------- */
.breadcrumb {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px 24px 0;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--grey);
}

.breadcrumb-item { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb-item + .breadcrumb-item::before { content: "/"; color: var(--brass); }

.breadcrumb-link {
  color: var(--grey);
  border-bottom: 1px solid transparent;
  transition: color .15s var(--ease), border-color .15s var(--ease);
}

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

/* ---------- 图片容器基础规则 ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(201, 162, 39, .4);
  border-radius: 2px;
  background: linear-gradient(150deg, #1B1B1F, #0E0E10 68%);
}

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

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% -10%, rgba(201, 162, 39, .22), transparent 62%),
    linear-gradient(180deg, transparent 58%, rgba(14, 14, 16, .42));
}

.media--arch {
  aspect-ratio: 4 / 5;
  border-top-left-radius: 50% 28%;
  border-top-right-radius: 50% 28%;
}

.media--panel { aspect-ratio: 3 / 2; }

.media-caption {
  display: block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--grey);
}

/* ---------- 颗粒质感工具 ---------- */
.grain { position: relative; }

.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(246, 241, 231, .06) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: .7;
}

/* ---------- 显现动画协议 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .32s var(--ease), transform .32s var(--ease);
}

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

/* ============================================================
   头部
   ============================================================ */
.site-header { position: relative; z-index: 80; }

.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 130;
  padding: 11px 18px;
  background: var(--gold);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  border-radius: 2px;
  transition: top .18s var(--ease);
}

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

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 120;
  background: rgba(14, 14, 16, .5);
}

.scroll-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--brass), var(--gold) 60%, #EBD07A);
}

/* --- 顶栏 --- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--topbar-h);
  padding: 10px 24px;
  background-color: var(--ink);
  background-image:
    radial-gradient(circle at 18% -70%, rgba(201, 162, 39, .22), transparent 58%),
    radial-gradient(rgba(246, 241, 231, .045) 1px, transparent 1px);
  background-size: auto, 3px 3px;
  border-bottom: 1px solid var(--line);
  color: var(--rice);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--gold);
  border-radius: 2px;
  background: radial-gradient(circle at 50% 18%, rgba(201, 162, 39, .3), transparent 72%);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
}

.brand-text { display: block; }

.brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: .06em;
  color: var(--rice);
}

.brand-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brass);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  white-space: nowrap;
  transition: transform .15s var(--ease), background-color .15s var(--ease),
              border-color .15s var(--ease), box-shadow .15s var(--ease);
}

.chip:hover { transform: translateY(-2px); }

.chip--ruby {
  background: var(--ruby);
  color: var(--rice);
  box-shadow: 0 0 0 1px rgba(179, 18, 46, .5), 0 8px 20px rgba(179, 18, 46, .28);
}

.chip--gold {
  background: rgba(201, 162, 39, .08);
  color: var(--gold);
  border-color: rgba(201, 162, 39, .55);
}

.chip--gold:hover { background: rgba(201, 162, 39, .16); }

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(201, 162, 39, .5);
  border-radius: 2px;
  color: var(--gold);
  cursor: pointer;
  transition: border-color .15s var(--ease), background-color .15s var(--ease);
}

.nav-toggle:hover { border-color: var(--gold); background: rgba(201, 162, 39, .1); }

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 2.5px 0;
  background: currentColor;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* --- 侧边轨道 --- */
.rail {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 95;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: var(--rail-w);
  padding: 22px 10px 18px;
  overflow-y: auto;
  background-color: #101012;
  background-image:
    radial-gradient(circle at 50% 0%, rgba(201, 162, 39, .16), transparent 55%),
    linear-gradient(180deg, #131316, #0E0E10 55%, #171A15),
    radial-gradient(rgba(246, 241, 231, .05) 1px, transparent 1px);
  background-size: auto, auto, 3px 3px;
  border-right: 1px solid var(--line);
  color: var(--rice);
}

.rail-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-align: center;
  text-transform: uppercase;
  color: var(--brass);
}

.rail-close { display: none; }

.rail-list {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
}

.rail-link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 4px 10px 8px;
  border: 1px solid transparent;
  border-radius: 2px;
  color: rgba(246, 241, 231, .82);
  transition: background-color .15s var(--ease), color .15s var(--ease),
              border-color .15s var(--ease), transform .15s var(--ease);
}

.rail-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16%;
  bottom: 16%;
  width: 2px;
  background: transparent;
  transition: background-color .15s var(--ease);
}

.rail-link:hover,
.rail-link:focus-visible {
  background: rgba(201, 162, 39, .12);
  border-color: rgba(201, 162, 39, .35);
  color: var(--gold);
  transform: translateX(2px);
}

.rail-link:hover::before { background: var(--brass); }

.rail-link[aria-current="page"] {
  background: linear-gradient(90deg, rgba(201, 162, 39, .22), rgba(201, 162, 39, .02));
  border-color: rgba(201, 162, 39, .5);
  color: var(--gold);
}

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

.rail-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--brass);
  transition: color .15s var(--ease);
}

.rail-link:hover .rail-num,
.rail-link[aria-current="page"] .rail-num { color: var(--gold); }

.rail-label {
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .02em;
}

.rail-foot {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.6;
  text-align: center;
  color: #6E6A63;
}

/* --- 遮罩 --- */
.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 92;
  background: rgba(14, 14, 16, .62);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s var(--ease);
}

.site-header[data-nav-open] .nav-scrim { opacity: 1; pointer-events: auto; }

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  position: relative;
  margin-top: 64px;
  padding: 52px 24px 24px;
  background-color: #0E0E10;
  background-image:
    radial-gradient(circle at 82% 0%, rgba(201, 162, 39, .16), transparent 52%),
    linear-gradient(180deg, #131316, #0E0E10 55%, #0A0A0C),
    radial-gradient(rgba(246, 241, 231, .05) 1px, transparent 1px);
  background-size: auto, auto, 3px 3px;
  border-top: 1px solid rgba(201, 162, 39, .42);
  color: var(--rice);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.3fr 1.1fr;
  gap: 32px;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
}

.footer-col { display: flex; flex-direction: column; gap: 12px; }

.footer-heading {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: .04em;
  color: var(--gold);
}

.footer-text {
  font-size: 13.5px;
  line-height: 1.8;
  color: rgba(246, 241, 231, .76);
}

.footer-meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  color: #8C8578;
}

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

.footer-link {
  display: inline-block;
  font-size: 14px;
  color: rgba(246, 241, 231, .84);
  border-bottom: 1px solid transparent;
  transition: color .15s var(--ease), border-color .15s var(--ease), transform .15s var(--ease);
}

.footer-link:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
  transform: translateX(2px);
}

.footer-contact { gap: 12px; }

.footer-label {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--brass);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  max-width: var(--maxw);
  margin: 34px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--grey);
}

.footer-icp { color: #8C8578; }

/* ============================================================
   响应式
   ============================================================ */
@media (min-width: 1024px) {
  body { padding-left: var(--rail-w); }
  .topbar { left: var(--rail-w); }
  .nav-scrim { display: none; }
}

@media (max-width: 1023px) {
  :root { --topbar-h: 68px; }

  .nav-toggle { display: flex; }

  .rail {
    top: 0;
    width: min(320px, 86vw);
    padding: 20px 16px;
    gap: 12px;
    transform: translateX(-102%);
    transition: transform .22s var(--ease);
    z-index: 96;
    box-shadow: 12px 0 32px rgba(0, 0, 0, .45);
  }

  .rail[data-open] { transform: translateX(0); }

  .rail-title { text-align: left; }

  .rail-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    padding: 7px 14px;
    border: 1px solid rgba(201, 162, 39, .5);
    border-radius: 2px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    color: var(--gold);
    cursor: pointer;
  }

  .rail-close:hover { background: rgba(201, 162, 39, .14); }

  .rail-list { gap: 8px; }

  .rail-link {
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-color: rgba(201, 162, 39, .18);
    background: rgba(246, 241, 231, .03);
  }

  .rail-link::before { top: 10%; bottom: 10%; }

  .rail-num { width: 24px; }

  .rail-label { font-size: 14px; }

  .rail-foot { text-align: left; }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
}

@media (max-width: 860px) {
  .chip--gold { display: none; }
}

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

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

  .brand-sub { display: none; }
  .brand-name { font-size: 17px; }
  .brand-mark { width: 36px; height: 36px; font-size: 19px; }

  .topbar { padding: 8px 14px; gap: 10px; }
  .chip { padding: 9px 13px; font-size: 12.5px; }

  .container { padding: 0 18px; }
  .section { padding: 40px 0; }
  .section-num { font-size: 26px; }
  .section-title { font-size: 21px; }
  .lead { font-size: 17px; }

  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- 降低动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

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