/* =========================================================
   新豪门娱乐馆 · 共享站点样式 /assets/site.css
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; }
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; padding: 0; }
img, svg, picture, video { display: block; max-width: 100%; }
fieldset, legend { margin: 0; padding: 0; border: 0; }

:root {
  --xh-ink: #0E0F0D;
  --xh-ink-2: #171814;
  --xh-ink-3: #1F211C;
  --xh-gold: #C8A96A;
  --xh-gold-l: #E6D3A3;
  --xh-gold-dim: rgba(200, 169, 106, .30);
  --xh-gold-line: rgba(200, 169, 106, .18);
  --xh-cinnabar: #A63A2B;
  --xh-copper: #B87A4B;
  --xh-moss: #5E6B55;
  --xh-stone: #8C8C84;
  --xh-paper: #F2EBDD;
  --xh-paper-dim: rgba(242, 235, 221, .76);
  --xh-glass: rgba(255, 255, 255, .08);
  --xh-glass-line: rgba(255, 255, 255, .16);

  --xh-font-display: "Songti SC", "STSong", "Source Han Serif SC", "Noto Serif SC", "SimSun", serif;
  --xh-font-body: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --xh-font-mono: "SFMono-Regular", Menlo, Consolas, "Courier New", monospace;

  --xh-w: 1240px;
  --xh-gutter: clamp(20px, 4vw, 56px);
  --xh-ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 中文排版基础 ---------- */
body {
  background: var(--xh-ink);
  color: var(--xh-paper);
  font-family: var(--xh-font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--xh-font-display);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: .03em;
  color: var(--xh-paper);
}
h1 { font-size: clamp(34px, 5.2vw, 62px); font-weight: 700; }
h2 { font-size: clamp(26px, 3.4vw, 40px); }
h3 { font-size: clamp(20px, 2.2vw, 28px); }
strong, b { font-weight: 600; color: var(--xh-paper); }
small { font-size: 13px; }

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

/* ---------- 布局容器 ---------- */
.container {
  width: 100%;
  max-width: var(--xh-w);
  margin-inline: auto;
  padding-inline: var(--xh-gutter);
}
.container--wide { max-width: 1440px; }

/* ---------- 跳转链接 ---------- */
.xh-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 14px 22px;
  background: var(--xh-gold);
  color: #12130F;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .08em;
  border-radius: 2px;
}
.xh-skip:focus { left: 16px; top: 16px; }

/* ---------- 阅读进度条 ---------- */
.xh-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 90;
  background: linear-gradient(90deg, var(--xh-gold), var(--xh-copper));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
  will-change: transform;
}

/* ---------- 头部 ---------- */
.xh-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .32s var(--xh-ease),
              border-color .32s var(--xh-ease),
              box-shadow .32s var(--xh-ease);
}
.xh-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 15, 13, .88), rgba(14, 15, 13, 0));
  opacity: 1;
  transition: opacity .32s var(--xh-ease);
  pointer-events: none;
}
.xh-header.is-solid {
  background: rgba(14, 15, 13, .95);
  border-bottom-color: var(--xh-gold-line);
  box-shadow: 0 20px 46px -34px rgba(0, 0, 0, .95);
}
.xh-header.is-solid::before { opacity: 0; }

@supports ((backdrop-filter: blur(4px)) or (-webkit-backdrop-filter: blur(4px))) {
  .xh-header.is-solid {
    -webkit-backdrop-filter: blur(16px) saturate(130%);
    backdrop-filter: blur(16px) saturate(130%);
  }
}
@supports not ((backdrop-filter: blur(4px)) or (-webkit-backdrop-filter: blur(4px))) {
  .xh-header.is-solid { background: #0E0F0D; }
  .card--glass { background: rgba(30, 32, 28, .97); }
  .xh-to-top { background: #171814; }
}

/* 细线信息带 */
.xh-topbar {
  position: relative;
  height: 40px;
  overflow: hidden;
  border-bottom: 1px solid rgba(200, 169, 106, .14);
  transition: height .3s var(--xh-ease), opacity .24s var(--xh-ease), border-color .3s var(--xh-ease);
}
.xh-header.is-solid .xh-topbar {
  height: 0;
  opacity: 0;
  border-bottom-color: transparent;
}
.xh-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 40px;
}
.xh-topbar__note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  letter-spacing: .18em;
  color: var(--xh-stone);
  white-space: nowrap;
}
.xh-topbar__note--right { color: rgba(242, 235, 221, .55); }
.xh-topbar__dot {
  width: 5px;
  height: 5px;
  background: var(--xh-gold);
  transform: rotate(45deg);
  flex: none;
}
.xh-topbar__tel {
  color: var(--xh-gold-l);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--xh-ease), color .2s var(--xh-ease);
}
.xh-topbar__tel:hover { border-bottom-color: var(--xh-gold); color: #fff; }

/* 主条 */
.xh-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 36px);
  height: 78px;
}

