/* ============================================================
   瓦榜 · 落地页样式 (VALORANT 官网风格)
   ============================================================ */
:root {
  --val-dark: #0f1923;
  --val-darker: #0a0e14;
  --val-black: #060a0f;
  --val-red: #ff4655;
  --val-yellow: #ffd65e;
  --val-white: #ece8e1;
  --val-muted: #768079;
  --val-line: rgba(236, 232, 225, 0.12);
  --val-card: rgba(255, 255, 255, 0.03);
  --font-display: 'Bebas Neue', 'Alimama ShuHeiTi', sans-serif;
  --font-body: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-display);
  background: var(--val-dark);
  color: var(--val-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
em { font-style: normal; color: var(--val-yellow); }

/* ---------- 通用容器 ---------- */
.section {
  position: relative;
  padding: 88px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}

.section-head { text-align: center; margin-bottom: 56px; }

.section-kicker {
  font-family: var(--font-display);
  letter-spacing: 4px;
  font-size: 16px;
  color: var(--val-red);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.section-desc {
  margin-top: 14px;
  color: var(--val-muted);
  font-size: 16px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}
.section-desc strong { color: var(--val-white); }

/* ---------- 顶部导航 ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 14, 20, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--val-line);
  transition: background 0.3s var(--ease);
}

.nav.scrolled { background: rgba(6, 10, 15, 0.95); }

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 1px;
  color: var(--val-white);
}

.nav-brand-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.nav-brand-name { text-transform: uppercase; color: var(--val-red); font-weight: 700; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 14px;
  color: var(--val-white);
  opacity: 0.75;
  letter-spacing: 1px;
  transition: color 0.2s, opacity 0.2s;
  position: relative;
}
.nav-links a:hover { opacity: 1; color: var(--val-yellow); }

.nav-links a.nav-cta {
  background: var(--val-red);
  color: #fff;
  padding: 9px 20px;
  opacity: 1;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  font-weight: 600;
  transition: background 0.2s;
}
.nav-links a.nav-cta:hover { background: #ff5d6b; color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--val-white);
  transition: transform 0.3s, opacity 0.3s;
}

/* ---------- 首屏 Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 120px 0 60px;
  background-color: #0a0e14;
  background-image: url(/img/hero-decor.png), linear-gradient(180deg, #0a0e14 0%, #0e1219 60%, #0e1219 100%);
  background-position: right center, center;
  background-repeat: no-repeat, no-repeat;
  background-size: auto 100%, cover;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}
.hero-glow-1 {
  width: 480px; height: 480px;
  background: rgba(255, 70, 85, 0.22);
  top: -100px; left: -80px;
}
.hero-glow-2 {
  width: 420px; height: 420px;
  background: rgba(255, 214, 94, 0.10);
  bottom: -120px; right: -60px;
}

.hero-inner {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  text-align: left;
}

.hero-eyebrow {
  font-family: var(--font-display);
  letter-spacing: 6px;
  font-size: 16px;
  color: var(--val-red);
  margin-bottom: 18px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(54px, 12vw, 108px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.hero-title-main { display: block; color: var(--val-white); }
.hero-title-sub { display: block; color: var(--val-red); text-shadow: 0 0 40px rgba(255,70,85,0.35); }

.hero-desc {
  margin: 26px 0 0;
  max-width: 520px;
  font-size: 17px;
  color: var(--val-muted);
  line-height: 1.8;
}
.hero-desc strong { color: var(--val-yellow); font-weight: 600; }

.hero-actions {
  margin-top: 36px;
  display: flex;
  gap: 16px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.btn {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 1.5px;
  padding: 15px 36px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s;
  text-transform: uppercase;
  border-radius: 2px;
  display: inline-block;
  white-space: nowrap;
  min-width: 180px;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--val-red); color: #fff; }
.btn-primary:hover { background: #ff5d6b; }

.btn-ghost {
  background: transparent;
  color: var(--val-white);
  border: 1px solid var(--val-line);
}
.btn-ghost:hover { border-color: var(--val-yellow); color: var(--val-yellow); }

.hero-skew {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 80px;
  background: var(--val-dark);
  clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 40%);
  z-index: -1;
}

/* Hero 右侧装饰图 */
.hero-decor {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 44%;
  max-width: 520px;
  height: auto;
  opacity: 1;
  filter: drop-shadow(0 12px 36px rgba(0,0,0,0.4));
  z-index: 1;
  pointer-events: none;
}

/* Hero 悬浮皮肤卡片 */
.hero-cards {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.hero-card {
  position: absolute;
  width: 150px;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
  animation: floatY 7s ease-in-out infinite;
}
.hero-card img {
  width: 100%;
  mix-blend-mode: screen;
  filter: saturate(1.1);
}
.hero-card-tag {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--val-darker);
  border: 1px solid var(--val-line);
  padding: 3px 10px;
  font-size: 11px;
  letter-spacing: 1px;
  white-space: nowrap;
  color: var(--val-muted);
}
.hero-card-a { top: 18%; left: 6%; animation-delay: 0s; }
.hero-card-b { top: 22%; right: 6%; animation-delay: 1.5s; width: 170px; }
.hero-card-c { top: 58%; left: 12%; animation-delay: 3s; width: 120px; }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

/* ---------- 核心卖点 ---------- */
.features { padding-top: 120px; }

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

.feature-card {
  background: var(--val-card);
  border: 1px solid var(--val-line);
  border-top: 3px solid var(--val-red);
  padding: 34px 28px;
  transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 70, 85, 0.4);
  background: rgba(255, 70, 85, 0.04);
}

.feature-icon { font-size: 34px; margin-bottom: 16px; }

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 1px;
  margin-bottom: 10px;
  color: var(--val-yellow);
}
.feature-card p { font-size: 15px; color: var(--val-muted); }
.feature-card p strong { color: var(--val-white); }

