/* 谁是枪王 · 官方介绍站 */
:root {
  --bg: #07080c;
  --bg2: #0e1118;
  --card: #141922;
  --line: #2a3140;
  --text: #f3f4f6;
  --muted: #8b93a0;
  --accent: #d3542e;
  --accent-hot: #e07040;
  --gold: #e0b040;
  --safe: env(safe-area-inset-bottom, 0px);
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(ellipse 90% 55% at 50% -15%, rgba(211, 84, 46, 0.28), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 30%, rgba(224, 176, 64, 0.08), transparent 45%),
    linear-gradient(180deg, #05060a 0%, var(--bg2) 40%, #090b10 100%);
  overflow-x: hidden;
}

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

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

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px clamp(14px, 4vw, 36px);
  min-height: 52px;
  background: rgba(7, 8, 12, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(42, 49, 64, 0.8);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(1.35rem, 3.6vw, 1.75rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-shadow: 0 2px 0 #8a3018, 0 0 28px rgba(211, 84, 46, 0.35);
  line-height: 1;
}

.logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45));
}

.logo-text {
  display: inline-flex;
  flex-direction: row;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 12px;
  line-height: 1;
}

.logo-text span,
.logo span {
  display: inline;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-top: 0;
  text-shadow: none;
  white-space: nowrap;
}

.age-tip {
  color: #e87878;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.86rem;
}

.footer-age {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 8px;
  border: 1px solid rgba(232, 120, 120, 0.45);
  border-radius: 6px;
  font-size: 0.75rem;
  vertical-align: middle;
}

.hero-logo {
  width: clamp(110px, 22vw, 168px);
  height: auto;
  margin-bottom: 14px;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.55));
  animation: logoIn 0.7s ease-out both;
}

@keyframes logoIn {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

.hero-inner .age-tip {
  margin: 0 0 14px;
  font-size: clamp(0.85rem, 2.2vw, 1rem);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a:not(.btn-play) {
  color: var(--muted);
  font-size: 0.88rem;
  padding: 8px 10px;
  border-radius: 8px;
}

.nav-links a:not(.btn-play):hover { color: #fff; background: rgba(255,255,255,0.04); }

.btn-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--accent-hot);
  background: linear-gradient(180deg, #d3542e, #9a3218);
  color: #fff !important;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: 0 8px 24px rgba(211, 84, 46, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-play:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(211, 84, 46, 0.45);
}

.btn-ghost {
  display: inline-flex;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text) !important;
  background: rgba(20, 25, 34, 0.8);
}

.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: grid;
  align-items: end;
  padding: clamp(24px, 6vw, 72px) clamp(16px, 4vw, 40px) clamp(40px, 8vw, 80px);
  isolation: isolate;
}

/* 官网首页：仅首屏，铺满视口 */
body.home-only {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #05060a;
}

body.home-only .hero {
  flex: 1;
  min-height: 0;
  min-height: calc(100vh - 52px);
  min-height: calc(100dvh - 52px);
  align-items: end;
}

.nav-links a.is-here {
  color: var(--gold);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* 全幅海报：黄衣/蓝衣新玩家形象 · 偏右构图留给左侧文案 */
.hero-poster {
  position: absolute;
  inset: 0 -4% -8% 6%;
  background:
    url("../assets/brand/hero-poster.jpg") 76% 22% / cover no-repeat;
  transform-origin: 70% 35%;
  animation: posterDrift 22s ease-in-out infinite alternate;
  will-change: transform;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(105deg,
      rgba(5, 6, 10, 0.96) 0%,
      rgba(5, 6, 10, 0.88) 26%,
      rgba(5, 6, 10, 0.45) 48%,
      rgba(5, 6, 10, 0.12) 68%,
      rgba(5, 6, 10, 0.28) 100%),
    linear-gradient(180deg,
      rgba(5, 6, 10, 0.35) 0%,
      transparent 28%,
      rgba(5, 6, 10, 0.55) 78%,
      rgba(5, 6, 10, 0.92) 100%),
    radial-gradient(ellipse 55% 50% at 18% 70%, rgba(211, 84, 46, 0.16), transparent 55%);
}

.hero-embers {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(1.5px 1.5px at 72% 58%, rgba(255, 190, 90, 0.85), transparent),
    radial-gradient(1px 1px at 81% 66%, rgba(255, 160, 70, 0.7), transparent),
    radial-gradient(1.5px 1.5px at 64% 72%, rgba(255, 210, 120, 0.55), transparent),
    radial-gradient(1px 1px at 88% 48%, rgba(255, 180, 80, 0.65), transparent),
    radial-gradient(1px 1px at 76% 38%, rgba(255, 200, 100, 0.45), transparent);
  animation: emberFloat 7s ease-in-out infinite alternate;
  opacity: 0.85;
  mix-blend-mode: screen;
}

@keyframes posterDrift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.06) translate3d(-1.2%, 0.8%, 0); }
}

