/* ==========================================================================
   火影世界 · 忍界新篇 — 宣传页样式
   无外部依赖；所有视觉由 CSS 生成，素材缺失时显示占位
   ========================================================================== */

:root {
  --ink: #07080d;
  --ink-2: #0b0d14;
  --ink-3: #10131c;
  --text: #e9ecf4;
  --muted: #98a1b2;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .16);

  --orange: #ff7a1a;
  --orange-2: #ffb347;
  --crimson: #e23b57;
  --thunder: #9bd1ff;
  --water: #38bdf8;
  --shadow: #a78bfa;
  --blade: #6ee7b7;
  --gold: #f6c453;

  --radius: 16px;
  --maxw: 1180px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

::selection { background: rgba(255, 122, 26, .32); }

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

/* ---------- 顶部导航 ---------- */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 28px;
  justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 44px);
  transition: background .35s var(--ease), border-color .35s var(--ease),
              padding .35s var(--ease);
  border-bottom: 1px solid transparent;
}

.topbar.is-scrolled {
  padding-block: 12px;
  background: rgba(7, 8, 13, .78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  font-size: 15px;
  white-space: nowrap;
}

.brand-mark {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 30%, #fff 0 12%, transparent 13%),
    conic-gradient(from 200deg, var(--orange), var(--crimson), var(--orange-2), var(--orange));
  box-shadow: 0 0 14px rgba(255, 122, 26, .55);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--ink);
}

.nav {
  display: flex;
  gap: clamp(14px, 2.4vw, 30px);
  font-size: 14px;
  color: var(--muted);
}

.nav a {
  position: relative;
  padding: 4px 0;
  transition: color .2s;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--orange);
  transition: width .25s var(--ease);
}

.nav a:hover { color: var(--text); }
.nav a:hover::after { width: 100%; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease),
              background .25s, border-color .25s;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange) 0%, #ff5c1a 55%, var(--crimson) 130%);
  color: #1a0a02;
  box-shadow: 0 10px 30px -10px rgba(255, 122, 26, .75);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px -12px rgba(255, 122, 26, .9);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, .03);
}

.btn-ghost:hover {
  border-color: rgba(255, 179, 71, .55);
  background: rgba(255, 122, 26, .08);
  transform: translateY(-2px);
}

.nav-cta { padding: 9px 20px; font-size: 13px; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 120px clamp(20px, 5vw, 48px) 90px;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-video,
.hero-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video { opacity: 0; transition: opacity 1s ease; }
.hero-video.is-ready { opacity: 1; }

.hero-fallback {
  background:
    radial-gradient(60% 52% at 22% 18%, rgba(255, 122, 26, .30), transparent 62%),
    radial-gradient(52% 48% at 82% 26%, rgba(226, 59, 87, .26), transparent 64%),
    radial-gradient(70% 60% at 50% 108%, rgba(56, 189, 248, .14), transparent 66%),
    linear-gradient(180deg, #0a0c14 0%, #07080d 62%, #05060a 100%);
}

.hero-fallback::before,
.hero-fallback::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .07);
  animation: pulse-ring 9s ease-in-out infinite;
}

.hero-fallback::before {
  width: 62vmax;
  height: 62vmax;
  left: -18vmax;
  top: -22vmax;
}

.hero-fallback::after {
  width: 46vmax;
  height: 46vmax;
  right: -14vmax;
  bottom: -16vmax;
  animation-delay: -4.5s;
}

@keyframes pulse-ring {
  0%, 100% { transform: scale(1); opacity: .55; }
  50% { transform: scale(1.06); opacity: 1; }
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 8, 13, .62) 0%, rgba(7, 8, 13, .30) 38%, rgba(7, 8, 13, .92) 92%),
    radial-gradient(120% 80% at 50% 110%, rgba(7, 8, 13, .95), transparent 60%);
}