/* ---------- 公平性 ---------- */
.fairness {
  position: relative;
  background: linear-gradient(180deg, var(--val-dark), var(--val-darker));
  border-top: 1px solid var(--val-line);
  border-bottom: 1px solid var(--val-line);
  max-width: 100%;
  padding: 96px 24px;
}
.fairness-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(ellipse at 70% 30%, rgba(255,214,94,0.05), transparent 60%);
}

.fairness-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: var(--maxw);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.fairness-item {
  padding: 20px 8px;
  border-left: 2px solid var(--val-red);
  padding-left: 26px;
}
.fairness-item .fairness-num {
  font-family: var(--font-display);
  font-size: 44px;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 214, 94, 0.6);
  margin-bottom: 6px;
}
.fairness-item h3 {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 1px;
  margin-bottom: 8px;
  color: var(--val-white);
}
.fairness-item p { font-size: 15px; color: var(--val-muted); }
.fairness-item p strong { color: var(--val-yellow); }

/* ---------- 更多功能 ---------- */
.more-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.more-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--val-card);
  border: 1px solid var(--val-line);
  padding: 22px 20px;
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease);
}
.more-card:hover {
  border-color: rgba(255, 214, 94, 0.4);
  background: rgba(255, 214, 94, 0.04);
  transform: translateX(4px);
}
.more-ico { font-size: 26px; flex-shrink: 0; }
.more-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.5px;
  color: var(--val-white);
}
.more-card p { font-size: 13px; color: var(--val-muted); margin-top: 2px; }

/* ---------- 排行榜 ---------- */
.ranking {
  background: linear-gradient(180deg, var(--val-dark), var(--val-darker));
  max-width: 100%;
  padding: 96px 24px;
}
.ranking .section-head { max-width: var(--maxw); margin-left: auto; margin-right: auto; }

/* 三列并排排行榜 */
.rank-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: start;
}

.rank-col {
  background: var(--val-card);
  border: 1px solid var(--val-line);
  border-top: 3px solid var(--val-red);
  overflow: hidden;
}

.rank-col-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: rgba(255, 70, 85, 0.06);
  border-bottom: 1px solid var(--val-line);
}
.rank-col-icon { font-size: 20px; }
.rank-col-title {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--val-white);
}

.rank-col-body { padding: 6px 0; }

.rank-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--val-line);
  transition: background 0.2s;
}
.rank-row:last-child { border-bottom: none; }
.rank-row:hover { background: rgba(255, 255, 255, 0.02); }

