/* ============================================================
   王者荣耀粉丝介绍站 · 样式表
   主色调：深蓝墨色背景 + 金色点缀
   ============================================================ */

/* ---------- 设计令牌（CSS 变量） ---------- */
:root {
  /* 颜色 */
  --bg-deep: #0a0e27;
  --bg-mid: #1a1f3a;
  --bg-soft: #232849;
  --bg-card: rgba(35, 40, 73, 0.55);
  --gold: #d4af37;
  --gold-light: #f0c75e;
  --gold-soft: rgba(212, 175, 55, 0.15);
  --gold-border: rgba(212, 175, 55, 0.35);
  --text-primary: #e8ecf5;
  --text-secondary: #9aa3c0;
  --text-muted: #6b7299;
  --border-soft: rgba(255, 255, 255, 0.08);

  /* 间距 */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* 圆角 */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  /* 阴影 */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.45);
  --shadow-gold: 0 8px 32px rgba(212, 175, 55, 0.18);

  /* 字体 */
  --font-stack: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;

  /* 布局 */
  --nav-h: 64px;
  --container: 1200px;

  /* 断点（仅作记录，媒体查询中直接使用像素值） */
  --bp-sm: 768px;
  --bp-md: 1024px;
}

/* ---------- 基础重置 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: var(--font-stack);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
}

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

ul {
  list-style: none;
}

/* ---------- 通用容器 ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ---------- 通用区块 ---------- */
.section {
  padding: var(--space-2xl) 0;
  position: relative;
}

.section-alt {
  background:
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-mid) 50%, var(--bg-deep) 100%);
}

.section-head {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--gold-border);
  border-radius: 999px;
  margin-bottom: var(--space-sm);
  background: var(--gold-soft);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 60%, #b8902a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: var(--space-xs);
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* ---------- 通用卡片 ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg), var(--shadow-gold);
  border-color: var(--gold-border);
}

/* ---------- 通用网格 ---------- */
.grid {
  display: grid;
  gap: var(--space-md);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #2a1e00;
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(212, 175, 55, 0.35);
}

.btn-ghost {
  border-color: var(--gold-border);
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.06);
}

.btn-ghost:hover {
  background: rgba(212, 175, 55, 0.16);
  transform: translateY(-3px);
}

/* ============================================================
   导航栏
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: transparent;
  transition: background 0.35s ease, backdrop-filter 0.35s ease, box-shadow 0.35s ease;
}

.navbar.scrolled {
  background: rgba(10, 14, 39, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid var(--border-soft);
}

.nav-inner {
  max-width: var(--container);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #2a1e00;
  font-size: 1.1rem;
  font-weight: 800;
}

.brand-text {
  color: var(--text-primary);
  font-size: 1.05rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-links a {
  font-size: 0.95rem;
  color: var(--text-secondary);
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--gold-light);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 0.5rem 1.2rem !important;
  border: 1px solid var(--gold-border);
  border-radius: 999px;
  color: var(--gold-light) !important;
  background: var(--gold-soft);
}

.nav-cta::after {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold-light);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   Hero 头图区
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
  background-image:
    linear-gradient(135deg, rgba(10, 14, 39, 0.92) 0%, rgba(26, 31, 58, 0.78) 50%, rgba(10, 14, 39, 0.92) 100%),
    url("https://game.gtimg.cn/images/yxzj/web202311/bg-ClAKvwxK.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 30%, rgba(212, 175, 55, 0.18), transparent 55%),
    linear-gradient(180deg, transparent 60%, var(--bg-deep) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  animation: heroFade 1.2s ease both;
}

.hero-eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  color: var(--gold);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(3rem, 12vw, 7rem);
  font-weight: 800;
  letter-spacing: 0.25em;
  line-height: 1.1;
  margin-bottom: var(--space-md);
  background: linear-gradient(180deg, #fff6d8 0%, var(--gold-light) 35%, var(--gold) 70%, #9c7619 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 8px 40px rgba(212, 175, 55, 0.25);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: var(--text-primary);
  letter-spacing: 0.12em;
  margin-bottom: var(--space-xl);
  opacity: 0.92;
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll-hint {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 44px;
  border: 2px solid var(--gold-border);
  border-radius: 14px;
  z-index: 2;
}

.hero-scroll-hint span {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--gold-light);
  border-radius: 2px;
  animation: scrollDot 1.6s ease-in-out infinite;
}

@keyframes heroFade {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scrollDot {
  0%   { opacity: 0; transform: translate(-50%, 0); }
  40%  { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 16px); }
}

/* ============================================================
   游戏简介区
   ============================================================ */
