* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: #d9e2ff;
  background: #070d1a;
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* 背景网格与扫描线 */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(700px 500px at 75% 15%, rgba(0, 240, 255, 0.16), transparent 60%),
    radial-gradient(600px 500px at 15% 85%, rgba(255, 0, 255, 0.14), transparent 60%),
    #070d1a;
}

.grid-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  perspective: 400px;
  transform: rotateX(55deg) scale(1.6);
  transform-origin: center top;
  animation: gridMove 6s linear infinite;
}

@keyframes gridMove {
  from { background-position: 0 0; }
  to { background-position: 0 48px; }
}

.scanline {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(0, 0, 0, 0.08) 3px,
    rgba(0, 0, 0, 0.08) 4px
  );
}

/* 导航 */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 6%;
  background: rgba(7, 13, 26, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 240, 255, 0.15);
}

.logo {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 3px;
  color: #fff;
  text-shadow: 0 0 16px rgba(0, 240, 255, 0.8);
}

.logo span {
  color: #00f0ff;
  margin-left: 6px;
}

.nav-links a {
  margin: 0 14px;
  font-size: 14px;
  letter-spacing: 1px;
  color: #8ea0c8;
  transition: color 0.2s, text-shadow 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #00f0ff;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.7);
}

.btn-play {
  display: inline-block;
  padding: 11px 26px;
  border-radius: 4px;
  background: linear-gradient(90deg, #00f0ff, #0066ff);
  color: #04101e;
  font-weight: 800;
  letter-spacing: 1px;
  font-size: 14px;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  transition: all 0.25s;
  cursor: pointer;
  border: none;
}

.btn-play:hover {
  filter: brightness(1.2);
  box-shadow: 0 0 26px rgba(0, 240, 255, 0.7);
}

.btn-play.big {
  padding: 15px 36px;
  font-size: 16px;
}

/* 首屏 */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  padding: 70px 6%;
  min-height: 88vh;
}

.hero-content {
  max-width: 620px;
  z-index: 2;
}

.eyebrow {
  font-size: 13px;
  letter-spacing: 4px;
  color: #00f0ff;
  margin-bottom: 18px;
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.6);
}

.hero h1 {
  font-size: 58px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 2px;
  margin-bottom: 22px;
  color: #fff;
}

.hero h1 span {
  color: #00f0ff;
  text-shadow: 0 0 22px rgba(0, 240, 255, 0.8);
}

