/* ===== 澳门十大娱乐会馆 · 首页（page-home）===== */

.page-home {
  --hm-gap: clamp(1.25rem, 3vw, 2.5rem);
  position: relative;
  overflow-x: clip;
  color: var(--mist);
}

.page-home a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ---------- 刊头 · 版本状态 ---------- */

.page-home .hm-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(2.25rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(110% 80% at 82% 8%, rgba(168, 85, 247, 0.24), transparent 62%),
    radial-gradient(90% 70% at 8% 96%, rgba(212, 175, 55, 0.14), transparent 66%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-3) 58%, var(--ink) 100%);
}

.page-home .hm-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.32;
}

.page-home .hm-hero__bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 88%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 88%);
}

.page-home .hm-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--hairline) 1px, transparent 1px),
    linear-gradient(to bottom, var(--hairline) 1px, transparent 1px);
  background-size: 88px 88px;
  -webkit-mask-image: radial-gradient(130% 110% at 50% 0%, #000 20%, transparent 80%);
  mask-image: radial-gradient(130% 110% at 50% 0%, #000 20%, transparent 80%);
}

.page-home .hm-hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 3rem);
}

.page-home .hm-coord {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--silver);
  text-transform: uppercase;
}

.page-home .hm-coord::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold);
}

.page-home .hm-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.4rem, 8.4vw, 5rem);
  line-height: 1.06;
  letter-spacing: 0.03em;
  color: var(--mist);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .page-home .hm-title {
    background-image: linear-gradient(104deg, #F4EBD5 0%, var(--gold) 40%, #A9822A 64%, #F7EDD2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.page-home .hm-sub {
  margin: 0.85rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.2vw, 1.32rem);
  letter-spacing: 0.08em;
  color: var(--violet);
}

.page-home .hm-lede {
  margin: 1.35rem 0 0;
  max-width: 50ch;
  line-height: 1.9;
  color: var(--mist);
}

.page-home .hm-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.6rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.page-home .hm-facts li {
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--hairline-2);
  border-radius: var(--radius-pill);
  background: var(--glass);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--silver);
}

.page-home .hm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

/* 版本状态卡 */

.page-home .hm-version {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(1.35rem, 3vw, 2rem);
  border: 1px solid var(--hairline-gold);
  border-radius: var(--radius);
  background: linear-gradient(158deg, var(--glass-strong), var(--glass) 60%, rgba(26, 11, 46, 0.55));
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 28px 64px -34px rgba(26, 11, 46, 0.95);
}

.page-home .hm-version__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.34;
}

.page-home .hm-version__bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .hm-version > *:not(.hm-version__bg) {
  position: relative;
  z-index: 1;
}

.page-home .hm-version__label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  color: var(--gold);
}

.page-home .hm-version__num {
  margin: 0.4rem 0 0;
  font-family: var(--font-mono);
  font-size: clamp(3rem, 9vw, 4.4rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--gold);
}

.page-home .hm-version__name {
  margin: 0.35rem 0 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  color: var(--mist);
}

.page-home .hm-version__list {
  margin: 1.3rem 0 0;
  display: grid;
  gap: 0.55rem;
}

.page-home .hm-version__list > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.82rem;
  line-height: 1.6;
}

.page-home .hm-version__list dt {
  color: var(--silver);
  white-space: nowrap;
}

.page-home .hm-version__list dd {
  margin: 0;
  text-align: right;
  color: var(--mist);
}

.page-home .hm-version__foot {
  margin: 1.4rem 0 0;
  font-size: 0.85rem;
}

.page-home .hm-version__foot a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline-cyan);
  padding-bottom: 2px;
}

/* ---------- 区块公共节奏 ---------- */

.page-home .section {
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.page-home .hm-head {
  max-width: 64ch;
}

.page-home .hm-head .eyebrow {
  color: var(--silver);
}

.page-home .hm-h2 {
  margin: 0.6rem 0 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.65rem, 4vw, 2.5rem);
  line-height: 1.18;
  letter-spacing: 0.02em;
  color: var(--mist);
}

.page-home .hm-intro {
  margin: 1rem 0 0;
  max-width: 62ch;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--silver);
}

/* ---------- 栏目目录索引 ---------- */

.page-home .hm-index {
  background: linear-gradient(180deg, transparent 0%, rgba(17, 18, 20, 0.5) 30%, transparent 100%);
}

.page-home .hm-index__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--hm-gap);
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
}

.page-home .hm-entries {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .hm-entry {
  position: relative;
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr) 1.2rem;
  gap: 0.85rem;
  align-items: start;
  padding: 1.2rem 0.75rem 1.2rem 0.5rem;
  border-top: 1px solid var(--hairline);
  text-decoration: none;
  color: inherit;
  transition: background var(--dur) var(--ease);
}

.page-home .hm-entries li:last-child .hm-entry {
  border-bottom: 1px solid var(--hairline);
}

.page-home .hm-entry::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-sm);
  background: radial-gradient(220px 110px at 24% 50%, var(--spot), transparent 72%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
  pointer-events: none;
}

.page-home .hm-entry:hover::before,
.page-home .hm-entry:focus-visible::before {
  opacity: 1;
}

.page-home .hm-entry__idx {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--gold);
  padding-top: 0.35rem;
}

.page-home .hm-entry__body {
  display: block;
  min-width: 0;
}

.page-home .hm-entry__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.35;
  color: var(--mist);
  transition: color var(--dur) var(--ease);
}

.page-home .hm-entry__desc {
  display: block;
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--silver);
}

.page-home .hm-entry__arrow {
  justify-self: end;
  padding-top: 0.3rem;
  color: var(--silver);
  font-size: 1rem;
  transition: transform var(--dur) var(--ease), color var(--dur) var(--ease);
}