.hero-inner {
  width: min(var(--maxw), 100%);
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 clamp(16px, 2.4vw, 26px);
  padding: 7px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  font-size: 13px;
  letter-spacing: .16em;
  color: #cfd5e2;
  backdrop-filter: blur(6px);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange-2);
  box-shadow: 0 0 0 4px rgba(255, 122, 26, .18);
  animation: dot-blink 2.4s ease-in-out infinite;
}

@keyframes dot-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

.hero-title {
  margin: 0;
  line-height: .96;
  display: grid;
  justify-items: center;
  gap: 14px;
}

.hero-title-cn {
  font-size: clamp(3rem, 11.5vw, 8.4rem);
  font-weight: 800;
  letter-spacing: .1em;
  text-indent: .1em;
  background: linear-gradient(180deg, #ffffff 0%, #ffe6cf 46%, #ff9a47 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 18px 40px rgba(255, 122, 26, .28));
}

.hero-title-en {
  font-size: clamp(.62rem, 1.5vw, .95rem);
  letter-spacing: .58em;
  text-indent: .58em;
  color: rgba(233, 236, 244, .42);
  font-weight: 600;
}

.hero-lead {
  margin: clamp(20px, 3vw, 32px) auto 0;
  max-width: 40em;
  font-size: clamp(.95rem, 1.6vw, 1.14rem);
  color: #c8cfdd;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .7);
}

.hero-actions {
  margin-top: clamp(26px, 4vw, 40px);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.hero-chips {
  margin: clamp(30px, 5vw, 52px) auto 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  justify-content: center;
  max-width: 640px;
}

.hero-chips li {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(10, 12, 20, .5);
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--muted);
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: .3em;
  color: rgba(255, 255, 255, .35);
}

.hero-scroll i {
  width: 1px;
  height: 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .5), transparent);
  animation: scroll-hint 2.2s ease-in-out infinite;
}

@keyframes scroll-hint {
  0% { transform: scaleY(.3); transform-origin: top; opacity: .2; }
  50% { transform: scaleY(1); transform-origin: top; opacity: .9; }
  100% { transform: scaleY(.3); transform-origin: bottom; opacity: .2; }
}

/* ---------- 通用区块 ---------- */
.section {
  position: relative;
  padding: clamp(76px, 10vw, 138px) clamp(20px, 5vw, 48px);
}

.section > .grid,
.section > .gallery,
.section > .section-head,
.section > .timeline,
.updates-wrap {
  width: min(var(--maxw), 100%);
  margin-inline: auto;
}

.section-tight { padding-block: clamp(60px, 8vw, 110px); }

.section-head {
  text-align: center;
  margin-bottom: clamp(38px, 5vw, 62px);
}

.section-head.align-left { text-align: left; }

.kicker {
  margin: 0 0 12px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .34em;
  color: var(--orange-2);
  text-transform: uppercase;
}

.section h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.25;
}

.section-sub {
  margin: 14px auto 0;
  max-width: 46em;
  color: var(--muted);
  font-size: .96rem;
}

.align-left .section-sub { margin-inline: 0; }

/* ---------- 卡片 ---------- */
.grid { display: grid; gap: clamp(14px, 1.8vw, 22px); }

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.card {
  position: relative;
  padding: clamp(24px, 2.6vw, 34px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012) 60%);
  overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent, var(--orange)), transparent);
  opacity: .5;
}

.card::after {
  content: "";
  position: absolute;
  inset: auto -30% -60% -30%;
  height: 70%;
  background: radial-gradient(closest-side, var(--accent, var(--orange)), transparent 72%);
  opacity: .07;
  transition: opacity .35s;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--accent, var(--orange)) 40%, transparent);
  box-shadow: 0 24px 50px -30px rgba(0, 0, 0, .9);
}

.card:hover::after { opacity: .16; }

