/* ===== 万豪棋牌 · 共享站点样式 /assets/site.css ===== */

/* --- reset --- */
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg { display: block; max-width: 100%; height: auto; }

/* --- variables --- */
:root {
  --felt-ink: #0B1F18;
  --felt-deep: #12332A;
  --felt-mid: #1B4A3B;
  --ivory: #EDE7D8;
  --gold: #C9A227;
  --gold-lit: #F2D579;
  --cinnabar: #B33A2B;
  --mist: #8FA39B;
  --ink: #20211D;
  --line: #D7DBD2;

  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --wrap: 1220px;
  --gap: clamp(16px, 3vw, 40px);
  --pad-y: clamp(48px, 7vw, 104px);
  --radius: 18px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* --- base --- */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ivory);
  background-color: var(--felt-ink);
  background-image:
    radial-gradient(120% 80% at 50% -10%, rgba(242, 213, 121, .10), transparent 60%),
    repeating-linear-gradient(115deg, rgba(255,255,255,.016) 0 2px, transparent 2px 6px);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -.015em;
}

p { max-width: 38em; }

.mono {
  font-family: var(--font-mono);
  letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
}

/* --- skip link --- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 999;
  padding: 12px 20px;
  background: var(--gold-lit);
  color: var(--ink);
  border-radius: 999px;
  font-weight: 700;
  transition: top .18s var(--ease);
}
.skip-link:focus-visible { top: 16px; }

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

/* --- layout containers --- */
.container {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 44px);
}
.container--narrow { max-width: 860px; }

.section { padding-block: var(--pad-y); position: relative; }
.section--dark { background: var(--felt-ink); color: var(--ivory); }
.section--light { background: var(--ivory); color: var(--ink); }
.section--mint {
  background: linear-gradient(180deg, var(--felt-deep), var(--felt-mid));
  color: var(--ivory);
}
.section--light p,
.section--light li { color: var(--ink); }
.section--mint p { color: #CFDBD4; }

/* --- header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: linear-gradient(180deg, rgba(11,31,24,.92), rgba(11,31,24,.72));
  border-bottom: 1px solid rgba(201,162,39,.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background .28s var(--ease), border-color .28s var(--ease), box-shadow .28s var(--ease);
}
.site-header[data-shrink="true"] {
  background: rgba(9,24,19,.94);
  border-bottom-color: rgba(242,213,121,.42);
  box-shadow: 0 12px 34px -18px rgba(0,0,0,.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 18px;
  transition: padding .28s var(--ease);
}
.site-header[data-shrink="true"] .header-inner { padding-block: 10px; }

.brand { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.brand__lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ivory);
}
.brand__mark {
  position: relative;
  display: inline-block;
  width: 30px;
  height: 38px;
  flex: none;
  border: 1.5px solid var(--gold);
  border-radius: 5px;
  background: linear-gradient(150deg, var(--felt-mid), var(--felt-deep));
  box-shadow: inset 0 0 0 2px rgba(201,162,39,.14);
  transform: rotate(-7deg);
}
.brand__mark i {
  position: absolute;
  width: 5px;
  height: 5px;
  background: var(--gold-lit);
  border-radius: 50%;
  opacity: .85;
}
.brand__mark i:nth-child(1) { top: 7px; left: 7px; }
.brand__mark i:nth-child(2) { bottom: 7px; right: 7px; background: var(--cinnabar); }
.brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(19px, 2.4vw, 24px);
  letter-spacing: .04em;
  line-height: 1.1;
}
.brand__ver {
  font-size: 11.5px;
  letter-spacing: .16em;
  color: var(--mist);
  padding-left: 42px;
}

.header-nav-wrap {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 30px);
  min-width: 0;
}

.header-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.8vw, 26px);
}
.header-nav__list a {
  position: relative;
  display: inline-block;
  padding: 6px 2px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .04em;
  color: #D5DCD4;
  transition: color .2s var(--ease);
}
.header-nav__list a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cinnabar);
  transform: translate(-50%, 6px) scale(.4);
  opacity: 0;
  transition: transform .24s var(--ease), opacity .24s var(--ease);
}
.header-nav__list a:hover { color: var(--gold-lit); }
.header-nav__list a[aria-current="page"] { color: var(--gold-lit); font-weight: 700; }
.header-nav__list a[aria-current="page"]::after {
  transform: translate(-50%, 6px) scale(1);
  opacity: 1;
}

.header-nav__foot { display: none; }

.header-utility {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.35;
  padding-left: clamp(10px, 1.6vw, 20px);
  border-left: 1px solid rgba(143,163,155,.3);
}
.header-utility__phone { font-size: 13.5px; color: var(--gold-lit); }
.header-utility__hours { font-size: 11px; letter-spacing: .1em; color: var(--mist); }

/* 筹码按钮 */
.chip-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  border: 2px solid var(--gold-lit);
  background: var(--cinnabar);
  color: #FFF6E4;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .05em;
  white-space: nowrap;
  box-shadow: 0 8px 20px -12px rgba(179,58,43,.9), inset 0 0 0 3px rgba(255,255,255,.10);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), background .22s var(--ease);
}
.chip-btn::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border: 2px solid var(--gold-lit);
  opacity: 0;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  transform: scale(1);
  pointer-events: none;
}
.chip-btn:hover { transform: translateY(-3px); background: #C44535; }
.chip-btn:hover::after { opacity: .55; transform: scale(1.14); }

.chip-btn--ghost {
  background: transparent;
  color: var(--gold-lit);
  box-shadow: none;
}
.chip-btn--ghost:hover { background: rgba(201,162,39,.16); }

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0 11px;
  border-radius: 12px;
  border: 1px solid rgba(201,162,39,.45);
  background: rgba(18,51,42,.7);
}
.nav-toggle__bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--gold-lit);
  border-radius: 2px;
  transition: transform .26s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) 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(-7px) rotate(-45deg); }

