/* ============ 地书 · 浅色冰川 ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #eef4fa;
  --bg2: #e3ecf6;
  --ink: #1d2a3a;
  --ink-dim: #5d7288;
  --ink-faint: #9db0c4;
  --accent: #2f7fd4;
  --accent-soft: rgba(47, 127, 212, .16);
  --line: rgba(60, 100, 150, .14);
  --serif: "Songti SC", "Noto Serif SC", "STSong", serif;
  --sans: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

html, body {
  height: 100%;
  overflow: hidden;
  background:
    linear-gradient(180deg, #f4f8fc 0%, #e9f1f9 45%, #dde9f4 100%);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

/* ---------- 背景画布与光 ---------- */
#field {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}
.glow {
  position: fixed;
  width: 300px; height: 300px;
  left: 0; top: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(120, 175, 230, .12) 0%, rgba(120,175,230,.04) 45%, transparent 70%);
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
}

/* ---------- 侧边指示 ---------- */
.rail {
  position: fixed;
  right: 26px; top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 22px;
  z-index: 40;
}
.rail a { display: block; padding: 4px; }
.rail a i {
  display: block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink-faint);
  transition: all .45s cubic-bezier(.2,.8,.2,1);
}
.rail a.on i {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(47,127,212,.35);
  height: 20px;
  border-radius: 3px;
  opacity: .85;
}

/* ---------- 分页容器 ---------- */
#pages {
  position: relative;
  z-index: 2;
  height: 100dvh;
  transition: transform 1s cubic-bezier(.76, 0, .18, 1);
  will-change: transform;
}
.page {
  height: 100dvh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(20px, 6vw, 90px);
  overflow: hidden;
}
.page::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: min(720px, 76vw); height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 30%, rgba(47,127,212,.35) 50%, var(--line) 70%, transparent);
}
.page.cover::before { display: none; }

/* ============ 第一面 · 封面 ============ */
/* 极光 */
.aurora {
  position: absolute;
  left: -20%; right: -20%; top: -10%;
  height: 70%;
  pointer-events: none;
  background:
    radial-gradient(60% 55% at 30% 20%, rgba(120, 200, 235, .22), transparent 62%),
    radial-gradient(55% 60% at 72% 12%, rgba(150, 170, 235, .20), transparent 60%),
    radial-gradient(50% 50% at 50% 0%, rgba(190, 225, 245, .28), transparent 70%);
  filter: blur(14px);
  opacity: .9;
  animation: auroraShift 16s ease-in-out infinite alternate;
}
@keyframes auroraShift {
  0%   { transform: translateX(-2%) scale(1); opacity: .8; }
  50%  { transform: translateX(3%)  scale(1.05); opacity: 1; }
  100% { transform: translateX(-1%) scale(1.02); opacity: .85; }
}

/* 远中近雪山 */
.peaks {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: min(46vh, 440px);
  pointer-events: none;
  overflow: hidden;
}
.peakset {
  position: absolute;
  left: -4%; bottom: 0;
  width: 108%; height: 100%;
}
.layer { will-change: transform; }
.l-far  { opacity: .85; }
.l-mid  { opacity: .95; }
.l-near { opacity: 1; }

/* 飘雾 */
.mist {
  position: absolute;
  left: -30%; width: 160%;
  height: 90px;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(244,250,255,.75), rgba(255,255,255,0));
  filter: blur(10px);
  border-radius: 50%;
}
.mist.m1 { bottom: 30%; animation: drift 26s linear infinite; opacity: .7; }
.mist.m2 { bottom: 14%; height: 70px; animation: drift 34s linear infinite reverse; opacity: .55; }
@keyframes drift {
  from { transform: translateX(-8%); }
  to   { transform: translateX(8%); }
}

/* 楚凤印记 */
.phoenix {
  position: absolute;
  top: 10%; left: 50%;
  width: clamp(150px, 20vw, 230px);
  height: auto;
  transform: translateX(-50%);
  color: rgba(70, 120, 170, .16);
  pointer-events: none;
  animation: phoenixFloat 9s ease-in-out infinite;
  filter: drop-shadow(0 4px 18px rgba(120, 170, 220, .12));
}
@keyframes phoenixFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-10px); }
}