/* 品牌 */
.xh-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
.xh-brand__mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--xh-gold);
  color: var(--xh-gold);
  font-family: var(--xh-font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(155deg, rgba(200, 169, 106, .18), rgba(200, 169, 106, 0));
  transition: background-color .24s var(--xh-ease), color .24s var(--xh-ease);
}
.xh-brand:hover .xh-brand__mark { background: var(--xh-gold); color: #12130F; }
.xh-brand__text { display: flex; flex-direction: column; gap: 2px; }
.xh-brand__name {
  font-family: var(--xh-font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--xh-paper);
  line-height: 1.2;
}
.xh-brand__latin {
  font-size: 9px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--xh-stone);
  line-height: 1.2;
}

/* 导航 */
.xh-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.xh-nav__list { display: flex; align-items: center; gap: 4px; }
.xh-nav__item { display: block; }
.xh-nav__link {
  position: relative;
  display: block;
  padding: 9px 14px;
  font-size: 14px;
  letter-spacing: .1em;
  color: rgba(242, 235, 221, .76);
  border: 1px solid transparent;
  border-radius: 999px;
  white-space: nowrap;
  transition: color .18s var(--xh-ease),
              background-color .18s var(--xh-ease),
              border-color .18s var(--xh-ease);
}
.xh-nav__link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 0;
  height: 1px;
  background: var(--xh-gold);
  transform: translateX(-50%);
  transition: width .22s var(--xh-ease);
}
.xh-nav__link:hover {
  color: var(--xh-paper);
  background: rgba(200, 169, 106, .10);
  border-color: var(--xh-gold-line);
}
.xh-nav__link:hover::after { width: 18px; }
.xh-nav__link[aria-current="page"] {
  color: var(--xh-gold-l);
  background: rgba(200, 169, 106, .12);
  border-color: var(--xh-gold-dim);
}
.xh-nav__link[aria-current="page"]::after { width: 18px; }

.xh-nav__foot { display: none; }