/* --- 通用面板 / 章节 --- */
.panel {
  position: relative;
  border-radius: var(--radius);
  padding: clamp(20px, 3.4vw, 42px);
}
.panel--glass {
  background: linear-gradient(160deg, rgba(237,231,216,.10), rgba(237,231,216,.03));
  border: 1px solid rgba(237,231,216,.20);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.panel--solid {
  background: var(--felt-deep);
  border: 1px solid rgba(201,162,39,.30);
  color: var(--ivory);
}

.chapter-num {
  font-family: var(--font-mono);
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1;
  letter-spacing: .02em;
  color: rgba(201,162,39,.55);
  transition: color .3s var(--ease);
}
.chapter-num[data-active="true"] { color: var(--cinnabar); }
.chapter-title {
  font-size: clamp(26px, 4vw, 44px);
  margin-top: 8px;
}

.anno {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .22em;
  color: var(--gold);
  transform: rotate(-6deg);
  transform-origin: left center;
}

/* --- 网格 --- */
.grid { display: grid; gap: var(--gap); }
.grid--table {
  grid-template-columns: minmax(0, 62fr) minmax(0, 34fr);
  column-gap: 4%;
  align-items: start;
}
.grid--halves { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--thirds { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* --- 面包屑 --- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  letter-spacing: .08em;
  color: var(--mist);
  padding-block: 18px 0;
}
.breadcrumb a { color: var(--gold); border-bottom: 1px solid rgba(201,162,39,.4); }
.breadcrumb a:hover { color: var(--gold-lit); }
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "/"; color: rgba(143,163,155,.7); }
.breadcrumb [aria-current="page"] { color: var(--ivory); }

/* --- 图片容器基础规则 --- */
.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(27,74,59,.95), rgba(11,31,24,.95));
  border: 1px solid rgba(201,162,39,.28);
  aspect-ratio: 16 / 10;
  isolation: isolate;
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(160deg, rgba(11,31,24,.42), rgba(201,162,39,.18)),
    repeating-linear-gradient(60deg, rgba(255,255,255,.05) 0 1px, transparent 1px 7px);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.media-frame > img,
