/* =============================================
   PG创作者宣传页 — 主样式
   设计基准: 100vw 宽，总高 260vw
   字体: 尔雅棉花糖 (heading) / Source Han Sans VF (body)
============================================= */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'eryamianhuatang';
  src: url('../fonts/eryamianhuatang-sub.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SourceHanSansVF';
  src: url('../fonts/SourceHanSans-VF-sub.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Reset ---------- */
*, *::before, *::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: none; }
ul { list-style: disc; }

/* Fill-parent helper */
.fill-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* ---------- Wrapper ---------- */
#wrapper {
  width: 100vw;
  overflow: hidden;
}
#page {
  width: 100vw;
  position: relative;
  background: #fff;
  overflow: hidden;
}

/* Full-page background image */
.page-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 260vw;   /* 与总页高同步 */
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
}

/* =============================================
   FIXED NAV WRAPPER
============================================= */
#tab-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3.6vw;
  z-index: 1000;
  overflow: hidden;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}
#tab-fixed.tab-hidden {
  transform: translateY(-100%);
}

/* =============================================
   NAV / HEADER  (100vw × 3.6vw)
============================================= */
.tab {
  position: relative;
  width: 100%;
  height: 3.6vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.48vw 1.6vw;
  z-index: 100;
}
.bg-header {
  position: absolute;
  inset: 0;
  background: url('../img/bg-header.png') center/cover no-repeat;
}
.tab-left {
  position: relative;
  display: flex;
  align-items: center;
  gap: 5.12vw;
}
.logo {
  position: relative;
  width: 6.4vw;
  height: 3.6vw;
  flex-shrink: 0;
}

