/* 全局样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f8f8;
}

.container {
  width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 按钮样式 */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid #1aad19;
  border-radius: 4px;
  color: #1aad19;
  text-decoration: none;
  transition: all 0.3s;
  font-size: 14px;
}

.btn-primary {
  background-color: #1aad19;
  color: #fff;
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.btn-large {
  padding: 12px 30px;
  font-size: 16px;
}

/* 头部导航 */
header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #1aad19;
}

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

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  color: #333;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #1aad19;
}

.user-actions .btn {
  margin-left: 15px;
}

/* 英雄区域 */
.hero {
  height: 500px;
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-top: 70px;
}

.hero-content {
  text-align: center;
  max-width: 800px;
}

.hero-content h1 {
  font-size: 42px;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-content p {
  font-size: 18px;
  margin-bottom: 30px;
}

/* 特色区块 */
.features {
  padding: 80px 0;
  background-color: #fff;
}

.features .container {
  display: flex;
  justify-content: space-between;
}

.feature-item {
  flex: 1;
  text-align: center;
  padding: 30px;
  margin: 0 15px;
  background-color: #f8f8f8;
  border-radius: 8px;
  transition: transform 0.3s;
}

.feature-item:hover {
  transform: translateY(-10px);
}

.feature-item .icon {
  width: 80px;
  height: 80px;
  background-color: #1aad19;
  border-radius: 50%;
  margin: 0 auto 20px;
}

.feature-item h3 {
  font-size: 20px;
  margin-bottom: 15px;
}

/* 最新直播 */
.latest-lives {
  padding: 80px 0;
  background-color: #f8f8f8;
}

.latest-lives h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 40px;
}

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

.live-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.live-card:hover {
  transform: translateY(-10px);
}

.live-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.live-card-content {
  padding: 20px;
}

.live-card-title {
  font-size: 18px;
  margin-bottom: 10px;
}

.live-card-meta {
  display: flex;
  justify-content: space-between;
  color: #666;
  font-size: 14px;
  margin-bottom: 15px;
}

/* 页脚 */
footer {
  background-color: #333;
  color: #fff;
  padding: 40px 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-size: 24px;
  font-weight: bold;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  margin-left: 20px;
  transition: color 0.3s;
}

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

.footer-copyright {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #444;
  font-size: 14px;
  color: #ccc;
}

/* 响应式设计 */
@media (max-width: 992px) {
  .container {
    width: 900px;
  }

  .live-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    width: 700px;
  }

  .features .container {
    flex-direction: column;
  }

  .feature-item {
    margin-bottom: 20px;
  }

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

  .nav-links {
    display: none;
  }
}

@media (max-width: 576px) {
  .container {
    width: 100%;
  }

  .hero-content h1 {
    font-size: 32px;
  }

  .hero-content p {
    font-size: 16px;
  }
}