/* ===== 全局重置 & 字体 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Press Start 2P', 'Courier New', monospace;
  background-color: #2d2d2d;
  color: #e0e0e0;
  line-height: 1.6;
  image-rendering: pixelated; /* 保持像素感 */
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

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

/* ===== 导航栏 ===== */
.navbar {
  background-color: #3a3a3a;
  padding: 16px 0;
  border-bottom: 4px solid #5a5a5a;
  box-shadow: 0 4px 0 #1a1a1a;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  color: #8bc34a;
  text-shadow: 2px 2px 0 #33691e;
}

.logo-icon {
  font-size: 28px;
}

.logo-text {
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  gap: 24px;
  font-size: 14px;
}

.nav-links a {
  padding: 6px 12px;
  transition: background 0.2s;
  border-radius: 4px;
}

.nav-links a:hover {
  background-color: #5a5a5a;
  color: #8bc34a;
}

/* ===== 主视觉区 ===== */
.hero {
  background: linear-gradient(135deg, #1b3a1b, #2d5e2d);
  padding: 80px 0 60px;
  text-align: center;
  border-bottom: 6px solid #8bc34a;
  position: relative;
}

.hero::before {
  content: "⬛⬛⬛";
  position: absolute;
  bottom: 10px;
  right: 20px;
  font-size: 40px;
  opacity: 0.1;
  pointer-events: none;
}

.hero-title {
  font-size: 42px;
  color: #fff;
  text-shadow: 4px 4px 0 #2d5e2d, 6px 6px 0 #1b3a1b;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 16px;
  color: #c8e6c9;
  margin-bottom: 24px;
}

.server-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0,0,0,0.4);
  padding: 8px 20px;
  border-radius: 40px;
  font-size: 14px;
  margin-bottom: 30px;
  border: 2px solid #8bc34a;
}

.status-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: #555;
}

.status-dot.online {
  background-color: #76ff03;
  box-shadow: 0 0 12px #76ff03;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.ip-box {
  display: flex;
  align-items: center;
  background: #1a1a1a;
  padding: 4px 4px 4px 18px;
  border-radius: 40px;
  border: 2px solid #5a5a5a;
}

.ip-address {
  font-size: 18px;
  color: #fff;
  letter-spacing: 1px;
}

.copy-btn {
  background: #5a5a5a;
  border: none;
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  padding: 8px 18px;
  border-radius: 40px;
  margin-left: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.copy-btn:hover {
  background: #8bc34a;
  color: #1a1a1a;
}

.btn-primary {
  background: #8bc34a;
  color: #1a1a1a;
  font-family: inherit;
  font-size: 18px;
  padding: 12px 32px;
  border-radius: 40px;
  border: 3px solid #33691e;
  transition: all 0.2s;
  font-weight: bold;
  letter-spacing: 1px;
}

.btn-primary:hover {
  background: #aed581;
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(139, 195, 74, 0.6);
}

/* ===== 通用区块标题 ===== */
.section-title {
  font-size: 28px;
  text-align: center;
  margin-bottom: 40px;
  color: #8bc34a;
  text-shadow: 2px 2px 0 #33691e;
  letter-spacing: 2px;
}

/* ===== 玩法卡片 ===== */
.gamemodes {
  padding: 60px 0;
  background: #2d2d2d;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.card {
  background: #3a3a3a;
  padding: 30px 20px;
  border-radius: 12px;
  text-align: center;
  border: 3px solid #5a5a5a;
  transition: transform 0.2s, border-color 0.2s;
}

.card:hover {
  transform: translateY(-6px);
  border-color: #8bc34a;
}

.card-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 12px;
}

.card p {
  font-size: 12px;
  color: #bdbdbd;
  line-height: 1.8;
}

/* ===== 公告区 ===== */
.news {
  padding: 60px 0;
  background: #222;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  background: #2d2d2d;
  padding: 14px 20px;
  border-radius: 8px;
  border-left: 6px solid #8bc34a;
  font-size: 13px;
}

.news-date {
  color: #aaa;
  font-size: 11px;
}

.news-tag {
  background: #5a5a5a;
  padding: 2px 12px;
  border-radius: 20px;
  font-size: 10px;
  color: #fff;
  text-transform: uppercase;
}

.news-text {
  color: #eee;
  flex: 1;
}

/* ===== 关于/社区 ===== */
.about {
  padding: 60px 0;
  background: #2d2d2d;
}

.about-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  font-size: 14px;
  line-height: 2;
  margin-bottom: 30px;
  color: #ccc;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.social-btn {
  background: #3a3a3a;
  padding: 12px 28px;
  border-radius: 40px;
  border: 2px solid #5a5a5a;
  font-size: 14px;
  transition: all 0.2s;
}

.social-btn:hover {
  background: #8bc34a;
  color: #1a1a1a;
  border-color: #8bc34a;
}

/* ===== 页脚 ===== */
.footer {
  background: #1a1a1a;
  padding: 30px 0;
  text-align: center;
  border-top: 4px solid #3a3a3a;
  font-size: 11px;
  color: #777;
}

.footer p {
  margin-bottom: 6px;
}

.footer-meta {
  color: #555;
  font-size: 10px;
}

/* ===== 响应式调整 ===== */
@media (max-width: 700px) {
  .navbar .container {
    flex-direction: column;
    gap: 12px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 12px;
  }

  .ip-box {
    flex-wrap: wrap;
    justify-content: center;
    padding: 8px 12px;
  }

  .ip-address {
    font-size: 14px;
  }

  .copy-btn {
    margin-left: 0;
    margin-top: 6px;
    width: 100%;
  }

  .btn-primary {
    font-size: 14px;
    padding: 10px 24px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .news-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .section-title {
    font-size: 22px;
  }
}