.media-frame > picture,
.media-frame > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}
.media-frame--tilt {
  transform: rotate(-2.2deg);
  box-shadow: 0 26px 56px -30px rgba(0,0,0,.85);
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame__cap {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  color: var(--gold-lit);
  background: rgba(11,31,24,.72);
  border: 1px solid rgba(201,162,39,.4);
  border-radius: 999px;
  padding: 4px 12px;
}

/* --- 显现动效 --- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .32s var(--ease), transform .32s var(--ease); }
.reveal[data-shown="true"] { opacity: 1; transform: none; }

/* --- 进度 / 返回顶部合体 --- */
.progress-chip {
  position: fixed;
  right: clamp(14px, 3vw, 30px);
  bottom: clamp(14px, 3vw, 30px);
  z-index: 80;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(11,31,24,.88);
  border: 1px solid rgba(201,162,39,.5);
  color: var(--gold-lit);
  box-shadow: 0 12px 28px -16px rgba(0,0,0,.95);
  transition: transform .22s var(--ease), border-color .22s var(--ease);
}
.progress-chip:hover { transform: translateY(-3px); border-color: var(--gold-lit); }
.progress-chip__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(var(--cinnabar) calc(var(--p, 0) * 1%), transparent 0);
  mask: radial-gradient(circle, transparent 61%, #000 62%);
  -webkit-mask: radial-gradient(circle, transparent 61%, #000 62%);
}
.progress-chip__arrow { font-size: 15px; line-height: 1; }

/* --- footer --- */
.site-footer {
  background: linear-gradient(180deg, var(--felt-deep), #07140F 78%);
  border-top: 1px solid rgba(201,162,39,.32);
  color: #C8D2CB;
  padding-top: clamp(44px, 6vw, 76px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: clamp(24px, 3.4vw, 46px);
  padding-bottom: clamp(28px, 4vw, 48px);
}
.footer-brand__name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .04em;
  color: var(--ivory);
  margin-top: 14px;
}
.footer-brand__sub {
  font-size: 12.5px;
  letter-spacing: .12em;
  color: var(--mist);
  margin-top: 4px;
}
.brand__mark--footer { display: block; }
.footer-col__title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .24em;
  color: var(--gold);
  margin-bottom: 14px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.footer-col a { color: #C8D2CB; border-bottom: 1px solid transparent; transition: color .2s var(--ease), border-color .2s var(--ease); }
.footer-col a:hover { color: var(--gold-lit); border-bottom-color: rgba(242,213,121,.6); }
.footer-col--contact li { line-height: 1.6; word-break: break-word; }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-block: 16px;
  border-top: 1px solid rgba(143,163,155,.22);
  font-size: 12.5px;
  color: var(--mist);
  letter-spacing: .04em;
}
.footer-legal p { max-width: none; color: var(--mist); }
.footer-note {
  font-size: 12px;
  line-height: 1.7;
  color: rgba(143,163,155,.85);
  padding-bottom: 30px;
  max-width: 70ch;
}

/* --- 响应式 --- */
@media (max-width: 1024px) {
  .header-utility { display: none; }
  .grid--table { grid-template-columns: 1fr; row-gap: var(--gap); }
  .grid--thirds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  body { font-size: 16px; }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }

  .header-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(86vw, 340px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    padding: 92px 24px 32px;
    background: linear-gradient(170deg, rgba(18,51,42,.99), rgba(9,24,19,.99));
    border-left: 1px solid rgba(201,162,39,.38);
    box-shadow: -24px 0 60px -30px rgba(0,0,0,.95);
    transform: translateX(102%);
    transition: transform .3s var(--ease);
    overflow-y: auto;
    z-index: 95;
  }
  [data-nav][data-open="true"] { transform: translateX(0); }

  .header-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .header-nav__list li {
    border-bottom: 1px solid rgba(143,163,155,.18);
  }
  .header-nav__list li::before {
    counter-increment: navitem;
    content: "0" counter(navitem);
    font-family: var(--font-mono);
    font-size: 11px;
    color: rgba(201,162,39,.7);
    margin-right: 12px;
  }
  .header-nav__list { counter-reset: navitem; }
  .header-nav__list li { display: flex; align-items: center; padding: 4px 0; }
  .header-nav__list a { display: block; width: 100%; padding: 13px 0; font-size: 16.5px; }
  .header-nav__list a::after { display: none; }
  .header-nav__list a[aria-current="page"] { color: var(--cinnabar); }

  .header-nav__foot {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid rgba(201,162,39,.3);
    font-size: 13px;
    color: var(--mist);
  }
  .header-nav__contact { color: var(--gold-lit); font-size: 14px; }

  .grid--halves,
  .grid--thirds { grid-template-columns: 1fr; }
  .media-frame--tilt { transform: rotate(-1.2deg); }
}

@media (max-width: 620px) {
  .brand__ver { padding-left: 0; font-size: 10.5px; letter-spacing: .1em; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-legal { flex-direction: column; }
  .progress-chip { width: 46px; height: 46px; }
  .chapter-num { font-size: 40px; }
}

/* --- 无障碍：减少动效 --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .media-frame--tilt { transform: none; }
  .brand__mark { transform: none; }
  .anno { transform: none; }
}