@keyframes emberFloat {
  from { transform: translate3d(0, 0, 0); opacity: 0.55; }
  to { transform: translate3d(-1%, -2.5%, 0); opacity: 0.95; }
}

.hero-inner {
  position: relative;
  z-index: 3;
  max-width: 720px;
  animation: heroCopyIn 0.85s ease-out both;
}

@keyframes heroCopyIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 720px) {
  .hero-poster {
    inset: 0;
    background-position: 78% 18%;
    animation: none;
    transform: scale(1.04);
  }
  .hero-bg::after {
    background:
      linear-gradient(180deg,
        rgba(5, 6, 10, 0.55) 0%,
        rgba(5, 6, 10, 0.42) 38%,
        rgba(5, 6, 10, 0.88) 72%,
        rgba(5, 6, 10, 0.97) 100%),
      linear-gradient(90deg,
        rgba(5, 6, 10, 0.7) 0%,
        rgba(5, 6, 10, 0.25) 55%,
        rgba(5, 6, 10, 0.4) 100%);
  }
  .hero-embers { opacity: 0.4; }
}

.hero-kicker {
  display: inline-block;
  color: var(--gold);
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2.4rem, 8vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: 0.12em;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 4px 0 #5a1808, 0 0 40px rgba(211,84,46,0.35);
  margin-bottom: 16px;
}

.hero p {
  color: #c5cad3;
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  line-height: 1.7;
  max-width: 34em;
  margin-bottom: 28px;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.section {
  padding: clamp(48px, 8vw, 96px) clamp(16px, 4vw, 40px);
  max-width: 1180px;
  margin: 0 auto;
}

.section-head {
  margin-bottom: 28px;
  max-width: 40em;
}

.section-head h2 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.section-head p {
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.98rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature {
  background: linear-gradient(165deg, #1a202b, #12161e);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 20px;
  min-height: 160px;
}

.feature .num {
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.feature h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

.feature p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.shot-frame {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  background: #000;
}

.shot-frame img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
  max-height: 560px;
}

.steps {
  display: grid;
  gap: 14px;
}

.step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(20, 25, 34, 0.85);
  border: 1px solid var(--line);
}

.step i {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(211,84,46,0.18);
  color: var(--gold);
  font-style: normal;
  font-weight: 800;
}

.step h4 { margin-bottom: 4px; font-size: 1rem; }
.step p { color: var(--muted); font-size: 0.88rem; line-height: 1.5; }

.stage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.stage-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.15s, transform 0.15s;
}

.stage-card:hover {
  border-color: rgba(224, 176, 64, 0.45);
  transform: translateY(-2px);
}

.stage-card canvas,
.stage-card .thumb {
  width: 100%;
  aspect-ratio: 1;
  background: #000;
  display: block;
}

.stage-card .body {
  padding: 12px 14px 16px;
}

.stage-card .stage-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.stage-card .tag {
  display: inline-block;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.stage-card .tag.vip {
  color: var(--gold);
  border-color: #806020;
  background: rgba(224, 176, 64, 0.08);
}

.stage-card .stage-no {
  font-size: 0.72rem;
  color: #7a8494;
  letter-spacing: 0.06em;
}

.stage-card h3 {
  font-size: 0.98rem;
  margin-bottom: 6px;
}

.stage-card .stage-stat {
  color: #9aa8b8;
  font-size: 0.78rem;
  margin-bottom: 6px;
}

.stage-card .stage-tip,
.stage-card p {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.stage-card.is-vip {
  border-color: rgba(224, 176, 64, 0.22);
}

/* 关卡图鉴工具栏 */
.section-atlas {
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(211, 84, 46, 0.08), transparent 60%),
    transparent;
}

.atlas-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  margin-bottom: 22px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(22, 26, 34, 0.95), rgba(12, 14, 18, 0.9));
}

.atlas-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 0.86rem;
  color: var(--muted);
}

.atlas-stats b {
  color: #e8eef6;
  font-weight: 700;
  margin-right: 2px;
}

.atlas-stats .gold b { color: var(--gold); }

.atlas-stats .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #3a4454;
}

