/* Global Styles */
:root {
  --primary-color: #0c0c0c;
  --secondary-color: #1a1a1a;
  --accent-color: #b30000;
  --text-primary: #e0e0e0;
  --text-secondary: #a0a0a0;
  --shadow-color: rgba(0, 0, 0, 0.8);
  --border-color: #333;
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--primary-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(179, 0, 0, 0.1) 0%, transparent 20%),
    radial-gradient(circle at 90% 60%, rgba(128, 0, 0, 0.08) 0%, transparent 25%),
    repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(0, 0, 0, 0.1) 10px, rgba(0, 0, 0, 0.1) 12px);
}

/* Navigation */
header {
  background-color: var(--secondary-color);
  box-shadow: 0 2px 20px var(--shadow-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.main-nav {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-color);
  text-shadow: 0 0 10px rgba(179, 0, 0, 0.5);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  position: relative;
  transition: var(--transition);
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: var(--transition);
}

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

/* Hero Section */
.hero {
  position: relative;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #1a0b14, #3d182a, #2c1220);
  opacity: 0.9;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  padding: 2rem;
}

.hero-content h1 {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 1rem;
  text-shadow: 0 0 20px rgba(179, 0, 0, 0.6);
  animation: fadeIn 1s ease-out;
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--text-secondary);
  animation: fadeIn 1.5s ease-out;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  padding: 1rem 2.5rem;
  background-color: var(--accent-color);
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(179, 0, 0, 0.4);
  animation: fadeIn 2s ease-out;
}

.btn-primary:hover {
  background-color: #990000;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(179, 0, 0, 0.6);
}

.btn-secondary {
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: transparent;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  border: 2px solid var(--accent-color);
  border-radius: 5px;
  transition: var(--transition);
}

.btn-secondary:hover {
  background-color: var(--accent-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(179, 0, 0, 0.4);
}

/* Sections */
section {
  padding: 6rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

section h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
  color: var(--accent-color);
}

section h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background-color: var(--accent-color);
}

/* News Section */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.news-item {
  background-color: var(--secondary-color);
  border-radius: 10px;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 5px 15px var(--shadow-color);
}

.news-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px var(--shadow-color);
}

.news-img {
  height: 200px;
  background-size: cover;
  background-position: center;
  border-radius: 8px 8px 0 0;
}

.news-img-1 {
  background-image: url('public/images/YVGAO.jpg');
}

.news-img-2 {
  background-image: url('public/images/FABUSHIJIAN.jpg');
}

.news-img-3 {
  background-image: url('public/images/KAIFARENYUAN.jpg');
}

.news-item h3 {
  padding: 1.5rem 1.5rem 0.5rem;
  font-size: 1.5rem;
}

.news-item p {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-secondary);
}

.read-more {
  display: inline-block;
  margin: 0 1.5rem 1.5rem;
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.read-more:hover {
  color: var(--text-primary);
}

/* Game Overview */
.game-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.overview-img {
  height: 400px;
  border-radius: 10px;
  background-image: url('public/images/XUANCHUAN.jpg');
  background-size: cover;
  background-position: center;
  box-shadow: 0 10px 30px var(--shadow-color);
}

.overview-text p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* Featured Guide */
.guide-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  background-color: var(--secondary-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px var(--shadow-color);
}

.guide-img {
  background-image: url('public/images/SHENGCUN.jpg');
  background-size: cover;
  background-position: center;
}

.guide-text {
  padding: 3rem;
}

.guide-text h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--accent-color);
}

.guide-text p {
  margin-bottom: 2rem;
  color: var(--text-secondary);
}

.guide-text ul {
  margin-bottom: 2rem;
  padding-left: 1.5rem;
}

.guide-text li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

/* Community Section */
.community-section {
  text-align: center;
  background-color: var(--secondary-color);
  border-radius: 10px;
  padding: 4rem 2rem;
  margin: 4rem auto;
  box-shadow: 0 10px 30px var(--shadow-color);
}

.community-section p {
  max-width: 600px;
  margin: 0 auto 3rem;
  font-size: 1.2rem;
  color: var(--text-secondary);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--primary-color);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  border-radius: 5px;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.social-btn:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(179, 0, 0, 0.4);
}

/* Footer */
footer {
  background-color: var(--secondary-color);
  padding: 3rem 2rem;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-color);
}

.footer-info p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .game-overview,
  .guide-content {
    grid-template-columns: 1fr;
  }
  
  .overview-img {
    height: 300px;
  }
  
  .guide-img {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .main-nav {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  
  .nav-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .hero-content h1 {
    font-size: 3rem;
  }
  
  .hero-content p {
    font-size: 1.2rem;
  }
  
  section {
    padding: 4rem 1rem;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}