.card[data-accent="thunder"] { --accent: var(--thunder); }
.card[data-accent="water"]   { --accent: var(--water); }
.card[data-accent="shadow"]  { --accent: var(--shadow); }
.card[data-accent="blade"]   { --accent: var(--blade); }
.card[data-accent="gold"]    { --accent: var(--gold); }
.card[data-accent="crimson"] { --accent: var(--crimson); }

.card-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  color: var(--accent, var(--orange));
  filter: drop-shadow(0 0 12px color-mix(in srgb, var(--accent, var(--orange)) 45%, transparent));
}

.card-icon svg { width: 100%; height: 100%; }

.card h3 {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: .03em;
}

.card-tag {
  margin: 6px 0 14px;
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--accent, var(--orange));
  opacity: .9;
}

.card > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: .93rem;
  line-height: 1.85;
}

/* ---------- 版本速览 ---------- */
.section-tight {
  background:
    radial-gradient(70% 100% at 0% 0%, rgba(255, 122, 26, .055), transparent 60%),
    var(--ink-2);
  border-block: 1px solid var(--line);
}

.timeline {
  list-style: none;
  margin: 0 auto;
  padding: 0 0 0 8px;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(180deg, rgba(255, 122, 26, .55), rgba(255, 255, 255, .06));
}

.timeline li {
  position: relative;
  padding: 0 0 34px 40px;
}

.timeline li:last-child { padding-bottom: 0; }

.tl-dot {
  position: absolute;
  left: 3px;
  top: 8px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ink-2);
  border: 1px solid rgba(255, 179, 71, .8);
  box-shadow: 0 0 0 4px rgba(255, 122, 26, .12);
}

.timeline li:first-child .tl-dot {
  background: var(--orange);
  box-shadow: 0 0 0 5px rgba(255, 122, 26, .22), 0 0 22px rgba(255, 122, 26, .8);
}

.tl-date {
  margin: 0 0 4px;
  font-size: 11.5px;
  letter-spacing: .22em;
  color: var(--orange-2);
  text-transform: uppercase;
}

.tl-body h3 {
  margin: 0 0 6px;
  font-size: 1.06rem;
  font-weight: 700;
}

.tl-body p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
  max-width: 62em;
}

/* ---------- 截图 ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 1.4vw, 16px);
}

.shot {
  position: relative;
  display: block;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--ink-3);
  aspect-ratio: 16 / 9;
  cursor: zoom-in;
  overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease), filter .3s;
}

.shot:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 179, 71, .45);
  box-shadow: 0 22px 40px -26px rgba(0, 0, 0, .95);
}

.shot:hover img { transform: scale(1.035); }

.shot-cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px 14px 10px;
  font-size: 12.5px;
  letter-spacing: .08em;
  color: #dfe4ee;
  background: linear-gradient(180deg, transparent, rgba(4, 5, 9, .88));
  text-align: left;
  opacity: 0;
  transition: opacity .3s;
}

.shot:hover .shot-cap { opacity: 1; }

.shot-ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 4px;
  text-align: center;
  border-radius: inherit;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 11px),
    linear-gradient(160deg, #12151f, #0a0c12);
  color: rgba(255, 255, 255, .28);
}

.shot-ph::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(255, 255, 255, .12);
  border-radius: 8px;
}

.shot-ph em {
  font-style: normal;
  font-size: 13px;
  letter-spacing: .24em;
  color: rgba(255, 255, 255, .42);
}

.shot-ph small {
  font-size: 10.5px;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .22);
}

/* ---------- 加入 ---------- */
.section-join {
  background:
    radial-gradient(60% 90% at 78% 20%, rgba(255, 122, 26, .16), transparent 62%),
    radial-gradient(50% 80% at 12% 90%, rgba(226, 59, 87, .12), transparent 60%),
    var(--ink);
  border-top: 1px solid var(--line);
}

.join-wrap {
  width: min(var(--maxw), 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) auto;
  align-items: center;
  gap: clamp(30px, 5vw, 70px);
  padding: clamp(30px, 4.6vw, 58px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(155deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .012));
  backdrop-filter: blur(4px);
}