.atlas-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.atlas-filter {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.82rem;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.atlas-filter:hover {
  color: #fff;
  border-color: #4a5568;
}

.atlas-filter.active {
  color: #fff;
  border-color: rgba(211, 84, 46, 0.65);
  background: linear-gradient(180deg, rgba(211, 84, 46, 0.35), rgba(154, 50, 24, 0.45));
  box-shadow: 0 0 0 1px rgba(211, 84, 46, 0.2);
}

.about-extra {
  margin-top: 36px;
}

.about-features {
  margin-bottom: 28px;
}

.roster-inline-title {
  font-size: 1rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin: 0 0 14px;
  font-weight: 700;
}

/* 角色图鉴 */
.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.roster-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.15s, transform 0.15s;
}

.roster-card:hover {
  border-color: rgba(224, 176, 64, 0.45);
  transform: translateY(-2px);
}

.roster-art {
  background:
    radial-gradient(ellipse 60% 50% at 50% 70%, rgba(211,84,46,.18), transparent 70%),
    #000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 12px 8px;
  min-height: 160px;
}

.roster-art img {
  width: 112px;
  height: 112px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,.45));
}

.roster-card .body {
  padding: 10px 14px 16px;
}

.roster-card h3 {
  font-size: 0.92rem;
  margin-bottom: 4px;
  color: var(--gold);
}

.roster-card p {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.cta-band {
  margin: 20px clamp(16px, 4vw, 40px) 60px;
  padding: clamp(28px, 5vw, 48px);
  border-radius: 22px;
  border: 1px solid rgba(211,84,46,0.35);
  background:
    radial-gradient(ellipse at 20% 0%, rgba(211,84,46,0.25), transparent 55%),
    linear-gradient(135deg, #161b24, #0e1218);
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.cta-band p {
  color: var(--muted);
  margin-bottom: 20px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px clamp(16px, 4vw, 40px) calc(28px + var(--safe));
  color: var(--muted);
  font-size: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
}

.site-footer a { color: var(--gold); }

.page-hero {
  padding: 48px clamp(16px, 4vw, 40px) 20px;
  max-width: 1180px;
  margin: 0 auto;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.page-hero p {
  color: var(--muted);
  max-width: 40em;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .shot-frame img {
    aspect-ratio: 16 / 10;
    max-height: 420px;
    object-position: center top;
  }
  .nav-links a.hide-sm { display: none; }
  .atlas-toolbar { flex-direction: column; align-items: stretch; }
  .atlas-filters { justify-content: flex-start; }
}

/* 手机顶栏：两行整齐排布，避免链接乱换行 */
@media (max-width: 780px) {
  .site-nav {
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    padding: 10px 12px;
    padding-top: max(10px, env(safe-area-inset-top, 0px));
    min-height: 0;
  }

  .logo {
    flex: 1 1 auto;
    min-width: 0;
    gap: 8px;
    font-size: 1.05rem;
    letter-spacing: 0.06em;
  }

  .logo-img {
    width: 32px;
    height: 32px;
  }

  .logo-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-wrap: nowrap;
  }

  /* 副标题在窄屏占宽，隐藏 */
  .logo-text > span {
    display: none !important;
  }

  .nav-links {
    flex: 1 1 100%;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    align-items: center;
    gap: 6px;
    justify-content: stretch;
  }

  .nav-links a:not(.btn-play) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 4px;
    font-size: 0.78rem;
    white-space: nowrap;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(42, 49, 64, 0.65);
  }

  .nav-links a.is-here {
    color: var(--gold);
    border-color: rgba(224, 176, 64, 0.35);
    background: rgba(224, 176, 64, 0.1);
  }

  .nav-links .btn-play {
    padding: 9px 12px;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(211, 84, 46, 0.3);
  }

  body.home-only .hero {
    min-height: calc(100dvh - 96px);
    padding: 20px 14px calc(28px + var(--safe));
    align-items: end;
  }

  .hero-inner {
    max-width: 100%;
  }

  .hero-logo {
    width: clamp(72px, 22vw, 110px);
    margin-bottom: 10px;
  }

  .hero h1 {
    font-size: clamp(1.85rem, 9vw, 2.6rem);
    letter-spacing: 0.08em;
    margin-bottom: 10px;
  }

  .hero p {
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 18px;
  }

  .hero-cta {
    gap: 8px;
  }

  .hero-cta .btn-play,
  .hero-cta .btn-ghost {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
    padding: 11px 14px;
    font-size: 0.86rem;
  }
}

@media (max-width: 420px) {
  .nav-links {
    grid-template-columns: 1fr 1fr;
  }

  .nav-links .btn-play {
    grid-column: 1 / -1;
    width: 100%;
  }

  .logo {
    font-size: 0.98rem;
  }
}