/* 移动端按钮 */
.xh-nav__toggle {
  display: none;
  position: relative;
  margin-left: auto;
  width: 44px;
  height: 44px;
  flex: none;
  border: 1px solid var(--xh-gold-line);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color .2s var(--xh-ease), background-color .2s var(--xh-ease);
}
.xh-nav__toggle:hover { border-color: var(--xh-gold); background: rgba(200, 169, 106, .10); }
.xh-nav__bar {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1px;
  background: var(--xh-gold-l);
  transition: transform .26s var(--xh-ease), opacity .18s var(--xh-ease);
}
.xh-nav__bar:nth-child(1) { top: 15px; }
.xh-nav__bar:nth-child(2) { top: 21px; }
.xh-nav__bar:nth-child(3) { top: 27px; }
.xh-nav__toggle[aria-expanded="true"] .xh-nav__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.xh-nav__toggle[aria-expanded="true"] .xh-nav__bar:nth-child(2) { opacity: 0; }
.xh-nav__toggle[aria-expanded="true"] .xh-nav__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 头部行动区 */
.xh-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  margin-left: 4px;
}
.xh-header__cta { letter-spacing: .14em; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: 14px 26px;
  font-family: var(--xh-font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1.2;
  color: var(--xh-paper);
  background: transparent;
  border: 1px solid var(--xh-gold-line);
  border-radius: 2px;
  cursor: pointer;
  transition: color .2s var(--xh-ease),
              background-color .2s var(--xh-ease),
              border-color .2s var(--xh-ease),
              transform .2s var(--xh-ease);
}
.btn:hover { color: var(--xh-gold-l); border-color: var(--xh-gold); background: rgba(200, 169, 106, .08); }
.btn--gold { background: var(--xh-gold); border-color: var(--xh-gold); color: #12130F; }
.btn--gold:hover { background: var(--xh-gold-l); border-color: var(--xh-gold-l); color: #12130F; }
.btn--ghost { background: rgba(255, 255, 255, .05); }
.btn--sm { padding: 10px 18px; font-size: 12.5px; letter-spacing: .12em; }
.btn--block { width: 100%; }

/* ---------- 页脚 ---------- */
.xh-footer {
  position: relative;
  margin-top: clamp(64px, 9vw, 120px);
  background: var(--xh-ink-2);
  border-top: 1px solid var(--xh-gold-line);
  color: var(--xh-paper-dim);
}
.xh-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    var(--xh-gold) 0%,
    var(--xh-gold) 10%,
    rgba(200, 169, 106, .10) 10%,
    rgba(200, 169, 106, .10) 100%);
}
.xh-footer__top {
  display: grid;
  grid-template-columns: minmax(230px, 1.05fr) 2fr;
  gap: clamp(32px, 5vw, 84px);
  padding-block: clamp(44px, 6vw, 84px) clamp(32px, 4vw, 56px);
}
.xh-footer__seal {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border: 1px solid var(--xh-gold-dim);
  background: rgba(200, 169, 106, .07);
  color: var(--xh-gold);
  font-family: var(--xh-font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}
.xh-footer__eyebrow {
  font-family: var(--xh-font-display);
  font-size: clamp(21px, 2.2vw, 27px);
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--xh-paper);
  line-height: 1.3;
}
.xh-footer__slogan {
  margin-top: 10px;
  font-size: 13px;
  letter-spacing: .22em;
  color: var(--xh-gold);
}
.xh-footer__desc {
  margin-top: 16px;
  max-width: 34ch;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--xh-stone);
}
.xh-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
}
.xh-footer__col { min-width: 0; }
.xh-footer__title {
  font-family: var(--xh-font-body);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .28em;
  color: var(--xh-gold);
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--xh-gold-line);
}
.xh-footer__list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 14px;
  line-height: 1.6;
}
.xh-footer__list a {
  position: relative;
  display: inline-block;
  color: rgba(242, 235, 221, .78);
  transition: color .18s var(--xh-ease);
}
.xh-footer__list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--xh-gold);
  transition: width .22s var(--xh-ease);
}
.xh-footer__list a:hover { color: var(--xh-gold-l); }
.xh-footer__list a:hover::after { width: 100%; }
.xh-footer__label {
  display: block;
  font-size: 10.5px;
  letter-spacing: .24em;
  color: rgba(200, 169, 106, .68);
}
.xh-footer__value {
  display: block;
  margin-top: 2px;
  font-size: 13.5px;
  letter-spacing: .03em;
  color: rgba(242, 235, 221, .84);
  word-break: break-word;
}
.xh-footer__address {
  margin-top: 16px;
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--xh-stone);
  max-width: 30ch;
}
.xh-footer__base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-block: 20px 30px;
  border-top: 1px solid rgba(140, 140, 132, .2);
  font-size: 12.5px;
  letter-spacing: .08em;
  color: var(--xh-stone);
}
.xh-footer__copy { color: var(--xh-stone); }
.xh-footer__icp { color: rgba(140, 140, 132, .9); }

/* ---------- 返回顶部 ---------- */
.xh-to-top {
  position: fixed;
  right: clamp(16px, 3vw, 34px);
  bottom: clamp(16px, 3vw, 34px);
  z-index: 70;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--xh-gold-line);
  border-radius: 2px;
  background: rgba(23, 24, 20, .92);
  color: var(--xh-gold);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .24s var(--xh-ease),
              transform .24s var(--xh-ease),
              visibility .24s var(--xh-ease),
              border-color .2s var(--xh-ease),
              color .2s var(--xh-ease);
}
.xh-to-top[data-visible] { opacity: 1; visibility: visible; transform: none; }
.xh-to-top:hover { border-color: var(--xh-gold); color: var(--xh-gold-l); }

/* ---------- 分区与区头 ---------- */
.section { padding-block: clamp(48px, 7vw, 96px); }
.section--tight { padding-block: clamp(30px, 4vw, 56px); }
.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 40px);
  flex-wrap: wrap;
  margin-bottom: clamp(24px, 3vw, 42px);
}
.section__title { font-size: clamp(24px, 3vw, 34px); letter-spacing: .04em; }
.section__lede {
  max-width: 54ch;
  font-size: 15px;
  line-height: 1.85;
  color: var(--xh-stone);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--xh-gold);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--xh-gold);
  flex: none;
}
.rule { height: 0; border: 0; border-top: 1px solid var(--xh-gold-line); margin: 0; }
.hairline { border-top: 1px solid var(--xh-gold-line); }