.join-points {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: .94rem;
}

.join-points li {
  position: relative;
  padding-left: 20px;
}

.join-points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .72em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--orange);
  transform: rotate(45deg);
}

.qq-line {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: .95rem;
}

.qq-num {
  padding: 4px 10px;
  margin-left: 4px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
  font-variant-numeric: tabular-nums;
  letter-spacing: .1em;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}

.qq-num:hover { border-color: var(--orange-2); color: var(--orange-2); }

.qr-card { display: grid; justify-items: center; gap: 12px; }

.qr-frame {
  position: relative;
  width: clamp(180px, 22vw, 230px);
  aspect-ratio: 1;
  padding: 12px;
  border-radius: 18px;
  background: #f4f6fa;
  box-shadow: 0 20px 50px -22px rgba(0, 0, 0, .9);
}

.qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  display: none;
}

.qr-frame img.is-ready { display: block; }

.qr-ph {
  position: absolute;
  inset: 12px;
  display: grid;
  place-content: center;
  gap: 6px;
  text-align: center;
  border-radius: 8px;
  border: 1px dashed rgba(11, 13, 20, .28);
  color: rgba(11, 13, 20, .45);
  font-size: 13px;
  letter-spacing: .2em;
}

.qr-ph small {
  font-size: 10px;
  letter-spacing: .06em;
  color: rgba(11, 13, 20, .3);
}

.qr-tip {
  margin: 0;
  font-size: 12px;
  letter-spacing: .3em;
  color: var(--muted);
}

/* ---------- 页脚 ---------- */
.footer {
  padding: 46px clamp(20px, 5vw, 48px) 56px;
  border-top: 1px solid var(--line);
  background: #05060a;
}

.footer-inner {
  width: min(var(--maxw), 100%);
  margin-inline: auto;
  text-align: center;
}

.footer-brand {
  margin: 0 0 12px;
  font-weight: 700;
  letter-spacing: .16em;
  font-size: 14px;
}

.footer-note {
  margin: 0 auto 16px;
  max-width: 52em;
  color: rgba(152, 161, 178, .72);
  font-size: 12.5px;
  line-height: 1.9;
}

.footer-meta {
  margin: 0;
  color: rgba(152, 161, 178, .62);
  font-size: 12.5px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.footer-meta a { border-bottom: 1px solid rgba(255, 255, 255, .14); }
.footer-meta a:hover { color: var(--orange-2); border-color: var(--orange-2); }

/* ---------- 灯箱 ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(3, 4, 7, .92);
  backdrop-filter: blur(8px);
  animation: lb-in .22s var(--ease);
}

.lightbox[hidden] { display: none; }

@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }

.lb-figure { margin: 0; display: grid; gap: 14px; justify-items: center; }

.lb-figure img {
  max-width: min(1200px, 94vw);
  max-height: 82vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 40px 90px -40px #000;
}

.lb-figure figcaption {
  font-size: 13px;
  letter-spacing: .14em;
  color: var(--muted);
}

.lb-close {
  position: absolute;
  top: clamp(12px, 2.4vw, 26px);
  right: clamp(14px, 2.6vw, 32px);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .06);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s, transform .2s;
}

.lb-close:hover { background: rgba(255, 255, 255, .12); transform: rotate(90deg); }

/* ---------- 入场动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .join-wrap { grid-template-columns: 1fr; text-align: left; }
  .qr-card { justify-items: start; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .hero { padding-top: 108px; }
}

@media (max-width: 560px) {
  .hero { min-height: 92svh; }
  .hero-chips li { font-size: 11.5px; }
  .br-pc { display: none; }
  .hero-scroll { display: none; }
  .timeline li { padding-left: 30px; }
  .timeline::before { left: 8px; }
  .nav-cta { display: none; }
  .topbar { padding-inline: 18px; }
  .join-wrap { padding: 24px 20px; }
  .shot-ph small { display: none; }
}

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