.intro-body {
  max-width: 820px;
  margin: 0 auto;
}

.intro-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  text-indent: 2em;
}

.intro-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.intro-stats li {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.intro-stats li:hover {
  border-color: var(--gold-border);
  transform: translateY(-4px);
}

.intro-stats strong {
  display: block;
  font-size: 1.8rem;
  color: var(--gold-light);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.intro-stats span {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

/* ============================================================
   最新动态区
   ============================================================ */
.news-card {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
}

.news-date {
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xs);
}

.news-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}

.news-excerpt {
  font-size: 0.92rem;
  color: var(--text-secondary);
  flex: 1;
  margin-bottom: var(--space-md);
}

.card-link {
  font-size: 0.9rem;
  color: var(--gold-light);
  font-weight: 600;
  align-self: flex-start;
}

.card-link:hover {
  color: #fff6d8;
}

/* ============================================================
   英雄与皮肤展示区
   ============================================================ */
.hero-card {
  display: flex;
  flex-direction: column;
}

.hero-portrait {
  position: relative;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.hero-portrait::before {
  content: attr(data-initial);
  position: absolute;
  font-size: 9rem;
  font-weight: 800;
  opacity: 0.16;
  letter-spacing: 0;
  color: #fff;
  filter: blur(0.5px);
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.hero-card:hover .hero-portrait::before {
  transform: scale(1.15) rotate(-4deg);
  opacity: 0.28;
}

.hero-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10, 14, 39, 0.7) 100%);
}

.hero-portrait > span,
.hero-portrait {
  position: relative;
  z-index: 1;
}