/* ---------- Bento 栅格 ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 20px);
}
.bento__cell {
  grid-column: span 12;
  position: relative;
  min-width: 0;
  padding: clamp(20px, 2.4vw, 32px);
  background: var(--xh-ink-2);
  border: 1px solid var(--xh-gold-line);
  border-radius: 2px;
  transition: border-color .22s var(--xh-ease),
              transform .22s var(--xh-ease),
              background-color .22s var(--xh-ease);
}

/* ---------- 卡片 ---------- */
.card {
  position: relative;
  background: var(--xh-ink-2);
  border: 1px solid var(--xh-gold-line);
  border-radius: 2px;
  padding: clamp(20px, 2.4vw, 32px);
  min-width: 0;
  transition: border-color .22s var(--xh-ease),
              transform .22s var(--xh-ease),
              background-color .22s var(--xh-ease);
}
.card--glass {
  background: linear-gradient(158deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .028));
  border-color: var(--xh-glass-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 26px 64px -42px #000;
}
.card__title {
  font-family: var(--xh-font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--xh-paper);
  line-height: 1.45;
}
.card__text {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--xh-stone);
}

@media (hover: hover) {
  .card--hover:hover,
  .bento__cell--hover:hover {
    transform: translateY(-3px);
    border-color: var(--xh-gold-dim);
    background-color: var(--xh-ink-3);
  }
}

/* ---------- 编辑部索引 ---------- */
.index-list { display: flex; flex-direction: column; }
.index-list__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: baseline;
  gap: clamp(10px, 1.6vw, 22px);
  padding: 15px 4px;
  border-bottom: 1px solid rgba(200, 169, 106, .14);
  transition: border-color .22s var(--xh-ease), background-color .22s var(--xh-ease);
}
.index-list__item:hover {
  border-bottom-color: var(--xh-gold-dim);
  background: rgba(200, 169, 106, .05);
}
.index-list__num {
  font-family: var(--xh-font-mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  color: var(--xh-gold);
}
.index-list__title {
  font-family: var(--xh-font-display);
  font-size: 16px;
  letter-spacing: .05em;
  color: var(--xh-paper);
  min-width: 0;
}
.index-list__meta {
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--xh-stone);
  white-space: nowrap;
}

/* ---------- 标签 / 元信息 / 旁注 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: 5px 12px;
  font-size: 11px;
  letter-spacing: .16em;
  line-height: 1.6;
  color: var(--xh-gold-l);
  background: rgba(200, 169, 106, .08);
  border: 1px solid var(--xh-gold-dim);
  border-radius: 999px;
}
.tag--red {
  color: #F1CCC5;
  background: rgba(166, 58, 43, .30);
  border-color: rgba(166, 58, 43, .58);
}
.tag--moss {
  color: #C7D1BC;
  background: rgba(94, 107, 85, .30);
  border-color: rgba(94, 107, 85, .62);
}
.meta {
  font-size: 12.5px;
  letter-spacing: .12em;
  color: var(--xh-stone);
}
.note {
  padding: 14px 18px;
  border-left: 2px solid var(--xh-copper);
  background: rgba(184, 122, 75, .09);
  font-size: 13.5px;
  line-height: 1.9;
  color: rgba(242, 235, 221, .76);
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  letter-spacing: .08em;
  color: var(--xh-stone);
}
.breadcrumb a {
  color: rgba(242, 235, 221, .72);
  border-bottom: 1px solid transparent;
  transition: color .18s var(--xh-ease), border-color .18s var(--xh-ease);
}
.breadcrumb a:hover { color: var(--xh-gold-l); border-bottom-color: var(--xh-gold-dim); }
.breadcrumb__sep { color: rgba(200, 169, 106, .5); }
.breadcrumb [aria-current="page"] { color: var(--xh-gold); }

/* ---------- 长文 ---------- */
.prose {
  max-width: 68ch;
  font-size: 16.5px;
  line-height: 1.9;
  color: rgba(242, 235, 221, .82);
}
.prose > * + * { margin-top: 1.05em; }
.prose h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  margin-top: 2em;
  padding-top: .7em;
  border-top: 1px solid var(--xh-gold-line);
}
.prose h3 { font-size: 19px; margin-top: 1.6em; color: var(--xh-gold-l); }
.prose strong { font-weight: 600; color: var(--xh-paper); }
.prose a { color: var(--xh-gold-l); border-bottom: 1px solid var(--xh-gold-dim); }
.prose a:hover { border-bottom-color: var(--xh-gold-l); }
.prose ul { padding-left: 0; }
.prose ul li { position: relative; padding-left: 20px; }
.prose ul li + li { margin-top: .4em; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .85em;
  width: 7px;
  height: 1px;
  background: var(--xh-gold);
}
.prose ol { padding-left: 1.4em; list-style: decimal; }
.prose blockquote {
  padding: 16px 22px;
  border-left: 2px solid var(--xh-cinnabar);
  background: rgba(166, 58, 43, .09);
  font-family: var(--xh-font-display);
  font-size: 17px;
  color: rgba(242, 235, 221, .86);
}