.rank-no {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--val-muted);
  text-align: center;
}
.rank-no-1 { color: var(--val-yellow); }
.rank-no-2 { color: #c0c8cc; }
.rank-no-3 { color: #b07a4f; }

.rank-skin-name {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rank-thumb {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
}
.rank-thumb img { width: auto; height: 44px; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4)); }

/* 加载 / 空状态 */
.rank-loading {
  padding: 32px 20px;
  text-align: center;
  color: var(--val-muted);
  font-size: 14px;
  letter-spacing: 1px;
}
.rank-empty {
  padding: 32px 20px;
  text-align: center;
  color: var(--val-muted);
  font-size: 14px;
}

/* ---------- CTA 下载区 ---------- */
.download {
  position: relative;
  background: linear-gradient(135deg, var(--val-darker), #141c26);
  overflow: hidden;
  max-width: 100%;
  padding: 96px 24px;
}
.download-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(ellipse at 15% 50%, rgba(255,70,85,0.10), transparent 55%);
}

.download-inner {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.download-text { flex: 1 1 380px; text-align: left; }
.download-text .section-kicker { text-align: left; }
.download-text .section-title { text-align: left; font-size: clamp(34px, 5vw, 52px); }
.download-text .section-desc { text-align: left; margin-left: 0; }

.download-tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.download-tags span {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--val-line);
  padding: 7px 14px;
  font-size: 13px;
  color: var(--val-muted);
  border-radius: 4px;
}

.download-qr { flex-shrink: 0; text-align: center; }

.qr-box {
  width: 180px; height: 180px;
  background: #fff;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.qr-placeholder {
  width: 100%; height: 100%;
  border: 2px dashed #c0c8cc;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #fafafa;
}
.qr-logo {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--val-red);
  letter-spacing: 2px;
}
.qr-note { font-size: 12px; color: var(--val-muted); }

.download-scan {
  margin-top: 14px;
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--val-white);
  font-family: var(--font-display);
}

/* ---------- 页脚 ---------- */
.footer {
  background: var(--val-black);
  border-top: 1px solid var(--val-line);
  padding: 48px 24px;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: center;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 2px;
  color: var(--val-white);
  margin-bottom: 12px;
}

.footer-brand-name { color: var(--val-red); font-weight: 700; }
.footer-brand span { color: var(--val-red); font-size: 15px; letter-spacing: 3px; margin-left: 8px; }
.footer-disclaimer {
  font-size: 13px;
  color: var(--val-muted);
  line-height: 1.8;
  margin-bottom: 14px;
}
.footer-copy { font-size: 12px; color: rgba(236,232,225,0.4); }

/* ---------- 滚动显现动效 ---------- */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
/* JS 添加 animate-in 后，元素变为隐藏状态，滚动到视口后通过 in-view 显示 */
.reveal.animate-in {
  opacity: 0;
  transform: translateY(28px);
}
.reveal.animate-in.in-view { opacity: 1; transform: translateY(0); }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .section { padding: 64px 20px; }

  .hero { padding: 110px 20px 50px; }
  .hero-card-a { left: 3%; width: 120px; }
  .hero-card-b { right: 3%; width: 130px; }
  .hero-card-c { left: 6%; width: 96px; }

  .feature-grid { grid-template-columns: 1fr; }
  .fairness-grid { grid-template-columns: 1fr; gap: 28px; }
  .more-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  /* 移动端导航 */
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 60px; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(6, 10, 15, 0.97);
    border-left: 1px solid var(--val-line);
    width: 220px;
    padding: 12px 0;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    box-shadow: -20px 0 40px rgba(0,0,0,0.4);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { padding: 14px 22px; border-bottom: 1px solid var(--val-line); }
  .nav-links a.nav-cta { margin: 14px; clip-path: none; text-align: center; }

  /* Hero 缩小悬浮卡 */
  .hero-card { display: none; }
  .hero-decor { display: none; }

  .hero-title { font-size: clamp(46px, 16vw, 72px); }
  .hero-actions .btn { padding: 13px 28px; font-size: 17px; }

  .section-title { font-size: 34px; }
  .section-kicker { font-size: 14px; }

  /* 排行榜移动端：三列改为单列堆叠 */
  .rank-grid { grid-template-columns: 1fr; gap: 14px; }
  .rank-col-body { padding: 4px 0; }
  .rank-row {
    grid-template-columns: 34px 1fr 60px;
    gap: 10px;
    padding: 11px 16px;
  }
  .rank-no { font-size: 21px; }
  .rank-skin-name { font-size: 13px; }
  .rank-thumb { display: flex; align-items: center; justify-content: center; min-width: 50px; }

  .download-inner { flex-direction: column; text-align: center; }
  .download-text { text-align: center; }
  .download-text .section-kicker,
  .download-text .section-title,
  .download-text .section-desc { text-align: center; margin-left: auto; margin-right: auto; }
  .download-tags { justify-content: center; }
}
