/* ═══════════════════════════════════════════════
   VAS · Home v2 · Shrine（首屏扉頁）
   一只發光的瓶子在幾乎全黑的房間裡 · 四道門在下
   ═══════════════════════════════════════════════ */

/* ─── 房間的紫漸層氣場 ──────────────────── */
.shrine { position: relative; }
.shrine::before {
  content: '';
  position: absolute;
  inset: -10% -5% -10% 20%;
  background:
    radial-gradient(ellipse 70% 65% at 62% 52%,
      rgba(196, 113, 245, 0.18) 0%,
      rgba(196, 113, 245, 0.10) 25%,
      rgba(79, 172, 254, 0.08) 50%,
      rgba(79, 172, 254, 0.03) 68%,
      transparent 80%);
  filter: blur(70px);
  animation: shrine-room 10s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
.shrine::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 18% 25%,
      rgba(196, 113, 245, 0.06) 0%,
      transparent 60%);
  pointer-events: none;
  z-index: 0;
}
@keyframes shrine-room {
  0%, 100% { opacity: 0.9; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.04); }
}
.shrine > * { position: relative; z-index: 1; }

.shrine {
  padding: 48px 48px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 0;
}

/* ─── 左上：題辭 ────────────────────────── */
.shrine-prose {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  align-self: end;
  padding: 60px 24px 60px 0;
  max-width: 20ch;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.shrine-prose .mark {
  font-family: var(--vas-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--vas-ash-3);
  margin-bottom: 40px;
}
.shrine-name {
  font-family: var(--vas-serif);
  font-weight: 300;
  font-size: clamp(64px, 8vw, 112px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--vas-ash-0);
  margin-bottom: 32px;
}
.shrine-name em {
  font-style: normal;
  font-weight: 500;
}
.shrine-tagline {
  font-family: var(--vas-serif);
  font-size: 17px;
  line-height: 1.9;
  color: var(--vas-ash-1);
  max-width: 24ch;
  text-wrap: pretty;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* ─── 右下：器物 · 偏移擺放 ──────────────── */
.shrine-vessel {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 40px;
  min-height: 380px;
}
.shrine-vessel .halo {
  position: absolute;
  width: 70%; height: 70%;
  top: 15%; left: 15%;
  background: radial-gradient(circle,
    rgba(196, 113, 245, 0.28) 0%,
    rgba(250, 113, 205, 0.15) 40%,
    transparent 70%);
  filter: blur(40px);
  animation: shrine-halo 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes shrine-halo {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.08); }
}
.shrine-vessel img {
  position: relative;
  z-index: 2;
  width: 58%;
  max-width: 400px;
  filter: drop-shadow(0 30px 60px rgba(196, 113, 245, 0.4));
}

/* ─── 器物下方的倒影座 ──────────────────── */
.shrine-vessel .base {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  width: 44%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--vas-ash-3) 50%,
    transparent 100%);
}

/* ─── 器物旁的匠人落款 ──────────────────── */
.shrine-vessel .shrine-colophon {
  position: absolute;
  left: 0; bottom: 8px;
  font-family: var(--vas-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--vas-ash-3);
  text-align: left;
  line-height: 1.9;
  z-index: 5;
}
.shrine-vessel .shrine-colophon .faint { color: var(--vas-ash-4); }

/* ─── 底部：四道門 · 縫隙不是按鈕 ────────── */
.shrine-gates {
  grid-column: 1 / -1;
  grid-row: 2 / 3;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--vas-rule);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.shrine-gate {
  position: relative;
  padding: 28px 24px 12px;
  border-right: 1px solid var(--vas-rule);
  transition: background .4s;
  cursor: pointer;
}
.shrine-gate:last-child { border-right: none; }
.shrine-gate::before {
  content: '';
  position: absolute; left: 0; top: -1px;
  width: 0; height: 1px;
  background: var(--vas-aurora-violet);
  transition: width .6s cubic-bezier(.2, .8, .2, 1);
}
.shrine-gate:hover::before { width: 100%; }
.shrine-gate:hover { background: rgba(240, 232, 220, 0.02); }

.shrine-gate .num {
  font-family: var(--vas-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--vas-ash-1);
  margin-bottom: 18px;
  transition: color .3s;
}
.shrine-gate:hover .num { color: var(--vas-aurora-violet); }
.shrine-gate-body {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.shrine-gate .name {
  font-family: var(--vas-serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--vas-ash-0);
  letter-spacing: 0.02em;
  transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}
.shrine-gate:hover .name { transform: translateX(2px); }
.shrine-gate .echo {
  font-family: var(--vas-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--vas-ash-4);
  text-align: right;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color .3s;
}
.shrine-gate:hover .echo { color: var(--vas-ash-2); }

/* ─── 第三道門 · 隱晦光點 · III 系統 ────── */
.shrine-gate.hidden-door .name::after {
  content: '';
  display: inline-block;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--vas-aurora-violet);
  margin-left: 8px;
  vertical-align: middle;
  opacity: 0.4;
  transition: opacity .4s;
}
.shrine-gate.hidden-door:hover .name::after { opacity: 1; }

/* ─── 行動斷點 ────────────────────────── */
@media (max-width: 768px) {
  .shrine {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 20px 24px 32px;
  }
  .shrine-prose {
    grid-column: 1; grid-row: 1;
    max-width: none; min-height: auto;
    padding: 4px 0 20px;
    justify-content: flex-start;
  }
  .shrine-prose .mark { margin-bottom: 20px; }
  .shrine-vessel {
    grid-column: 1; grid-row: 2;
    min-height: auto;
    margin-top: 15px;
    padding-bottom: 64px;
    align-items: flex-end;
    justify-content: flex-end;
  }
  .shrine-vessel img { width: 58%; }
  .shrine-gates  { grid-template-columns: 1fr 1fr; grid-row: 3; }
  .shrine-gate   { border-bottom: 1px solid var(--vas-rule); }
  .shrine-gate:nth-child(2) { border-right: none; }
  .shrine-gate:nth-last-child(-n+2) { border-bottom: none; }
  .shrine-vessel .shrine-colophon { left: 0; right: auto; bottom: 8px; }
  .shrine-gate-body { flex-direction: column; gap: 4px; }
  .shrine-gate .echo { text-align: left; white-space: normal; }
}
