/* ═══════════════════════════════════════════════
   首页 · 荣一娱乐会馆
   作用域：.page-home
   ═══════════════════════════════════════════════ */

.page-home {
  --home-edge: rgba(108, 75, 255, 0.55);
  --home-edge-hot: rgba(53, 230, 210, 0.8);
  --home-glow: 0 0 60px rgba(108, 75, 255, 0.22);
  --home-glow-hot: 0 0 90px rgba(53, 230, 210, 0.3);
}

@keyframes home-rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── 页面上下文提示 ─────────────────────────── */

.page-home .home-context {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: clamp(18px, 3vw, 32px);
  color: var(--mist);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-home .home-context__sep {
  color: var(--gold);
}

/* ── 首屏拼贴 ───────────────────────────────── */

.page-home .home-hero {
  padding-top: 0;
}

.page-home .home-collage {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: clamp(20px, 3.5vw, 34px) 0 clamp(56px, 8vw, 104px);
}

.page-home .home-focus {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(360px, 62vw, 520px);
  padding: clamp(24px, 4vw, 48px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--night);
  isolation: isolate;
  animation: home-rise 460ms var(--ease) both;
}

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

.page-home .home-focus::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 6, 14, 0.18) 0%, rgba(5, 6, 14, 0.6) 48%, rgba(5, 6, 14, 0.95) 100%),
    linear-gradient(115deg, rgba(108, 75, 255, 0.32), rgba(53, 230, 210, 0.1) 58%, transparent);
}

.page-home .home-focus::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px var(--home-edge), var(--home-glow);
  transition: box-shadow var(--dur-slow) var(--ease);
}

.page-home .home-focus:hover::after,
.page-home .home-focus:focus-within::after {
  box-shadow: inset 0 0 0 1px var(--home-edge-hot), var(--home-glow-hot);
}

.page-home .home-focus__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  max-width: 46ch;
}

.page-home .home-focus__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.85rem, 5.2vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: 0.006em;
  color: var(--ivory);
}

.page-home .home-focus__lede {
  margin: 0;
  font-size: var(--fs-16);
  line-height: 1.75;
  color: var(--mist);
}

/* ── 首屏右侧两块信息段 ─────────────────────── */

.page-home .home-side {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
}

.page-home .home-side__item {
  flex: 0 0 78%;
  min-width: 232px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 24px;
  border-radius: var(--radius-md);
  background: var(--night);
  animation: home-rise 460ms var(--ease) both;
}

.page-home .home-side__item--contact {
  background: var(--steel);
  box-shadow: inset 0 0 0 1px rgba(108, 75, 255, 0.35);
  animation-delay: 60ms;
}

.page-home .home-side__index {
  margin: 0;
  color: var(--gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-home .home-side__title {
  margin: 0;
  font-size: var(--fs-20);
  font-weight: 700;
  line-height: 1.35;
  color: var(--ivory);
}

.page-home .home-side__text {
  margin: 0;
  flex: 1 1 auto;
  font-size: var(--fs-14);
  line-height: 1.75;
  color: var(--mist);
}

/* ── 平台在做什么 ───────────────────────────── */

.page-home .home-what__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  align-items: start;
}

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

.page-home .home-facts li {
  display: grid;
  grid-template-columns: minmax(6ch, auto) 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 20px 0;
  border-top: 1px solid var(--ember);
}

.page-home .home-facts li:last-child {
  border-bottom: 1px solid var(--ember);
}

.page-home .home-facts__num {
  font-family: var(--mono);
  font-size: var(--fs-20);
  letter-spacing: 0.06em;
  color: var(--cyan);
  white-space: nowrap;
}

.page-home .home-facts__text {
  font-size: var(--fs-14);
  line-height: 1.75;
  color: var(--mist);
}

/* ── 厂商列表与分类 ─────────────────────────── */

.page-home .home-vendors__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: center;
}

.page-home .home-vendors__media {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-home .home-vendors__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: inset 0 0 0 1px var(--ember);
}

.page-home .home-vendors__caption {
  color: var(--mist);
  letter-spacing: 0.08em;
}

.page-home .home-vendors__body p {
  margin: 0 0 18px;
  line-height: 1.75;
  color: var(--mist);
}

.page-home .home-vendors__body .section-title {
  margin-bottom: 24px;
}

.page-home .home-vendors__body .btn {
  margin-top: 8px;
}

/* ── 斜向装饰线 ─────────────────────────────── */

.page-home .home-slash {
  display: block;
  width: min(320px, 64%);
  height: auto;
  margin: clamp(30px, 5vw, 56px) 0;
  overflow: visible;
}

