/* 快乐西游 · wukongle.com — 品牌首页样式（原生 CSS，无依赖） */

:root {
  --ink: #071c1a;
  --teal: #0b2825;
  --teal-2: #123e3a;
  --teal-3: #1a4c45;
  --cream: #fff5d7;
  --gold: #e0af63;
  --gold-2: #f6d79b;
  --sage: #b5cbb2;
  --muted: rgba(255, 245, 215, 0.64);
  --line: rgba(224, 175, 99, 0.18);
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--teal);
  color: var(--cream);
  font-family: var(--sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60ch 50ch at 50% -10%, rgba(224, 175, 99, 0.10), transparent 65%),
    radial-gradient(80ch 60ch at 85% 15%, rgba(181, 203, 178, 0.06), transparent 60%),
    linear-gradient(180deg, #0d302c 0%, #0a2724 55%, #071c1a 100%);
}

img { max-width: 100%; display: block; }

p { text-wrap: pretty; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 { margin: 0 0 0.5em; line-height: 1.25; font-weight: 700; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 22px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--gold);
  color: #24180a;
  font-weight: 700;
}
.skip-link:focus { left: 16px; }

:focus-visible {
  outline: 2px solid var(--gold-2);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: rgba(224, 175, 99, 0.35); color: var(--cream); }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(9, 32, 29, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(224, 175, 99, 0.55);
  box-shadow: 0 0 0 3px rgba(224, 175, 99, 0.10);
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.1;
}
.brand-name em {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.55rem;
  letter-spacing: 0.34em;
  color: var(--gold);
  opacity: 0.85;
  margin-top: 4px;
}

.nav {
  display: flex;
  gap: 26px;
  margin-inline-start: auto;
  font-size: 0.94rem;
  letter-spacing: 0.06em;
}
.nav a {
  color: var(--muted);
  padding-block: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav a:hover { color: var(--gold-2); border-color: rgba(224, 175, 99, 0.5); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: 4px;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:active { transform: translateY(1px); }

.btn-gold {
  background: linear-gradient(135deg, #f3d9a4, var(--gold) 55%, #c08f44);
  color: #2a1b09;
  box-shadow: 0 10px 26px rgba(224, 175, 99, 0.22);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(224, 175, 99, 0.30);
}

.btn-line {
  background: rgba(255, 245, 215, 0.04);
  border-color: rgba(224, 175, 99, 0.45);
  color: var(--cream);
}
.btn-line:hover {
  background: rgba(224, 175, 99, 0.10);
  border-color: var(--gold);
  color: var(--gold-2);
  transform: translateY(-2px);
}

.btn-sm { padding: 9px 18px; font-size: 0.88rem; }

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  transform: scale(1.02);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(7, 28, 26, 0.95) 0%, rgba(9, 34, 31, 0.86) 34%, rgba(9, 34, 31, 0.42) 62%, rgba(9, 34, 31, 0.12) 100%),
    linear-gradient(180deg, rgba(7, 28, 26, 0.45) 0%, transparent 30%, rgba(7, 28, 26, 0.75) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding-block: clamp(48px, 9vw, 96px);
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 0.78rem;
  letter-spacing: 0.42em;
  color: var(--gold);
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(3rem, 9vw, 6rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  margin: 0 0 10px;
  color: var(--cream);
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.55);
}

.hero-sub {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  letter-spacing: 0.22em;
  color: var(--gold-2);
  margin: 0 0 22px;
}

.hero-desc {
  max-width: 46ch;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.5vw, 1.02rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.hero-tags li {
  padding: 5px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 28, 26, 0.35);
  backdrop-filter: blur(4px);
}

/* ---------- 区块 ---------- */
.section {
  padding: clamp(64px, 9vw, 112px) 0;
  position: relative;
}

section[id] { scroll-margin-top: 88px; }
.section-alt {
  background: linear-gradient(180deg, rgba(18, 62, 58, 0.35), rgba(18, 62, 58, 0.08));
  border-block: 1px solid rgba(224, 175, 99, 0.10);
}

.sec-head {
  max-width: 620px;
  margin: 0 auto clamp(32px, 5vw, 52px);
  text-align: center;
}

.sec-num {
  display: inline-block;
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.4em;
  color: var(--gold);
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(224, 175, 99, 0.35);
}

.sec-head h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.6vw, 2.5rem);
  letter-spacing: 0.06em;
  color: var(--cream);
  margin-bottom: 12px;
}

.sec-desc { margin: 0; color: var(--muted); }

/* ---------- 世界观 ---------- */
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.media-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255, 245, 215, 0.035);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.media-card:hover {
  border-color: rgba(224, 175, 99, 0.55);
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.35);
}