/* Tab nav */
.tab-nav {
  display: flex;
  align-items: center;
  gap: 2.84vw;
}
.tab-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.4vw;
  height: 3.6vw;
  padding-bottom: 0.28vw;
  cursor: pointer;
  text-decoration: none;
}
.tab-icon {
  position: relative;
  width: 1.76vw;
  height: 1.76vw;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.tab-item:hover .tab-icon {
  transform: scale(1.12);
}
.tab-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* icon 状态切换：默认显示白色图标，active 显示彩色图标 */
.tab-icon .icon-active  { display: none; }
.tab-item.tab-active .tab-icon .icon-default { display: none; }
.tab-item.tab-active .tab-icon .icon-active  { display: block; }
.tab-label {
  font-family: 'eryamianhuatang', 'Arial', sans-serif;
  font-size: 1.28vw;
  color: #fff;
  white-space: nowrap;
  letter-spacing: 0.05vw;
  line-height: normal;
  transition: opacity 0.2s ease;
}
.tab-item:not(.tab-active):hover .tab-label {
  opacity: 0.72;
}
.tab-label-active {
  background: linear-gradient(to bottom, #fff 28.3%, #ffed86 61%, #ffea6f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Join button nav */
.tab-right {
  position: relative;
  display: flex;
  align-items: center;
}
.btn-join-nav {
  display: block;
  width: 8.04vw;
  height: 2.24vw;
}
.btn-join-nav img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* =============================================
   CONTENT AREA
============================================= */
.content {
  position: relative;
  width: 100vw;
  z-index: 1;
}

/* =============================================
   HOME HERO (0 ~ 43.2vw)
============================================= */
.home {
  position: relative;
  width: 100vw;
  height: 43.2vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 2.28vw 33.36vw;
  contain: layout style;
}
.home-bg {
  position: absolute;
  inset: 0 0 -4.8vw 0;
  z-index: 0;
  will-change: transform;
}

.bg-web {
  position: absolute;
  left: -18.16vw;
  top: 37.6vw;
  width: 136.32vw;
  height: 318.6vw;
  z-index: 1;
  pointer-events: none;
  will-change: transform;
}
.bg-web .fill-img {
  object-fit: fill;
}

.home-slg {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 3;
}
.game-logo {
  position: relative;
  width: 53.04vw;
  height: 18.64vw;
  flex-shrink: 0;
  filter: drop-shadow(0 0.16vw 0.16vw rgba(0,0,0,0.25));
}
.btn-join-hero {
  display: block;
  width: 15.8vw;
  height: 4.4vw;
  flex-shrink: 0;
  position: relative;
}
.btn-join-hero img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* =============================================
   ABOUT (top 48.92vw)
============================================= */
.about {
  position: relative;
  width: 100vw;
  margin-top: 5.72vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.4vw;
  z-index: 2;
  contain: layout style;
  content-visibility: auto;
  contain-intrinsic-size: auto 30vw;
}
.quote-left {
  position: absolute;
  left: 15.76vw;
  top: 4.4vw;
  font-family: 'eryamianhuatang', serif;
  font-size: 8vw;
  color: rgba(253, 230, 148, 0.5);
  line-height: normal;
  pointer-events: none;
}
.quote-right {
  position: absolute;
  left: 80.96vw;
  top: 12.08vw;
  font-family: 'eryamianhuatang', serif;
  font-size: 8vw;
  color: rgba(253, 230, 148, 0.5);
  line-height: normal;
  transform: rotate(180deg);
  pointer-events: none;
}

/* ---- Shared: section title row ---- */
.section-title {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.2vw;
  justify-content: center;
  width: 100%;
  height: 4.96vw;
}
.section-icon {
  display: block;
  width: 4.32vw;
  height: 4.32vw;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.section-icon img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.section-heading {
  font-family: 'eryamianhuatang', 'Arial Black', sans-serif;
  font-size: 3.2vw;
  font-weight: normal;
  line-height: normal;
  color: #000;
  text-align: center;
}

/* About body text */
.about-body {
  position: relative;
  width: 55.36vw;
  font-family: 'SourceHanSansVF', 'Source Han Sans SC', sans-serif;
  font-size: 1.28vw;
  font-weight: 700;
  color: #000;
  line-height: 2vw;
  letter-spacing: 0.027vw;
  text-align: center;
}
.about-body p + p { margin-top: 0.8vw; }
.text-gold { color: #f8aa1f; }

/* =============================================
   EVENTS  (top 76vw)
============================================= */
.events {
  position: relative;
  width: 100vw;
  margin-top: 5.5vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.12vw;
  z-index: 2;
  overflow: hidden; /* 防止 coverflow 侧卡造成横向滚动 */
}

.event-role {
  position: relative;
  width: 71.2vw;
  display: flex;
  flex-direction: column;
  gap: 2.4vw;
  align-items: center;
}

/* CSS 金色圆角矩形背景 */
.bg-event {
  position: absolute;
  top: 11.96vw;
  left: -2.04vw;
  width: 75.28vw;
  height: 15.48vw;
  background: #ffd877;
  border: 1px solid #f1d46d;
  border-radius: 4.88vw;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.event-texture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: overlay;
  opacity: 0.28;
}

/* ---- Coverflow 轮播容器 ----
   宽度 80vw（比 event-role 的 71.2vw 宽），向两侧延伸各 4.4vw，
   让相邻卡片各露出 ~6vw，配合 scale 产生景深透视感 */
.event-coverflow {
  position: relative;
  width: 80vw;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 轨道视口：宽度等于单张卡，超出部分显示（配合父级 overflow:hidden 做截断）*/
.event-viewport {
  width: 68vw;
  overflow: visible;
  position: relative;
  flex-shrink: 0;
}

/* 滑动轨道 */
.event-track {
  display: flex;
  gap: 6vw;
  will-change: transform;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 每张卡片 */
.event-card {
  position: relative;
  flex: 0 0 68vw;
  width: 68vw;
  height: 24.56vw;
  display: flex;
  align-items: center;
  padding: 0 3.64vw;
  overflow: hidden;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1),
              opacity  0.55s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.event-card.is-active {
  transform: scale(1);
  opacity: 1;
}

.event-card.is-prev,
.event-card.is-next {
  transform: scale(0.86);
  opacity: 0.45;
}

/* ---- 导航按钮 ---- */
.event-nav-btn {
  position: absolute;
  top: 50%;
  width: 3.44vw;
  height: 3.44vw;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  z-index: 10;
  flex-shrink: 0;
  transform: translateY(-50%);
  transition: transform 0.2s, opacity 0.2s;
}

.event-nav-btn img {
  width: 100%;
  height: 100%;
  display: block;
}

.event-nav-btn:hover:not(:disabled) {
  transform: translateY(-50%) scale(1.06);
}

.event-nav-btn:disabled {
  cursor: default;
}

.event-nav-prev {
  left: 0.8vw;
}

.event-nav-next {
  right: 0.8vw;
}
.event-card-bg {
  object-fit: fill;
}

/* Left text column */
.event-text {
  position: relative;
  z-index: 2;
  width: 33.72vw;
  height: 17.44vw;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex-shrink: 0;
}
.event-text-inner {
  display: flex;
  flex-direction: column;
  gap: 0.72vw;
}
.event-title {
  font-family: 'eryamianhuatang', 'Arial Black', sans-serif;
  font-size: 1.68vw;
  font-weight: normal;
  color: #000;
  line-height: normal;
  width: 33.72vw;
}
.event-desc-block {
  display: flex;
  flex-direction: column;
}
.event-desc {
  font-family: 'SourceHanSansVF', 'Source Han Sans SC', sans-serif;
  font-size: 1.04vw;
  font-weight: 500;
  color: #000;
  line-height: 1.6vw;
}
.event-desc strong { font-weight: 700; }

.event-bullets {
  font-family: 'SourceHanSansVF', 'Source Han Sans SC', sans-serif;
  font-size: 0.88vw;
  font-weight: 400;
  color: #91928b;
  line-height: normal;
  list-style: disc;
  padding-left: 1.44vw;
  width: 32.16vw;
  letter-spacing: 0.019vw;
}
.event-bullets li { margin-bottom: 0; line-height: normal; }

/* Card 2: title 40px 单行 */
.event-card:last-child .event-title { font-size: 1.6vw; width: 34.8vw; white-space: nowrap; }
.bullet-label { color: #91928b; }

/* Right event image */
.event-img-wrap {
  position: absolute;
  left: 37.64vw;
  top: 1.8vw;
  width: 28.24vw;
  height: 21.2vw;
  z-index: 1;
}
.event-img-border {
  position: absolute;
  left: 0.8vw;
  top: 0.28vw;
  width: 27.56vw;
  height: 20.68vw;
  border: 0.16vw solid #d6e665;
  border-radius: 1.48vw;
  overflow: hidden;
}
.event-img-border .event-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.48vw;
}

.btn-learn-more-new {
  flex-shrink: 0;
}

/* =============================================
   CREATOR KIT  (top 118.8vw)
============================================= */
.creator-kit {
  position: relative;
  width: 100vw;
  margin-top: 6vw;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.28vw;
  padding: 0 1.6vw;
  z-index: 2;
  contain: layout style;
  content-visibility: auto;
  contain-intrinsic-size: auto 36vw;
}
.kit-char-wrap {
  position: relative;
  width: 32vw;
  height: 32vw;
  flex-shrink: 0;
  overflow: visible;
}
.kit-char-bg {
  object-fit: contain !important;
}
.kit-char-img {
  position: absolute;
  top: 6.92vw;
  left: 6.76vw;
  width: 17.22vw;
  height: 19.07vw;
  object-fit: contain;
  display: block;
  animation: float-y 3s ease-in-out infinite;
  will-change: transform;
}
.kit-text {
  width: 34.08vw;
  height: 17.92vw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
}
.kit-text-top {
  display: flex;
  flex-direction: column;
  gap: 0.8vw;
}
.kit-desc {
  font-family: 'SourceHanSansVF', 'Source Han Sans SC', sans-serif;
  font-size: 1.28vw;
  font-weight: 500;
  color: #000;
  line-height: normal;
}
.kit-btns {
  display: flex;
  gap: 1.08vw;
  align-items: center;
}

/* ---- Shared buttons ---- */
.btn-gold {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1vw;
  height: 3.04vw;
  padding: 0 2.6vw;
  border-radius: 2.3vw;
  background: linear-gradient(to bottom, #ffc83b, #ffba00);
  border: 0.24vw solid #df910b;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  will-change: transform;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.btn-gold:hover {
  transform: scale(1.03);
  opacity: 0.88;
}
.btn-texture {
  position: absolute;
  bottom: -2.48vw;
  left: -14.28vw;
  width: 49.6vw;
  height: 13.92vw;
  mix-blend-mode: overlay;
  opacity: 0.28;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  background: url('../img/event-texture.webp') center/cover no-repeat;
}
.btn-gold span {
  font-family: 'eryamianhuatang', 'Arial Black', sans-serif;
  font-size: 1.28vw;
  font-weight: normal;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.026vw;
  white-space: nowrap;
  position: relative;
  z-index: 1;
  -webkit-text-stroke: 0.2vw #CF7419;
  paint-order: stroke fill;
}
.btn-dl-icon {
  display: block;
  position: relative;
  z-index: 1;
  width: 1.36vw;
  height: 1.44vw;
  flex-shrink: 0;
  overflow: hidden;
}
.btn-dl-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.btn-dark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3.04vw;
  padding: 0 2.6vw;
  border-radius: 2.3vw;
  background: #2d2d2d;
  border: 0.24vw solid #c0c0c0;
  cursor: pointer;
  text-decoration: none;
  will-change: transform;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.btn-dark:hover {
  transform: scale(1.03);
  opacity: 0.72;
}
.btn-dark span {
  font-family: 'eryamianhuatang', 'Arial Black', sans-serif;
  font-size: 1.28vw;
  font-weight: normal;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.026vw;
  white-space: nowrap;
}

/* =============================================
   TIER PERKS  (top 156.48vw)
============================================= */
.tiers {
  position: relative;
  width: 88.72vw;
  margin-left: auto;
  margin-right: auto;
  margin-top: 5.5vw;
  display: flex;
  flex-direction: column;
  gap: 2.4vw;
  align-items: center;
  z-index: 2;
  /* contain 移除：tiers-bg 向左溢出 -28.04vw，layout containment 会裁切它 */
}
.tiers-bg {
  position: absolute;
  left: -28.04vw;
  top: 12.8vw;
  width: 140.88vw;
  height: 33.44vw;
  pointer-events: none;
  z-index: 0;
}
.tiers-bg .fill-img {
  object-fit: fill;
}

.tier-list {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  z-index: 1;
}
.tier-card {
  position: relative;
  width: 24.16vw;
  height: 31.44vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.48vw;
  padding: 0 2.4vw;
  flex-shrink: 0;
}
.tier-card-bg {
  position: absolute;
  top: 5.48vw;
  left: -0.08vw;
  width: 24.4vw;
  height: 25.84vw;
  pointer-events: none;
}
.tier-card-bg img {
  object-fit: fill;
}
.tier-char {
  position: relative;
  flex-shrink: 0;
  z-index: 1;
}
.tier-apprentice .tier-char { width: 9.8vw;  height: 11.2vw; }
.tier-associate  .tier-char { width: 13vw;   height: 11.16vw; }
.tier-partner    .tier-char { width: 15.6vw; height: 12.6vw; }

.tier-info {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  z-index: 1;
}
.tier-name {
  font-family: 'eryamianhuatang', 'Arial Black', sans-serif;
  font-size: 2.4vw;
  font-weight: normal;
  color: #000;
  text-align: center;
  line-height: normal;
  height: 3.68vw;
  width: 100%;
}
.tier-perks {
  font-family: 'SourceHanSansVF', 'Source Han Sans SC', sans-serif;
  font-size: 1.04vw;
  font-weight: 500;
  color: #000;
  line-height: 1.44vw;
  padding-left: 1.2vw;
  width: 100%;
  max-width: 19.36vw;
  box-sizing: border-box;
}
.tier-associate { padding: 0 2.08vw; }
.tier-associate .tier-perks { max-width: 20vw; }
.tier-perks li + li { margin-top: 0.64vw; }

.tier-arrow {
  position: relative;
  width: 3.2vw;
  height: 3.4vw;
  flex-shrink: 0;
  mix-blend-mode: soft-light;
}
.tier-arrow .fill-img {
  object-fit: contain;
}

/* =============================================
   READY TO START  (top 208.4vw)
============================================= */
.ready {
  position: relative;
  width: 100vw;
  height: 32vw;
  margin-top: 12vw;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5.6vw;
  padding: 0 1.6vw;
  z-index: 2;
  contain: layout style;
  content-visibility: auto;
  contain-intrinsic-size: auto 32vw;
}
.ready-char-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}
.ready-char-img {
  position: relative;
  width: 24vw;
  height: 26.88vw;
}
.ready-char-shadow {
  position: relative;
  width: 13.36vw;
  height: 1.88vw;
  margin: -0.56vw -0.56vw 0;
}
.ready-text {
  width: 34.08vw;
  height: 19.12vw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
}
.ready-text-top {
  display: flex;
  flex-direction: column;
  gap: 1.6vw;
}
.ready-heading {
  font-family: 'eryamianhuatang', 'Arial Black', sans-serif;
  font-size: 3.2vw;
  font-weight: normal;
  color: #000;
  line-height: 3.2vw;
  width: 39.28vw;
}
.ready-desc {
  font-family: 'SourceHanSansVF', 'Source Han Sans SC', sans-serif;
  font-size: 1.28vw;
  font-weight: 500;
  color: #000;
  line-height: normal;
}
.btn-apply { align-self: flex-start; }

/* =============================================
   FOOTER  (top 242.4vw, height 17.6vw)
============================================= */
.footer {
  position: relative;
  width: 100vw;
  height: 17.6vw;
  margin-top: 2vw;
  background: #2d2d2d;
  box-shadow: 0 -0.56vw 0 0 #f8aa1f;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.24vw;
  z-index: 2;
  contain: layout style;
  content-visibility: auto;
  contain-intrinsic-size: auto 17.6vw;
}
.footer-logo {
  position: relative;
  width: 14.28vw;
  height: 5.6vw;
}
.footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
}
.footer-links {
  font-family: 'SourceHanSansVF', 'Arial', sans-serif;
  font-size: 1.12vw;
  font-weight: 700;
  color: #fff;
  text-align: center;
  line-height: 1.84vw;
}
.footer-links a {
  color: #fff;
  text-decoration: underline;
  text-decoration-skip-ink: none;
}
.footer-links a:hover { color: #f8aa1f; }
.footer-sep { color: #fff; }
.footer-copy {
  font-family: 'SourceHanSansVF', 'Arial', sans-serif;
  font-size: 1.12vw;
  font-weight: 700;
  color: #fff;
  text-align: center;
  line-height: 1.84vw;
}

/* ---------- GSAP 初始隐藏（防止入场动效前闪烁） ---------- */
body:not(.loaded) #tab-fixed,
body:not(.loaded) .game-logo,
body:not(.loaded) .btn-join-hero {
  visibility: hidden;
}

/* =============================================
   按钮 Hover 状态
============================================= */
.btn-join-nav {
  will-change: transform;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.btn-join-nav:hover {
  transform: scale(1.07);
  opacity: 0.88;
}
.btn-join-hero {
  will-change: transform;
  transition: transform 0.22s ease;
}
.btn-join-hero:hover {
  transform: scale(1.05);
}

/* =============================================
   角色悬浮（Float）动效
============================================= */
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-0.88vw); }
}

/* Ready to Start 角色图（稍慢，相位偏移） */
.ready-char-img {
  animation: float-y 3.4s ease-in-out 0.6s infinite;
  will-change: transform;
}