.cover-inner {
  text-align: center;
  will-change: transform;
  position: relative;
  z-index: 2;
  transform: translateY(-9vh);
}
.cover-inner::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 150%; height: 220%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(244, 250, 255, .82), rgba(244,250,255,.4) 45%, transparent 72%);
  z-index: -1;
  pointer-events: none;
}
.cover-eyebrow {
  font-size: 11px;
  letter-spacing: .55em;
  text-indent: .55em;
  color: var(--ink-dim);
  margin-bottom: 3.2vh;
  opacity: 0;
  animation: rise 1.2s .2s cubic-bezier(.2,.8,.2,1) forwards;
}
.cover-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(88px, 17vw, 220px);
  line-height: 1;
  letter-spacing: .08em;
  display: flex;
  justify-content: center;
  gap: .12em;
}
.cover-title span {
  position: relative;
  color: transparent;
  background: linear-gradient(175deg, #33475e 10%, #5b7291 55%, #8fa9c4 96%);
  -webkit-background-clip: text;
  background-clip: text;
  opacity: 0;
  animation: charIn 1.4s cubic-bezier(.2,.85,.25,1) forwards;
  cursor: default;
  transition: filter .5s;
}
.cover-title span:nth-child(1) { animation-delay: .35s; }
.cover-title span:nth-child(2) { animation-delay: .55s; }
.cover-title span::after {
  content: attr(data-t);
  position: absolute; inset: 0;
  color: transparent;
  background: linear-gradient(175deg, var(--accent), transparent 72%);
  -webkit-background-clip: text;
  background-clip: text;
  opacity: 0;
  transition: opacity .6s;
}
.cover-title span:hover::after { opacity: .75; }
.cover-title span:hover { filter: drop-shadow(0 8px 24px rgba(47,127,212,.28)); }

.cover-line {
  margin-top: 4vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--ink-dim);
  font-size: 13px;
  letter-spacing: .4em;
  text-indent: .4em;
  opacity: 0;
  animation: rise 1.2s .9s cubic-bezier(.2,.8,.2,1) forwards;
}
.cover-line i {
  display: block;
  width: clamp(40px, 8vw, 110px); height: 1px;
  background: linear-gradient(90deg, transparent, var(--ink-faint));
}
.cover-line i:last-child { transform: scaleX(-1); }

.scroll-hint {
  position: absolute;
  bottom: 4.5vh; left: 50%;
  transform: translateX(-50%);
  width: 34px; height: 34px;
  display: grid; place-items: center;
  text-decoration: none;
  opacity: 0;
  animation: rise 1.2s 1.4s forwards;
}
.hint-arrow {
  width: 16px; height: 16px;
  border-right: 1.5px solid var(--ink-dim);
  border-bottom: 1.5px solid var(--ink-dim);
  transform: rotate(45deg);
  transition: border-color .4s;
  animation: nudge 2.4s cubic-bezier(.6,0,.4,1) infinite;
}
.scroll-hint:hover .hint-arrow { border-color: var(--accent); }
@keyframes nudge {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: .55; }
  50%      { transform: rotate(45deg) translate(3px, 3px); opacity: 1; }
}