/* ---------- 图片容器 ---------- */
.media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--xh-ink-3);
  border: 1px solid var(--xh-gold-line);
  border-radius: 2px;
}
.media img,
.media picture,
.media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media--wide { aspect-ratio: 16 / 9; }
.media--banner { aspect-ratio: 21 / 9; }
.media--square { aspect-ratio: 1 / 1; }
.media--tall { aspect-ratio: 3 / 4; }
.media--ph {
  background-color: var(--xh-ink-3);
  background-image: repeating-linear-gradient(135deg,
    rgba(200, 169, 106, .10) 0 1px,
    rgba(200, 169, 106, 0) 1px 14px);
}
.media--ph::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  text-align: center;
  font-family: var(--xh-font-display);
  font-size: 12.5px;
  letter-spacing: .3em;
  color: rgba(200, 169, 106, .55);
}
.media__caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 26px 16px 12px;
  font-size: 12px;
  letter-spacing: .08em;
  line-height: 1.7;
  color: rgba(242, 235, 221, .86);
  background: linear-gradient(180deg, rgba(14, 15, 13, 0), rgba(14, 15, 13, .88));
}
.media__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  font-size: 10.5px;
  letter-spacing: .16em;
  color: var(--xh-gold-l);
  background: rgba(14, 15, 13, .72);
  border: 1px solid var(--xh-gold-dim);
  border-radius: 2px;
}

/* ---------- 工具类 ---------- */
.stack > * + * { margin-top: 16px; }
.stack-sm > * + * { margin-top: 8px; }
.stack-lg > * + * { margin-top: 28px; }
.grid-2 {
  display: grid;
  gap: clamp(16px, 2vw, 28px);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   响应式
   ========================================================= */

@media (min-width: 900px) {
  .bento__cell--half { grid-column: span 6; }
  .bento__cell--third { grid-column: span 4; }
  .bento__cell--two-thirds { grid-column: span 8; }
  .bento__cell--focus { grid-column: span 6; grid-row: span 2; }
}

@media (max-width: 1180px) and (min-width: 1024px) {
  .xh-nav__link { padding: 9px 10px; font-size: 13.5px; letter-spacing: .06em; }
  .xh-header__cta { padding: 10px 16px; font-size: 12px; }
  .xh-brand__latin { display: none; }
}

@media (max-width: 1023px) {
  html { scroll-padding-top: 76px; }

  .xh-topbar { display: none; }

  .xh-header {
    background: rgba(14, 15, 13, .90);
    border-bottom-color: var(--xh-gold-line);
  }
  .xh-header::before { opacity: 0; }
  .xh-header.is-solid { background: rgba(14, 15, 13, .98); }

  .xh-header__inner { height: 64px; gap: 12px; }
  .xh-brand__mark { width: 36px; height: 36px; font-size: 18px; }
  .xh-brand__name { font-size: 17px; }
  .xh-brand__latin { display: none; }

  .xh-nav__toggle { display: block; }
  .xh-header__actions { display: none; }

  .xh-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    display: block;
    padding: 6px var(--xh-gutter) 24px;
    background: rgba(14, 15, 13, .985);
    border-top: 1px solid var(--xh-gold-line);
    border-bottom: 1px solid var(--xh-gold-line);
    box-shadow: 0 30px 60px -40px #000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .22s var(--xh-ease),
                transform .22s var(--xh-ease),
                visibility .22s var(--xh-ease);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
  .xh-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .xh-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .xh-nav__link {
    padding: 15px 4px;
    font-size: 15.5px;
    letter-spacing: .08em;
    border: 0;
    border-bottom: 1px solid rgba(200, 169, 106, .13);
    border-radius: 0;
  }
  .xh-nav__link::after { display: none; }
  .xh-nav__link:hover { background: rgba(200, 169, 106, .07); border-color: transparent; border-bottom-color: var(--xh-gold-dim); }
  .xh-nav__link[aria-current="page"] {
    background: transparent;
    color: var(--xh-gold);
    border-bottom-color: var(--xh-gold-dim);
  }
  .xh-nav__foot { display: block; margin-top: 18px; }

  .xh-footer__top { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .xh-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xh-footer__col--contact { grid-column: 1 / -1; }
  .xh-footer__address { max-width: none; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .media--banner { aspect-ratio: 16 / 9; }
  .section__head { align-items: flex-start; }
  .index-list__item { grid-template-columns: auto minmax(0, 1fr); row-gap: 4px; }
  .index-list__meta { grid-column: 2; }
  .xh-footer__base { flex-direction: column; align-items: flex-start; gap: 8px; }
  .xh-to-top { width: 42px; height: 42px; }
}

@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;
  }
}