.media-fig {
  margin: 0;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0d2b28;
}
.media-fig img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.media-fig::before {
  content: attr(data-num);
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 2px 9px;
  font-family: var(--serif);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: rgba(255, 245, 215, 0.92);
  background: rgba(7, 28, 26, 0.55);
  border: 1px solid rgba(224, 175, 99, 0.45);
  border-radius: 3px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.media-card:hover .media-fig img { transform: scale(1.06); }

.media-body { padding: 20px 22px 24px; flex: 1 1 auto; }
.media-body h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.media-body p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* ---------- 职业 ---------- */
.class-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.class-card {
  padding: 30px 24px 28px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(255, 245, 215, 0.055), rgba(255, 245, 215, 0.015));
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
.class-card:hover {
  border-color: rgba(224, 175, 99, 0.55);
  transform: translateY(-4px);
  background: linear-gradient(180deg, rgba(224, 175, 99, 0.12), rgba(255, 245, 215, 0.02));
}

.seal {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  border: 1px solid rgba(224, 175, 99, 0.55);
  border-radius: 8px;
  font-family: var(--serif);
  font-size: 1.55rem;
  color: var(--gold-2);
  background: rgba(224, 175, 99, 0.07);
  box-shadow: inset 0 0 22px rgba(224, 175, 99, 0.10);
}

.class-card h3 {
  font-family: var(--serif);
  font-size: 1.18rem;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}
.class-role {
  margin: 0 0 12px;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  color: var(--gold);
}
.class-copy { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* ---------- 手札 ---------- */
.stories-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 34px;
  align-items: start;
}

.story-list { margin: 0; padding: 0; list-style: none; }
.story-item {
  padding: 20px 0 22px;
  border-bottom: 1px dashed rgba(255, 245, 215, 0.14);
}
.story-item:first-child { border-top: 1px dashed rgba(255, 245, 215, 0.14); }
.story-item h3 {
  font-family: var(--serif);
  font-size: 1.14rem;
  letter-spacing: 0.04em;
  margin: 10px 0 6px;
}
.story-item p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.story-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  border: 1px solid rgba(224, 175, 99, 0.4);
  border-radius: 3px;
  padding: 2px 9px;
}

.note-card {
  padding: 30px;
  border: 1px solid rgba(224, 175, 99, 0.28);
  border-radius: 6px;
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(224, 175, 99, 0.12), transparent 60%),
    rgba(18, 62, 58, 0.55);
  position: sticky;
  top: 92px;
}

.note-label {
  margin: 0 0 16px;
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  color: var(--gold);
}

.note-card blockquote {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.9;
  letter-spacing: 0.06em;
  color: var(--cream);
  min-height: 4.6em;
  transition: opacity 0.25s ease;
}
.note-card blockquote.is-fading { opacity: 0; }

/* ---------- 视听 ---------- */
.film { margin: 0; }

.film-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0d2b28;
}
.film-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: saturate(0.95);
}
.film-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 28, 26, 0.05) 40%, rgba(7, 28, 26, 0.72) 100%);
}

.film-play {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 1px solid rgba(224, 175, 99, 0.75);
  background: rgba(7, 28, 26, 0.45);
  backdrop-filter: blur(6px);
  color: var(--gold-2);
  font-size: 1rem;
  letter-spacing: 0.1em;
  padding-left: 4px;
  transition: transform 0.25s ease, background 0.25s ease;
}
.film-frame:hover .film-play { transform: translate(-50%, -50%) scale(1.06); background: rgba(224, 175, 99, 0.22); }

.film-cap {
  position: absolute;
  z-index: 3;
  left: 22px;
  bottom: 18px;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: rgba(255, 245, 215, 0.9);
}

.film-meta { max-width: 640px; margin: 26px auto 0; text-align: center; }
.film-meta h3 {
  font-family: var(--serif);
  font-size: 1.28rem;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.film-meta p { margin: 0; color: var(--muted); font-size: 0.94rem; }

/* ---------- 下载 ---------- */
.cta {
  padding: clamp(72px, 10vw, 120px) 0;
  text-align: center;
  background:
    radial-gradient(60% 80% at 50% 100%, rgba(224, 175, 99, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(7, 28, 26, 0), rgba(18, 62, 58, 0.45));
  border-top: 1px solid rgba(224, 175, 99, 0.12);
}
.cta h2 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.cta p { margin: 0 0 26px; color: var(--muted); }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* ---------- 页脚 ---------- */
.footer {
  padding: 40px 0 52px;
  border-top: 1px solid rgba(224, 175, 99, 0.12);
  font-size: 0.82rem;
  color: rgba(255, 245, 215, 0.5);
}
.footer-inner { display: grid; gap: 6px; text-align: center; }
.footer-inner p { margin: 0; }

.footer-brand {
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: 0.2em;
  color: rgba(255, 245, 215, 0.85);
  margin-bottom: 6px !important;
}
.footer-brand span {
  display: block;
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  color: rgba(224, 175, 99, 0.65);
  margin-top: 4px;
}

.footer-icp a {
  color: rgba(255, 245, 215, 0.55);
  border-bottom: 1px solid rgba(255, 245, 215, 0.2);
  padding-bottom: 1px;
}
.footer-icp a:hover { color: var(--gold); border-color: var(--gold); }

/* ---------- 入场动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .media-grid { grid-template-columns: 1fr; }
  .class-grid { grid-template-columns: repeat(2, 1fr); }
  .stories-layout { grid-template-columns: 1fr; gap: 26px; }
  .note-card { position: static; }
  .hero-bg img { object-position: 68% center; }
}

@media (max-width: 680px) {
  .nav { display: none; }
  .topbar-inner { justify-content: space-between; }
  .hero { min-height: 0; }
  .hero-inner { padding-block: 64px 72px; }
  .hero-bg::after {
    background:
      linear-gradient(180deg, rgba(7, 28, 26, 0.92) 0%, rgba(9, 34, 31, 0.86) 55%, rgba(7, 28, 26, 0.96) 100%);
  }
  .hero-title { letter-spacing: 0.1em; }
  .media-body { padding: 18px 18px 22px; }
  .class-grid { grid-template-columns: 1fr; }
  .film-play { width: 60px; height: 60px; }
}

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