﻿/* 首页：紫金 · 三图并排 · 三入口 */
:root {
  --ink: #f3e9d2;
  --dim: #a99bb5;
  --faint: #6f6178;
  --gold: #d4af37;
  --gold-l: #f2d98d;
  --purple: #6b3fa0;
  --purple-l: #a67ce0;
  --bg: #0d0714;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "SimSun", serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", sans-serif;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}

[hidden] { display: none !important; }

/* ---------- 舞台 ---------- */
.stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(90% 55% at 18% 8%, rgba(124, 74, 196, .55) 0%, rgba(124, 74, 196, 0) 62%),
    radial-gradient(85% 60% at 88% 18%, rgba(190, 90, 140, .38) 0%, rgba(190, 90, 140, 0) 65%),
    radial-gradient(120% 80% at 50% 108%, rgba(212, 175, 55, .22) 0%, rgba(212, 175, 55, 0) 60%),
    linear-gradient(165deg, #2b1440 0%, #1a0d28 34%, #100819 64%, #09050f 100%);
}

/* 三团缓慢漂浮的光斑，让底色不“死” */
.glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .55;
  z-index: 1;
}

.g1 {
  width: 70vw; height: 70vw;
  left: -22vw; top: -18vw;
  background: radial-gradient(circle, rgba(138, 84, 214, .55) 0%, rgba(138, 84, 214, 0) 68%);
  animation: drift1 18s ease-in-out infinite alternate;
}

.g2 {
  width: 62vw; height: 62vw;
  right: -20vw; top: 26vh;
  background: radial-gradient(circle, rgba(206, 96, 148, .40) 0%, rgba(206, 96, 148, 0) 70%);
  animation: drift2 22s ease-in-out infinite alternate;
}

.g3 {
  width: 90vw; height: 46vw;
  left: 5vw; bottom: -12vh;
  background: radial-gradient(circle, rgba(212, 175, 55, .16) 0%, rgba(212, 175, 55, 0) 70%);
  animation: drift3 26s ease-in-out infinite alternate;
}

@keyframes drift1 {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(6vw, 4vh, 0) scale(1.12); }
}

@keyframes drift2 {
  from { transform: translate3d(0, 0, 0) scale(1.08); }
  to   { transform: translate3d(-7vw, -5vh, 0) scale(1); }
}

@keyframes drift3 {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(4vw, -4vh, 0) scale(1.1); }
}

/* 一层很淡的颗粒，去掉塑料感 */
.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: .055;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/></filter><rect width='120' height='120' filter='url(%23n)'/></svg>");
}

@media (prefers-reduced-motion: reduce) {
  .glow { animation: none; }
}

/* ---------- 三图 ---------- */
.collage {
  position: relative;
  z-index: 3;
  display: flex;
  gap: 2px;
  height: 63vh;
  width: calc(100% + 30px);
  margin-left: -15px;
  margin-top: -2vh;
}

.pic {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 62%, rgba(0, 0, 0, .55) 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 62%, rgba(0, 0, 0, .55) 80%, transparent 100%);
}

.pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.05);
  filter: saturate(.95) contrast(1.07) brightness(1.04);
}

/* 每条线取景不同，脸别被切 */
.p1 img { object-position: 72% 32%; }
.p2 img { object-position: center 6%; }
.p2 { transform: translateY(-1.2%) scale(1.02); z-index: 2; }
.p3 img { object-position: center 14%; }

/* 图片底部的紫金渐变，让画面下沉 */
.pic::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom,
    rgba(10, 4, 16, .20) 0%,
    rgba(10, 4, 16, 0) 30%,
    rgba(10, 4, 16, .28) 72%,
    rgba(10, 4, 16, 0) 100%);
}

/* ---------- 标题 ---------- */
.title-box {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 18px 20px 0;
  margin-top: -2px;
}

.orn {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: .3em;
  color: rgba(212, 175, 55, .8);
}