.page-home .hm-entry:hover .hm-entry__title,
.page-home .hm-entry:focus-visible .hm-entry__title {
  color: var(--violet);
}

.page-home .hm-entry:hover .hm-entry__arrow,
.page-home .hm-entry:focus-visible .hm-entry__arrow {
  transform: translateX(4px);
  color: var(--gold);
}

/* 侧栏悬浮卡 */

.page-home .hm-aside {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.page-home .hm-aside__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.page-home .hm-aside__body {
  padding: 1.2rem 1.25rem 1.5rem;
}

.page-home .hm-aside__title {
  margin: 0.6rem 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.1rem;
  line-height: 1.4;
  color: var(--mist);
}

.page-home .hm-aside__text {
  margin: 0.55rem 0 0;
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--silver);
}

/* ---------- 最新维护记录 ---------- */

.page-home .hm-log {
  background:
    radial-gradient(80% 60% at 88% 12%, rgba(45, 212, 191, 0.09), transparent 62%),
    linear-gradient(180deg, transparent, rgba(26, 11, 46, 0.42) 55%, transparent);
}

.page-home .hm-timeline {
  margin: clamp(1.75rem, 4vw, 2.75rem) 0 0;
  padding: 0 0 0 1.4rem;
  list-style: none;
  border-left: 1px solid var(--hairline-gold);
}

.page-home .hm-tl {
  position: relative;
  padding-bottom: 1.9rem;
}

.page-home .hm-tl:last-child {
  padding-bottom: 0;
}

.page-home .hm-tl::before {
  content: "";
  position: absolute;
  left: calc(-1.4rem - 4.5px);
  top: 0.55rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.14);
}

.page-home .hm-tl__time {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--gold);
}

.page-home .hm-tl__title {
  margin: 0.45rem 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  line-height: 1.4;
  color: var(--mist);
}

.page-home .hm-tl__text {
  margin: 0.5rem 0 0;
  max-width: 62ch;
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--silver);
}

.page-home .hm-log__more {
  margin: 2rem 0 0;
}

/* ---------- 快速进入路径 ---------- */

.page-home .hm-path-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--hm-gap);
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
}

.page-home .hm-path {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: clamp(1.2rem, 2.6vw, 1.75rem);
  border: 1px solid var(--hairline-2);
  border-radius: var(--radius);
  background: linear-gradient(155deg, var(--glass), rgba(255, 255, 255, 0.02) 72%);
  text-decoration: none;
  color: inherit;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.page-home .hm-path:hover,
.page-home .hm-path:focus-visible {
  transform: translateY(-4px);
  border-color: var(--hairline-gold);
  box-shadow: 0 24px 50px -30px rgba(168, 85, 247, 0.8);
}

.page-home .hm-path__kicker {
  align-self: flex-start;
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--hairline-cyan);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--cyan);
}

.page-home .hm-path__title {
  margin: 0.2rem 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
  line-height: 1.35;
  color: var(--mist);
}

.page-home .hm-path__text {
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--silver);
}

.page-home .hm-path__go {
  margin-top: auto;
  padding-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--gold);
}

/* ---------- 纯简入口使用说明 ---------- */

.page-home .hm-ways__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--hm-gap);
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
}

.page-home .hm-way {
  position: relative;
  overflow: hidden;
  padding: clamp(1.3rem, 2.6vw, 1.9rem);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--glass-strong), var(--glass) 70%);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.page-home .hm-way::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -35%;
  width: 65%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.26), transparent 65%);
  pointer-events: none;
}

.page-home .hm-way > * {
  position: relative;
  z-index: 1;
}

.page-home .hm-way__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--hairline-gold);
  border-radius: 50%;
  color: var(--gold);
  background: rgba(212, 175, 55, 0.06);
}

.page-home .hm-way__title {
  margin: 1rem 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.08rem, 2.2vw, 1.32rem);
  line-height: 1.4;
  color: var(--mist);
}

.page-home .hm-way__text {
  margin: 0.65rem 0 0;
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--silver);
}

/* ---------- 夜色收束带 ---------- */

.page-home .hm-strip {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-items: end;
  min-height: clamp(14rem, 30vw, 22rem);
  margin-top: clamp(2rem, 5vw, 4rem);
}

.page-home .hm-strip__img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.page-home .hm-strip::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, var(--ink) 0%, rgba(11, 31, 26, 0.42) 42%, var(--ink-2) 100%);
}

.page-home .hm-strip__inner {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(1.6rem, 4vw, 2.6rem);
}

.page-home .hm-strip__inner .eyebrow {
  color: var(--gold);
}

.page-home .hm-strip__text {
  margin: 0.7rem 0 0;
  max-width: 48ch;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  line-height: 1.7;
  color: var(--mist);
}

/* ---------- 断点 ---------- */

@media (min-width: 700px) {
  .page-home .hm-path-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 880px) {
  .page-home .hm-ways__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }

  .page-home .hm-way:nth-child(2) {
    margin-top: 2rem;
  }

  .page-home .hm-way:nth-child(3) {
    margin-top: 4rem;
  }
}

@media (min-width: 960px) {
  .page-home .hm-hero__grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.85fr);
    align-items: end;
  }
}

@media (min-width: 1024px) {
  .page-home .hm-index__grid {
    grid-template-columns: minmax(0, 1.62fr) minmax(0, 0.72fr);
    align-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hm-path,
  .page-home .hm-entry,
  .page-home .hm-entry__arrow,
  .page-home .hm-entry__title {
    transition: none;
  }

  .page-home .hm-path:hover,
  .page-home .hm-path:focus-visible {
    transform: none;
  }

  .page-home .hm-entry:hover .hm-entry__arrow,
  .page-home .hm-entry:focus-visible .hm-entry__arrow {
    transform: none;
  }
}