.sub {
  font-size: 16px;
  color: #8ea0c8;
  margin-bottom: 34px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 18px;
  margin-bottom: 34px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-ghost {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 4px;
  border: 1.5px solid rgba(0, 240, 255, 0.5);
  color: #00f0ff;
  font-size: 14px;
  letter-spacing: 1px;
  transition: all 0.25s;
}

.btn-ghost:hover {
  background: rgba(0, 240, 255, 0.12);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

.hero-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-meta span {
  font-size: 13px;
  color: #8ea0c8;
}

/* 机甲核心 */
.hero-mech {
  position: relative;
  width: 420px;
  height: 420px;
  z-index: 1;
}

.mech-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 130px;
  height: 130px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, #00f0ff, #0066ff 70%);
  border-radius: 10px;
  box-shadow: 0 0 90px rgba(0, 240, 255, 0.9);
  animation: corePulse 2.5s ease-in-out infinite;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.mech-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(0, 240, 255, 0.5);
  transform: translate(-50%, -50%);
}

.r1 { width: 380px; height: 380px; animation: spin 16s linear infinite; }
.r2 { width: 300px; height: 300px; border-color: rgba(255, 0, 255, 0.5); animation: spin 11s linear infinite reverse; }
.r3 { width: 220px; height: 220px; border-style: dashed; animation: spin 7s linear infinite; }

.energy {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00f0ff;
  box-shadow: 0 0 16px #00f0ff;
}

.energy-1 {
  top: 10%;
  left: 50%;
  animation: orbit 6s linear infinite;
}

.energy-2 {
  top: 50%;
  left: 90%;
  animation: orbit 8s linear infinite;
}

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes corePulse {
  0%, 100% { box-shadow: 0 0 60px rgba(0, 240, 255, 0.7); }
  50% { box-shadow: 0 0 130px rgba(0, 240, 255, 1); }
}

@keyframes orbit {
  from { transform: rotate(0deg) translateX(190px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(190px) rotate(-360deg); }
}

/* 通用 section */
.section {
  padding: 100px 6%;
}

.section.alt {
  background: rgba(0, 20, 40, 0.4);
  border-top: 1px solid rgba(0, 240, 255, 0.12);
  border-bottom: 1px solid rgba(0, 240, 255, 0.12);
}

.section-head {
  text-align: center;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 3px;
  color: #fff;
}

/* 特色卡片 */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.card {
  padding: 34px 26px;
  border-radius: 10px;
  background: rgba(0, 20, 40, 0.5);
  border: 1px solid rgba(0, 240, 255, 0.18);
  transition: transform 0.3s, box-shadow 0.3s, border 0.3s;
}

.card:hover {
  transform: translateY(-8px);
  border-color: #00f0ff;
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.35);
}

.card-icon {
  font-size: 42px;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 19px;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.card p {
  font-size: 14px;
  color: #8ea0c8;
}

/* 英雄 */
.hero-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.hero-card {
  text-align: center;
  padding: 26px 18px;
  border-radius: 10px;
  background: rgba(0, 20, 40, 0.5);
  border: 1px solid rgba(0, 240, 255, 0.18);
  transition: transform 0.3s, box-shadow 0.3s;
}

.hero-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 30px rgba(255, 0, 255, 0.35);
}

.hero-avatar {
  width: 96px;
  height: 96px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  font-weight: 900;
  color: #fff;
  border-radius: 10px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.hero-card h3 {
  font-size: 15px;
  color: #fff;
  margin-bottom: 6px;
}

.hero-card .role {
  font-size: 12px;
  color: #00f0ff;
  margin-bottom: 12px;
}

.ability {
  font-size: 12px;
  color: #8ea0c8;
  border-top: 1px solid rgba(0, 240, 255, 0.15);
  padding-top: 12px;
}

/* 排行榜 */
.rank-table {
  max-width: 760px;
  margin: 0 auto;
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 10px;
  overflow: hidden;
}

.rank-row {
  display: grid;
  grid-template-columns: 0.8fr 2.4fr 1fr 1fr 1fr;
  padding: 16px 24px;
  font-size: 14px;
  color: #c4d2f0;
  border-bottom: 1px solid rgba(0, 240, 255, 0.08);
}

.rank-row:last-child {
  border-bottom: none;
}

.rank-row.head {
  background: rgba(0, 240, 255, 0.12);
  color: #00f0ff;
  font-weight: 700;
  letter-spacing: 1px;
}

.rank-row .r1 { color: #ffd700; font-weight: 900; }
.rank-row .r2 { color: #c0c0c0; font-weight: 900; }
.rank-row .r3 { color: #cd7f32; font-weight: 900; }

.tier {
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 4px;
  width: fit-content;
}

.tier.legend { background: rgba(255, 215, 0, 0.2); color: #ffd700; }
.tier.diamond { background: rgba(0, 240, 255, 0.2); color: #00f0ff; }
.tier.platinum { background: rgba(200, 200, 200, 0.2); color: #d9e2ff; }

/* 新闻 */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  padding: 28px;
  border-radius: 10px;
  background: rgba(0, 20, 40, 0.5);
  border: 1px solid rgba(0, 240, 255, 0.18);
  transition: transform 0.3s, border 0.3s;
}

.news-card:hover {
  transform: translateY(-6px);
  border-color: #00f0ff;
}

.news-date {
  font-size: 12px;
  color: #00f0ff;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.news-card h3 {
  font-size: 17px;
  color: #fff;
  margin-bottom: 10px;
}

.news-card p {
  font-size: 14px;
  color: #8ea0c8;
}

/* CTA */
.cta-box {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 64px 30px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.12), rgba(255, 0, 255, 0.1));
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.cta-box h2 {
  font-size: 32px;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: 2px;
}

.cta-box p {
  color: #8ea0c8;
  margin-bottom: 28px;
}

.dl-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.footer {
  text-align: center;
  padding: 28px;
  font-size: 13px;
  color: #6b7ba8;
  border-top: 1px solid rgba(0, 240, 255, 0.12);
}

/* 响应式 */
@media (max-width: 1000px) {
  .hero { flex-direction: column; text-align: center; padding-top: 40px; }
  .hero-actions, .hero-meta { justify-content: center; }
  .hero-mech { width: 300px; height: 300px; }
  .r1 { width: 300px; height: 300px; }
  .r2 { width: 240px; height: 240px; }
  .r3 { width: 180px; height: 180px; }
  .grid-4, .hero-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .nav-links { display: none; }
  .hero h1 { font-size: 38px; }
  .grid-4, .hero-grid { grid-template-columns: 1fr; }
  .rank-row { grid-template-columns: 0.6fr 1.6fr 1fr 1fr; }
  .rank-row span:nth-child(4) { display: none; }
}