@keyframes charIn {
  from { opacity: 0; transform: translateY(.35em) scale(1.06); filter: blur(14px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
@keyframes drip {
  0% { top: -40%; } 55%, 100% { top: 110%; }
}

/* ============ 第二面 · 栏目 ============ */
.page-head {
  display: flex;
  align-items: baseline;
  gap: 26px;
  width: min(980px, 100%);
  margin-bottom: clamp(28px, 5vh, 56px);
}
.page-head h2 {
  font-family: var(--serif);
  font-size: clamp(34px, 4.6vw, 52px);
  font-weight: 600;
  letter-spacing: .2em;
  color: transparent;
  background: linear-gradient(175deg, #2c3f56, #7d99b8);
  -webkit-background-clip: text;
  background-clip: text;
}
.page-head p {
  font-size: 13px;
  letter-spacing: .28em;
  color: var(--ink-dim);
}

.cards {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.card { grid-column: span 2; }
.card:nth-child(4), .card:nth-child(5) { grid-column: span 3; }
.card {
  --mx: 50%; --my: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 24px 22px;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 16px;
  background:
    radial-gradient(420px circle at var(--mx) var(--my), rgba(120, 178, 235, .16), transparent 42%),
    linear-gradient(160deg, rgba(255,255,255,.86), rgba(255,255,255,.55));
  box-shadow: 0 10px 34px -18px rgba(50, 90, 140, .28);
  backdrop-filter: blur(6px);
  overflow: hidden;
  transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s, border-color .5s;
}
.card::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(47,127,212,.55), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(150, 195, 240, .8);
  box-shadow: 0 26px 50px -22px rgba(40, 90, 150, .38);
}
.card:hover::before { opacity: 1; }

.card-no {
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--ink-faint);
  transition: color .4s;
}
.card:hover .card-no { color: var(--accent); }
.card strong {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: .12em;
}
.card em {
  font-style: normal;
  font-size: 12.5px;
  color: var(--ink-dim);
  letter-spacing: .06em;
}
.card-arrow {
  position: absolute;
  right: 22px; bottom: 18px;
  color: var(--ink-faint);
  transform: translateX(-8px);
  opacity: 0;
  transition: all .45s cubic-bezier(.2,.8,.2,1);
}
.card:hover .card-arrow {
  transform: none;
  opacity: 1;
  color: var(--accent);
}

/* ============ 第三面 · 深处 ============ */
.page.private { gap: 6vh; }
.door {
  position: relative;
  width: clamp(190px, 26vw, 250px);
  height: clamp(190px, 26vw, 250px);
  display: grid;
  place-items: center;
  text-decoration: none;
}
.door-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(90, 130, 175, .3);
  transition: all 1s cubic-bezier(.2,.8,.2,1);
}
.r1 { inset: 0; animation: spin 40s linear infinite; border-style: dashed; }
.r2 { inset: 13%; border-color: rgba(90,130,175,.2); animation: spin 28s linear infinite reverse; }
.r3 { inset: 26%; border-color: rgba(90,130,175,.14); }
@keyframes spin { to { transform: rotate(360deg); } }

.door-core {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.door-core b {
  font-family: var(--serif);
  font-size: clamp(52px, 8vw, 72px);
  font-weight: 600;
  color: transparent;
  background: linear-gradient(180deg, #35495f, #92abc6);
  -webkit-background-clip: text;
  background-clip: text;
  transition: all .7s;
}
.door-core small {
  font-size: 11px;
  letter-spacing: .45em;
  text-indent: .45em;
  color: var(--ink-faint);
  transition: color .7s;
}
.door:hover .r1 { border-color: rgba(47,127,212,.5); box-shadow: 0 0 44px -12px rgba(47,127,212,.4); }
.door:hover .r2 { inset: 10%; border-color: rgba(47,127,212,.3); }
.door:hover .r3 { inset: 22%; }
.door:hover .door-core b {
  background: linear-gradient(180deg, #2f6fb8, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 6px 20px rgba(47,127,212,.3));
}
.door:hover .door-core small { color: var(--ink-dim); }

.private-note {
  font-size: 12.5px;
  letter-spacing: .3em;
  text-indent: .3em;
  color: var(--ink-dim);
}
.private-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.private-links a {
  text-decoration: none;
  color: var(--ink);
  border: 1px solid rgba(255,255,255,.7);
  background: linear-gradient(160deg, rgba(255,255,255,.78), rgba(255,255,255,.48));
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 13px;
  letter-spacing: .18em;
  box-shadow: 0 10px 28px -18px rgba(50,90,140,.3);
  backdrop-filter: blur(6px);
}
.private-links a:hover {
  border-color: rgba(47,127,212,.38);
  color: var(--accent);
}

/* ---------- 移动端 ---------- */
@media (max-width: 640px) {
  .rail { right: 12px; }
  .glow { display: none; }
  .cards { gap: 10px; }
  .card { padding: 20px 18px 18px; }
  .cover-title { letter-spacing: .04em; }
  .peaks { height: 34vh; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .cover-eyebrow, .cover-title span, .cover-line, .scroll-hint { opacity: 1; }
}