/* 八种渐变色调，对应 data-tone 1-8 */
.hero-portrait[data-tone="1"] { background: linear-gradient(135deg, #6d83f2, #3a2d7a); }
.hero-portrait[data-tone="2"] { background: linear-gradient(135deg, #e5739b, #7a2d54); }
.hero-portrait[data-tone="3"] { background: linear-gradient(135deg, #5ec8d8, #1f5a6b); }
.hero-portrait[data-tone="4"] { background: linear-gradient(135deg, #f2a04a, #7a3d12); }
.hero-portrait[data-tone="5"] { background: linear-gradient(135deg, #b07ce8, #4a2d7a); }
.hero-portrait[data-tone="6"] { background: linear-gradient(135deg, #6dd97a, #1f5a2b); }
.hero-portrait[data-tone="7"] { background: linear-gradient(135deg, #6b8caa, #2a3d52); }
.hero-portrait[data-tone="8"] { background: linear-gradient(135deg, #5ed8b4, #1f6b54); }

.hero-meta {
  padding: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.hero-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
}

.hero-tag {
  font-size: 0.78rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.tag-assassin  { background: rgba(176, 124, 232, 0.18); color: #c9a3f0; border: 1px solid rgba(176, 124, 232, 0.4); }
.tag-mage      { background: rgba(93, 156, 246, 0.18); color: #9cc4f5; border: 1px solid rgba(93, 156, 246, 0.4); }
.tag-fighter   { background: rgba(242, 160, 74, 0.18); color: #f5be8a; border: 1px solid rgba(242, 160, 74, 0.4); }
.tag-marksman  { background: rgba(109, 217, 122, 0.18); color: #9ce3a8; border: 1px solid rgba(109, 217, 122, 0.4); }
.tag-tank      { background: rgba(107, 140, 170, 0.18); color: #a8c2d8; border: 1px solid rgba(107, 140, 170, 0.4); }
.tag-support   { background: rgba(94, 216, 180, 0.18); color: #8fe8c8; border: 1px solid rgba(94, 216, 180, 0.4); }

/* ============================================================
   王者大陆世界观区
   ============================================================ */
.region-card {
  position: relative;
  min-height: 180px;
  display: flex;
  align-items: flex-end;
}

.region-bg {
  position: absolute;
  inset: 0;
  opacity: 0.85;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.region-card:hover .region-bg {
  transform: scale(1.06);
  opacity: 1;
}

/* 八个地区不同的装饰渐变 */
.region-card[data-region="1"] .region-bg { background: linear-gradient(135deg, #c2453d, #6b1a2e, #2a0d18); }
.region-card[data-region="2"] .region-bg { background: linear-gradient(135deg, #2a7ad8, #1a3d6b, #0d1a2e); }
.region-card[data-region="3"] .region-bg { background: linear-gradient(135deg, #5a3d8a, #2a1d4e, #120828); }
.region-card[data-region="4"] .region-bg { background: linear-gradient(135deg, #c79a3d, #6b4f1a, #2a1f0d); }
.region-card[data-region="5"] .region-bg { background: linear-gradient(135deg, #8a6d3d, #4e3d1a, #281f0d); }
.region-card[data-region="6"] .region-bg { background: linear-gradient(135deg, #3d8a7a, #1a4e44, #0d2820); }
.region-card[data-region="7"] .region-bg { background: linear-gradient(135deg, #c2a23d, #6b551a, #2a220d); }
.region-card[data-region="8"] .region-bg { background: linear-gradient(135deg, #3d6dc2, #1a3d6b, #0d1a2e); }

.region-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.12), transparent 50%),
    linear-gradient(180deg, transparent 40%, rgba(10, 14, 39, 0.85) 100%);
}

.region-body {
  position: relative;
  z-index: 1;
  padding: var(--space-md);
  width: 100%;
}

.region-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.15em;
  margin-bottom: 0.25rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.region-slogan {
  font-size: 0.95rem;
  color: var(--text-primary);
  letter-spacing: 0.1em;
  opacity: 0.92;
}

/* ============================================================
   页脚
   ============================================================ */
.footer {
  background: var(--bg-mid);
  border-top: 1px solid var(--gold-border);
  padding: var(--space-xl) 0 var(--space-md);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.footer-title {
  font-size: 1.05rem;
  color: var(--gold-light);
  margin-bottom: var(--space-sm);
  letter-spacing: 0.1em;
}

.footer-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
  line-height: 1.8;
}

.footer-disclaimer {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-links li {
  margin-bottom: var(--space-xs);
}

.footer-links a {
  color: var(--gold-light);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: #fff6d8;
}

.footer-health {
  margin-top: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-primary);
  line-height: 1.7;
}

.footer-health strong {
  color: var(--gold-light);
}

.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-md) var(--space-md) 0;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-xs);
  font-size: 0.82rem;
  color: var(--text-muted);
}

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

.footer-bottom a:hover {
  color: var(--gold-light);
}

/* ============================================================
   滚动进入动效（reveal）
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 无障碍：尊重用户的减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   响应式：平板 (768px - 1023px) 双列
   ============================================================ */
@media (min-width: 768px) {
  .grid-news    { grid-template-columns: repeat(2, 1fr); }
  .grid-heroes  { grid-template-columns: repeat(2, 1fr); }
  .grid-world   { grid-template-columns: repeat(2, 1fr); }
  .intro-stats  { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   响应式：桌面 (>=1024px) 三到四列
   ============================================================ */
@media (min-width: 1024px) {
  .grid-news    { grid-template-columns: repeat(3, 1fr); }
  .grid-heroes  { grid-template-columns: repeat(4, 1fr); }
  .grid-world   { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   响应式：移动端 (<768px) 单列 + 导航折叠
   ============================================================ */
@media (max-width: 767px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: rgba(10, 14, 39, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border-soft);
    transform: translateY(-150%);
    transition: transform 0.4s ease;
    align-items: flex-start;
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .nav-links a {
    width: 100%;
    padding: 0.6rem 0;
  }

  .nav-cta {
    margin-top: var(--space-xs);
    text-align: center;
  }

  .section {
    padding: var(--space-xl) 0;
  }

  .hero {
    min-height: 92vh;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