/* ── 双语命名与海外业务 ─────────────────────── */

.page-home .home-naming__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: center;
}

.page-home .home-naming__body p {
  margin: 0 0 18px;
  line-height: 1.75;
  color: var(--mist);
}

.page-home .home-naming__body .section-title {
  margin-bottom: 24px;
}

.page-home .home-naming__body .btn {
  margin-top: 8px;
}

.page-home .home-naming__media {
  margin: 0;
}

.page-home .home-naming__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

/* ── 运营节奏带 ─────────────────────────────── */

.page-home .home-cadence__track {
  margin-top: clamp(28px, 4vw, 46px);
}

.page-home .home-cadence__segmented {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ember);
}

.page-home .home-cadence__segmented .segmented__btn {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--mist);
  font-family: var(--sans);
  font-size: var(--fs-16);
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}

.page-home .home-cadence__segmented .segmented__btn:hover {
  color: var(--ivory);
}

.page-home .home-cadence__segmented .segmented__btn[aria-selected="true"] {
  color: var(--ivory);
  background: rgba(108, 75, 255, 0.18);
  box-shadow: inset 0 0 0 1px var(--home-edge);
}

.page-home .home-cadence__panels {
  padding-top: 28px;
}

.page-home .home-cadence__panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 62ch;
}

.page-home .home-cadence__panel p {
  margin: 0;
  line-height: 1.75;
  color: var(--mist);
}

.page-home .home-cadence__link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--fs-14);
  letter-spacing: 0.04em;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(53, 230, 210, 0.4);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.page-home .home-cadence__link:hover {
  color: var(--ivory);
  border-color: var(--gold);
}

/* ── 城市氛围横幅 ───────────────────────────── */

.page-home .home-skyline {
  position: relative;
  margin: 0;
  overflow: hidden;
}

.page-home .home-skyline img {
  display: block;
  width: 100%;
  height: clamp(170px, 26vw, 300px);
  object-fit: cover;
  opacity: 0.86;
}

.page-home .home-skyline::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, var(--ink) 0%, rgba(5, 6, 14, 0) 32%,
                              rgba(5, 6, 14, 0) 68%, var(--ink) 100%);
}

/* ── 下一步去向 ─────────────────────────────── */

.page-home .home-next__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: clamp(26px, 4vw, 42px);
}

.page-home .home-next__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 180px;
  padding: 26px 24px;
  border-radius: var(--radius-md);
  background: linear-gradient(158deg, var(--night) 0%, var(--ink) 100%);
  color: var(--ivory);
  text-decoration: none;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--ember);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.page-home .home-next__card::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--neon), var(--cyan));
  opacity: 0.35;
  transition: opacity var(--dur) var(--ease);
}

.page-home .home-next__card:hover,
.page-home .home-next__card:focus-visible {
  transform: scale(1.03);
  box-shadow: inset 0 0 0 1px var(--home-edge), var(--home-glow);
}

.page-home .home-next__card:hover::after,
.page-home .home-next__card:focus-visible::after {
  opacity: 1;
}

.page-home .home-next__label {
  color: var(--gold);
  letter-spacing: 0.14em;
}

.page-home .home-next__name {
  font-size: var(--fs-20);
  font-weight: 700;
  line-height: 1.3;
}

.page-home .home-next__desc {
  font-size: var(--fs-14);
  line-height: 1.7;
  color: var(--mist);
}

/* ── 响应式：桌面端非对称拼贴 ───────────────── */

@media (min-width: 900px) {
  .page-home .home-collage {
    grid-template-columns: 62fr 38fr;
    gap: 22px;
    align-items: stretch;
  }

  .page-home .home-side {
    flex-direction: column;
    overflow: visible;
    gap: 20px;
    padding-bottom: 0;
  }

  .page-home .home-side__item {
    flex: 1 1 auto;
    min-width: 0;
  }

  .page-home .home-what__grid {
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 84px);
  }

  .page-home .home-vendors__grid {
    grid-template-columns: 42fr 58fr;
    gap: clamp(36px, 5vw, 68px);
  }

  .page-home .home-naming__grid {
    grid-template-columns: 1fr 1fr;
    gap: clamp(36px, 5vw, 72px);
  }
}

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

@media (min-width: 1100px) {
  .page-home .home-next__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1180px) {
  .page-home .home-focus__body {
    max-width: 52ch;
  }
}

/* ── 动效降级 ───────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .page-home .home-focus,
  .page-home .home-side__item {
    animation: none;
  }

  .page-home .home-next__card,
  .page-home .home-focus::after,
  .page-home .home-next__card::after {
    transition: none;
  }

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