@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@500;600;700;900&family=ZCOOL+XiaoWei&display=swap");

:root {
  --ink: #171327;
  --ink-soft: #343048;
  --paper: #f8f2e8;
  --paper-deep: #eee2d1;
  --gold: #d9a95c;
  --gold-bright: #f1cf8d;
  --crimson: #9c3145;
  --cream: #fff9ed;
  --line: rgba(98, 68, 51, .2);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Serif SC", "Songti SC", serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  height: 86px;
  padding: 0 clamp(24px, 5vw, 88px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--cream);
  border-bottom: 1px solid rgba(255,255,255,.14);
  transition: .35s ease;
}
.site-header.scrolled {
  height: 70px;
  background: rgba(20, 16, 35, .92);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(12,8,26,.18);
}
.brand, .footer-brand { display: flex; align-items: center; gap: 12px; }
.brand-seal {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #382536;
  background: linear-gradient(145deg, #ffe3a6, #c99145);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 12px 4px 12px 4px;
  font-family: "ZCOOL XiaoWei", serif;
  font-size: 23px;
  box-shadow: 0 4px 16px rgba(0,0,0,.22);
}
.brand strong { display: block; font-size: 20px; letter-spacing: .16em; }
.brand small { display: block; margin-top: 2px; color: rgba(255,255,255,.62); font: 8px/1 Arial, sans-serif; letter-spacing: .27em; }
.site-header nav { display: flex; gap: clamp(26px, 4vw, 58px); font-size: 14px; letter-spacing: .16em; }
.site-header nav a { position: relative; padding: 31px 0; }
.site-header nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 20px;
  width: 0;
  height: 1px;
  background: var(--gold-bright);
  transition: .3s ease;
}
.site-header nav a:hover::after { left: 0; width: 100%; }
.header-cta {
  padding: 11px 24px;
  color: #2b2030;
  background: linear-gradient(135deg, #f7d99d, #c99349);
  border: 1px solid rgba(255,255,255,.45);
  font-size: 14px;
  letter-spacing: .18em;
  box-shadow: 0 8px 24px rgba(13,8,24,.24);
  transition: .25s ease;
}
.header-cta:hover { transform: translateY(-2px); filter: brightness(1.08); }

.hero {
  position: relative;
  min-height: 760px;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 100px clamp(24px, 9vw, 160px) 60px;
  color: white;
  background:
    linear-gradient(90deg, rgba(18,13,34,.88) 0%, rgba(29,18,45,.52) 44%, rgba(24,16,44,.06) 75%),
    linear-gradient(0deg, rgba(22,16,38,.55), transparent 42%),
    url("../image/image_xfy_bg2.jpg") center 48% / cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,8,24,.32), transparent 22%, transparent 70%, rgba(18,13,31,.46));
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 4; width: min(650px, 58vw); animation: hero-in 1s ease-out both; }
.eyebrow { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; color: var(--gold-bright); font-size: 13px; letter-spacing: .32em; }
.eyebrow span { width: 34px; height: 1px; background: currentColor; opacity: .65; }
.hero h1 { margin: 0; font-family: "ZCOOL XiaoWei", "STKaiti", serif; font-size: clamp(74px, 9.5vw, 152px); line-height: .92; font-weight: 400; letter-spacing: .06em; text-shadow: 0 10px 38px rgba(10,5,24,.46); }
.hero h1 span { color: var(--gold-bright); }
.hero-subtitle { margin: 28px 0 15px; color: #fff1cf; font-size: clamp(22px, 2.2vw, 32px); letter-spacing: .42em; }
.hero-description { margin: 0; color: rgba(255,255,255,.75); font-size: 15px; line-height: 2; letter-spacing: .08em; }
.hero-actions { display: flex; align-items: center; gap: 34px; margin-top: 38px; }
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-width: 190px;
  padding: 16px 22px 16px 30px;
  color: #332033;
  background: linear-gradient(135deg, #f9dda2, #d19a4c);
  border: 1px solid rgba(255,255,255,.62);
  box-shadow: 0 12px 32px rgba(15,8,30,.28), inset 0 0 0 3px rgba(100,58,32,.09);
  letter-spacing: .28em;
  transition: .28s ease;
}
.primary-button i { font: normal 22px/1 sans-serif; transition: transform .28s ease; }
.primary-button:hover { transform: translateY(-3px); box-shadow: 0 18px 38px rgba(15,8,30,.38), inset 0 0 0 3px rgba(100,58,32,.09); }
.primary-button:hover i { transform: translateX(5px); }
.text-link { color: rgba(255,255,255,.82); font-size: 14px; letter-spacing: .18em; }
.text-link span { margin-left: 8px; color: var(--gold-bright); }
.hero-character {
  position: absolute;
  z-index: 3;
  right: clamp(-180px, -5vw, -40px);
  bottom: -7vh;
  width: min(59vw, 900px);
  max-height: 94vh;
  object-fit: contain;
  object-position: bottom right;
  filter: drop-shadow(-30px 30px 35px rgba(14,8,30,.3));
  animation: character-in 1.25s .15s ease-out both;
}
.hero-mist { position: absolute; z-index: 2; height: 160px; width: 70%; border-radius: 50%; background: rgba(246,229,237,.3); filter: blur(38px); opacity: .42; pointer-events: none; }
.hero-mist-one { right: -15%; bottom: 5%; animation: drift 9s ease-in-out infinite alternate; }
.hero-mist-two { left: -30%; bottom: -6%; animation: drift 12s -3s ease-in-out infinite alternate-reverse; }
.scroll-cue { position: absolute; z-index: 5; left: 50%; bottom: 22px; display: flex; flex-direction: column; align-items: center; gap: 8px; color: rgba(255,255,255,.52); font: 8px/1 Arial, sans-serif; letter-spacing: .28em; }
.scroll-cue span { width: 1px; height: 38px; background: linear-gradient(white, transparent); }

.section { padding: clamp(90px, 10vw, 150px) clamp(24px, 8vw, 140px); }
.section-heading { text-align: center; margin-bottom: 62px; }
.section-heading p, .section-kicker { margin: 0 0 12px; color: #a26f4d; font: 11px/1.4 Arial, sans-serif; letter-spacing: .42em; }
.section-heading h2, .spirit-copy h2, .final-content h2 { margin: 0; font-family: "ZCOOL XiaoWei", "STKaiti", serif; font-weight: 400; letter-spacing: .12em; }
.section-heading h2 { font-size: clamp(34px, 4vw, 56px); }
.ornament { display: block; margin-top: 18px; color: var(--gold); font-size: 11px; }
.ornament::before, .ornament::after { content: ""; display: inline-block; vertical-align: middle; width: 54px; height: 1px; margin: 0 12px; background: currentColor; opacity: .48; }

.world { position: relative; padding-top: clamp(100px, 11vw, 165px); background: #eee3d2; overflow: hidden; }
.world::before { content: ""; position: absolute; inset: 0; opacity: .34; background: radial-gradient(circle at 14% 16%, #fffdf7, transparent 28%), repeating-linear-gradient(90deg, transparent 0 79px, rgba(94,61,51,.035) 80px); pointer-events: none; }
.world::after { content: "九重"; position: absolute; z-index: 0; right: -1vw; top: 35px; color: rgba(100,64,52,.045); font-family: "ZCOOL XiaoWei", serif; font-size: clamp(150px, 22vw, 350px); line-height: 1; writing-mode: vertical-rl; letter-spacing: -.28em; }
.world-heading { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto 56px; display: grid; grid-template-columns: 180px 1fr auto; align-items: end; gap: 40px; }
.chapter-mark { align-self: center; display: flex; align-items: center; gap: 10px; color: #986443; }
.chapter-mark span { font-size: 13px; letter-spacing: .22em; white-space: nowrap; }
.chapter-mark i { width: 34px; height: 1px; background: currentColor; opacity: .55; }
.chapter-mark small { color: #aa8c76; font: 8px/1 Arial, sans-serif; letter-spacing: .22em; white-space: nowrap; }
.world-heading h2 { margin: 0; font-family: "ZCOOL XiaoWei", "STKaiti", serif; font-size: clamp(48px, 6vw, 84px); font-weight: 400; letter-spacing: .08em; line-height: 1; }
.world-heading > p { margin: 0 0 5px; padding-left: 28px; color: #7b5e58; border-left: 1px solid #b98c68; font-size: 14px; letter-spacing: .12em; white-space: nowrap; }
.world-chronicle { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(410px, 1.14fr) minmax(390px, .86fr); max-width: 1280px; min-height: 650px; margin: 0 auto; background: #171326; box-shadow: 0 35px 85px rgba(54,36,39,.19); }
.tower-vision { position: relative; min-height: 650px; margin: 0; overflow: hidden; }
.tower-vision > img { width: 100%; height: 100%; object-fit: cover; object-position: center; transform: scale(1.02); transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.tower-vision:hover > img { transform: scale(1.07); }
.vision-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,11,28,.12) 30%, rgba(19,13,31,.76) 100%), linear-gradient(0deg, rgba(15,9,24,.72), transparent 38%); }
.tower-vision figcaption { position: absolute; left: 36px; bottom: 32px; display: flex; flex-direction: column; gap: 6px; color: white; }
.tower-vision figcaption span { color: var(--gold-bright); font-size: 10px; letter-spacing: .22em; }
.tower-vision figcaption strong { font-size: 17px; font-weight: 500; letter-spacing: .12em; }
.realm-point { position: absolute; display: flex; align-items: center; gap: 10px; color: white; filter: drop-shadow(0 2px 8px rgba(0,0,0,.65)); }
.realm-point > i { position: relative; display: block; width: 10px; height: 10px; border: 1px solid var(--gold-bright); border-radius: 50%; background: rgba(26,15,37,.5); box-shadow: 0 0 0 5px rgba(241,207,141,.12); }
.realm-point > i::after { content: ""; position: absolute; left: 13px; top: 4px; width: 28px; height: 1px; background: rgba(241,207,141,.64); }
.realm-point span { margin-left: 28px; font-size: 11px; letter-spacing: .14em; }
.realm-point b { display: block; margin-bottom: 3px; color: var(--gold-bright); font-size: 9px; font-weight: 500; }
.point-one { left: 18%; bottom: 25%; }
.point-two { left: 59%; top: 46%; }
.point-three { left: 43%; top: 18%; }
.tower-lore { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 650px; padding: 62px clamp(42px, 5vw, 78px); color: rgba(255,255,255,.64); background: radial-gradient(circle at 100% 0, rgba(144,62,74,.23), transparent 34%), #171326; }
.tower-lore::before { content: ""; position: absolute; inset: 18px; border: 1px solid rgba(237,204,143,.13); pointer-events: none; }
.fragment-title { margin: 0 0 28px; color: var(--gold-bright); font-size: 11px; letter-spacing: .24em; }
.tower-lore > p:not(.fragment-title):not(.lore-opening) { margin: 20px 0 0; font-size: 14px; line-height: 2; letter-spacing: .06em; }
.lore-opening { display: flex; align-items: flex-start; margin: 0; color: rgba(255,255,255,.84); font-size: 15px; line-height: 2; }
.lore-opening > span:first-child { flex: 0 0 auto; margin: 3px 8px 0 0; color: var(--gold-bright); font-family: "ZCOOL XiaoWei", serif; font-size: 50px; line-height: .86; }
.lore-opening > span:last-child { display: inline; }
.fate-path { display: flex; align-items: center; justify-content: space-between; margin: 36px 0; }
.fate-path div { text-align: center; }
.fate-path time { display: grid; place-items: center; width: 35px; height: 35px; margin: 0 auto 8px; color: var(--gold-bright); border: 1px solid rgba(241,207,141,.42); border-radius: 50%; font-size: 13px; }
.fate-path span { color: rgba(255,255,255,.46); font-size: 10px; letter-spacing: .12em; white-space: nowrap; }
.fate-path > i { flex: 1; height: 1px; margin: 0 14px 25px; background: linear-gradient(90deg, rgba(241,207,141,.15), rgba(241,207,141,.5), rgba(241,207,141,.15)); }
.tower-lore blockquote { margin: 0; padding: 19px 0 0 23px; color: #fff1d1; border-left: 1px solid #bd884e; font-family: "ZCOOL XiaoWei", serif; font-size: clamp(17px, 1.5vw, 22px); line-height: 1.8; letter-spacing: .08em; }
.keeper-seal { position: absolute; right: 37px; bottom: 34px; display: grid; grid-template-columns: 1fr 1fr; width: 39px; height: 39px; padding: 4px; color: rgba(198,79,68,.7); border: 2px solid rgba(177,68,60,.52); transform: rotate(-6deg); font-size: 10px; line-height: 1.3; text-align: center; }

.features { position: relative; color: white; background: #171326; overflow: hidden; }
.features::before { content: ""; position: absolute; inset: 0; opacity: .2; background: radial-gradient(circle at 20% 10%, #923b56, transparent 28%), radial-gradient(circle at 85% 90%, #72513b, transparent 30%); }
.section-heading.light { position: relative; }
.section-heading.light p { color: var(--gold-bright); }
.feature-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 1280px; margin: 0 auto; }
.feature-card { position: relative; min-height: 500px; overflow: hidden; background: #282039; }
.feature-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .5s ease; }
.feature-cultivate img { object-position: center; }
.feature-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 36%, rgba(16,11,26,.94)); }
.feature-card:hover img { transform: scale(1.06); filter: saturate(1.08); }
.feature-overlay { position: absolute; z-index: 2; left: 34px; right: 34px; bottom: 34px; }
.feature-overlay span { color: var(--gold-bright); font: italic 16px Georgia, serif; }
.feature-overlay h3 { margin: 8px 0 10px; font-size: 27px; letter-spacing: .18em; }
.feature-overlay p { margin: 0; color: rgba(255,255,255,.66); font-size: 13px; letter-spacing: .1em; }

.spirits { display: grid; grid-template-columns: .7fr 1.3fr; align-items: center; gap: 5vw; min-height: 720px; padding-top: 80px; padding-bottom: 80px; overflow: hidden; background: linear-gradient(120deg, #faf5eb 0 45%, #e8d9ca 45%); }
.spirit-copy { max-width: 460px; justify-self: end; }
.spirit-copy h2 { margin: 18px 0 28px; font-size: clamp(48px, 5vw, 76px); line-height: 1.35; }
.spirit-copy > p:not(.section-kicker) { color: #6e6060; line-height: 2; }
.ink-link { display: inline-block; margin-top: 22px; padding-bottom: 8px; border-bottom: 1px solid #9c6a4c; color: #7e493c; letter-spacing: .15em; }
.ink-link span { margin-left: 20px; }
.spirit-showcase { position: relative; height: 610px; max-width: 760px; }
.spirit-showcase::before { content: ""; position: absolute; width: 480px; height: 480px; left: 20%; top: 5%; border: 1px solid rgba(139,88,60,.24); border-radius: 50%; box-shadow: inset 0 0 80px rgba(190,133,86,.09); }
.spirit-main { position: absolute; z-index: 2; left: 27%; bottom: 30px; height: 550px; filter: drop-shadow(18px 24px 22px rgba(59,37,42,.2)); }
.spirit-relic { position: absolute; z-index: 1; left: -6%; bottom: 42px; width: 300px; opacity: .95; filter: drop-shadow(0 18px 20px rgba(96,65,37,.18)); }
.spirit-icons { position: absolute; z-index: 3; right: 0; top: 80px; display: grid; gap: 13px; }
.spirit-icons img { width: 62px; height: 62px; padding: 5px; object-fit: contain; background: rgba(255,250,240,.7); border: 1px solid rgba(139,88,60,.28); border-radius: 50%; box-shadow: 0 7px 18px rgba(55,35,42,.1); transition: .25s ease; }
.spirit-icons img:hover { transform: translateX(-7px) scale(1.06); background: white; }

.final-cta { position: relative; min-height: 510px; display: grid; place-items: center; padding: 70px 24px; color: white; text-align: center; overflow: hidden; background: linear-gradient(rgba(26,16,38,.58), rgba(26,16,38,.82)), url("../image/bg_dl.jpg") center 33% / cover no-repeat; }
.final-cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at center, rgba(247,208,138,.23), transparent 45%); }
.final-content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.final-content img { width: 105px; margin-bottom: 8px; filter: drop-shadow(0 0 25px rgba(255,190,78,.6)); }
.final-content p { margin: 0 0 13px; color: var(--gold-bright); letter-spacing: .4em; font-size: 13px; }
.final-content h2 { margin-bottom: 30px; font-size: clamp(37px, 4vw, 58px); }

.site-footer { min-height: 170px; padding: 38px clamp(24px, 7vw, 110px); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 40px; color: rgba(255,255,255,.52); background: #100d1a; font-size: 11px; line-height: 1.8; }
.footer-brand { color: white; white-space: nowrap; }
.footer-brand strong { letter-spacing: .16em; font-size: 18px; }
.footer-copy p { margin: 2px 0; }
.footer-copy .copyright { color: rgba(255,255,255,.34); }
.back-top { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.18); font-size: 18px; transition: .2s ease; }
.back-top:hover { color: var(--gold-bright); border-color: var(--gold-bright); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s ease, transform .75s ease; }
.reveal.visible { opacity: 1; transform: none; }
@keyframes hero-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes character-in { from { opacity: 0; transform: translateX(70px); } to { opacity: 1; transform: none; } }
@keyframes drift { to { transform: translateX(100px) scale(1.1); } }

@media (max-width: 900px) {
  .site-header { height: 72px; padding: 0 20px; }
  .site-header nav { display: none; }
  .brand strong { font-size: 17px; }
  .hero { min-height: 700px; align-items: flex-start; padding-top: 145px; background-position: 43% center; }
  .hero-copy { width: 78%; }
  .hero-character { width: 78vw; right: -22vw; opacity: .88; }
  .hero-description { max-width: 390px; }
  .world-heading { grid-template-columns: 1fr; gap: 20px; }
  .world-heading > p { justify-self: start; }
  .world-chronicle { grid-template-columns: 1fr; }
  .tower-vision, .tower-lore { min-height: 580px; }
  .feature-grid { grid-template-columns: 1fr; max-width: 600px; }
  .feature-card { min-height: 390px; }
  .feature-card img { object-position: center 38%; }
  .spirits { grid-template-columns: 1fr; background: linear-gradient(160deg, #faf5eb 0 46%, #e8d9ca 46%); }
  .spirit-copy { justify-self: start; }
  .spirit-showcase { width: 100%; height: 520px; }
  .spirit-main { height: 470px; left: 35%; }
  .spirit-relic { left: 0; width: 240px; }
  .site-footer { grid-template-columns: 1fr auto; }
  .footer-copy { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 600px) {
  .site-header { height: 64px; }
  .brand small { display: none; }
  .brand-seal { width: 34px; height: 34px; font-size: 19px; }
  .header-cta { padding: 9px 15px; font-size: 12px; }
  .hero { min-height: 700px; height: 100svh; padding: 118px 22px 48px; background-position: 42% center; }
  .hero::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(90deg, rgba(17,12,31,.42), transparent); }
  .hero-copy { z-index: 5; width: 100%; }
  .eyebrow { font-size: 10px; gap: 8px; }
  .eyebrow span { width: 18px; }
  .hero h1 { font-size: clamp(62px, 21vw, 92px); letter-spacing: .02em; }
  .hero-subtitle { margin-top: 21px; font-size: 18px; letter-spacing: .3em; }
  .hero-description { width: 72%; font-size: 13px; line-height: 1.8; }
  .hero-actions { gap: 20px; margin-top: 28px; }
  .primary-button { min-width: 160px; padding: 13px 18px 13px 23px; gap: 15px; font-size: 14px; }
  .text-link { display: none; }
  .hero-character { z-index: 3; width: 105vw; max-height: 66vh; right: -45vw; bottom: -1vh; opacity: .8; }
  .scroll-cue { display: none; }
  .section { padding: 78px 22px; }
  .section-heading { margin-bottom: 40px; }
  .world { padding-left: 0; padding-right: 0; }
  .world-heading { padding: 0 22px; margin-bottom: 38px; }
  .world-heading h2 { font-size: 48px; line-height: 1.15; }
  .world-heading > p { padding-left: 16px; font-size: 12px; white-space: normal; }
  .world-chronicle { width: 100%; }
  .tower-vision { min-height: 500px; }
  .tower-vision figcaption { left: 22px; bottom: 24px; }
  .realm-point span { font-size: 9px; }
  .point-one { left: 9%; }
  .point-two { left: 51%; }
  .tower-lore { min-height: 590px; padding: 56px 34px; }
  .tower-lore::before { inset: 10px; }
  .fate-path > i { margin-left: 7px; margin-right: 7px; }
  .keeper-seal { right: 24px; bottom: 22px; }
  .feature-card { min-height: 360px; }
  .spirits { padding-bottom: 25px; }
  .spirit-copy h2 { font-size: 46px; }
  .spirit-showcase { height: 440px; }
  .spirit-showcase::before { width: 330px; height: 330px; left: 12%; top: 10%; }
  .spirit-main { height: 395px; left: 28%; }
  .spirit-relic { left: -20%; bottom: 32px; width: 220px; }
  .spirit-icons { right: -8px; top: 55px; gap: 8px; }
  .spirit-icons img { width: 50px; height: 50px; }
  .final-cta { min-height: 450px; }
  .site-footer { grid-template-columns: 1fr auto; gap: 22px; padding: 35px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