.title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(38px, 12.5vw, 54px);
  font-weight: 700;
  letter-spacing: .2em;
  text-indent: .2em;
  background: linear-gradient(180deg, #fff8e2 0%, var(--gold-l) 34%, var(--gold) 64%, #8a691f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 14px rgba(212, 175, 55, .5)) drop-shadow(0 0 34px rgba(107, 63, 160, .7));
}

.sub {
  margin: 10px 0 0;
  font-size: 11px;
  letter-spacing: .2em;
  color: rgba(243, 233, 210, .5);
}

/* ---------- 三个入口 ---------- */
.entries {
  position: relative;
  z-index: 3;
  margin-top: auto;
  display: flex;
  gap: 9px;
  padding: 0 12px 10px;
}

.entry {
  flex: 1 1 0;
  min-width: 0;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 6px 13px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, .32);
  background: linear-gradient(180deg, rgba(46, 22, 64, .82), rgba(15, 9, 22, .9));
  box-shadow: 0 10px 26px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 240, 200, .12);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.entry:active {
  transform: translateY(2px);
  border-color: var(--gold);
  box-shadow: 0 5px 16px rgba(0, 0, 0, .5), 0 0 18px rgba(212, 175, 55, .35);
}

.entry .num {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--gold);
  opacity: .9;
}

.entry .txt {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  text-align: center;
  line-height: 1.45;
  color: #f6ecd6;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .6);
}

.e2 { border-color: rgba(166, 124, 224, .45); }
.e2 .num { color: var(--purple-l); }
.e3 { border-color: rgba(224, 124, 170, .38); }
.e3 .num { color: #e08fae; }

/* ---------- 页脚 ---------- */
footer {
  position: relative;
  z-index: 3;
  padding: 0 12px calc(10px + env(safe-area-inset-bottom));
  text-align: center;
  font-size: 9px;
  letter-spacing: .1em;
  color: rgba(169, 155, 181, .5);
}

/* ---------- 门禁 ---------- */
.gate {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(8, 4, 12, .94);
  backdrop-filter: blur(8px);
}

.gatebox {
  width: 100%;
  max-width: 400px;
  padding: 30px 24px 26px;
  border-radius: 20px;
  background: linear-gradient(180deg, #1b0f26, #120a1a);
  border: 1px solid rgba(212, 175, 55, .34);
  box-shadow: 0 26px 60px rgba(0, 0, 0, .7), 0 0 40px rgba(107, 63, 160, .25);
  text-align: center;
  position: relative;
}

.gatebox::before {
  content: "✦";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #1b0f26;
  padding: 0 12px;
  color: var(--gold);
  font-size: 16px;
}

.gatebox .k {
  display: block;
  font-size: 11px;
  letter-spacing: .34em;
  color: var(--gold);
  margin-bottom: 14px;
}

.gatebox h2 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: .08em;
}

.gatebox p {
  margin: 0 0 22px;
  font-size: 13px;
  line-height: 2;
  color: var(--dim);
  text-align: left;
}

.btn {
  appearance: none;
  border: 1px solid rgba(212, 175, 55, .6);
  background: linear-gradient(180deg, #e8c96f, #b8912c);
  color: #241708;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .12em;
  padding: 12px 30px;
  border-radius: 999px;
  cursor: pointer;
  min-height: 44px;
  box-shadow: 0 10px 26px rgba(184, 145, 44, .3);
}

.btn:active { transform: translateY(1px); }

/* 电脑上：居中成一块手机屏，别拉满 */
@media (min-width: 720px) {
  html, body { background: #05030a; }
  .stage {
    max-width: 430px; margin: 0 auto;
    border-left: 1px solid rgba(212, 175, 55, .12);
    border-right: 1px solid rgba(212, 175, 55, .12);
    box-shadow: 0 0 90px rgba(0, 0, 0, .9);
  }
  .collage { height: 60vh; }
}

@media (min-height: 780px) {
  .collage { height: 60vh; }
  .title { font-size: clamp(42px, 13vw, 58px); }
}
