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

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #667eea;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.nav-menu a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-menu a:hover {
  color: #667eea;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: #667eea;
  transition: width 0.3s ease;
}

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

main {
  margin-top: 80px;
  padding: 2rem 5%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.hero {
  text-align: center;
  padding: 4rem 0;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  margin-bottom: 3rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 2rem;
}

.search-box {
  display: flex;
  justify-content: center;
  gap: 0;
  max-width: 500px;
  margin: 0 auto;
}

.search-box input {
  flex: 1;
  padding: 12px 20px;
  border: 2px solid #667eea;
  border-right: none;
  border-radius: 25px 0 0 25px;
  font-size: 1rem;
  outline: none;
}

.search-box button {
  padding: 12px 30px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  border-radius: 0 25px 25px 0;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.search-box button:hover {
  transform: translateY(-2px);
}

.featured, .categories, .features {
  margin-bottom: 4rem;
}

.featured h2, .categories h2, .features h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.movie-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.movie-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.movie-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.movie-info {
  padding: 1.5rem;
  position: relative;
}

.movie-info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.movie-info p {
  color: #666;
  font-size: 0.9rem;
}

.rating {
  position: absolute;
  top: -30px;
  right: 15px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 5px 10px;
  border-radius: 15px;
  font-weight: bold;
  font-size: 0.9rem;
}

.category-section {
  margin-bottom: 3rem;
  background: rgba(255, 255, 255, 0.9);
  padding: 2rem;
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.category-section h2 {
  color: #333;
  text-shadow: none;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.category-item {
  text-align: center;
  padding: 1.5rem;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.category-item:hover {
  transform: translateY(-5px);
}

.category-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.category-item h3 {
  margin-bottom: 0.5rem;
  color: #333;
}

.category-item p {
  color: #666;
  font-size: 0.9rem;
}

.features {
  background: rgba(255, 255, 255, 0.9);
  padding: 3rem 2rem;
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.features h2 {
  color: #333;
  text-shadow: none;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-item {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

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

.feature-item h3 {
  margin-bottom: 1rem;
  color: #667eea;
  font-size: 1.3rem;
}

.feature-item p {
  color: #666;
  line-height: 1.6;
}

.footer {
  background: rgba(0, 0, 0, 0.9);
  color: white;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 3rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section h3 {
  margin-bottom: 1rem;
  color: #667eea;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #667eea;
}

.footer-bottom {
  text-align: center;
  padding: 1rem;
  border-top: 1px solid #333;
  color: #999;
}

@media (max-width: 768px) {
  .nav {
      flex-direction: column;
      gap: 1rem;
  }
  
  .nav-menu {
      gap: 1rem;
  }
  
  .hero h1 {
      font-size: 1.8rem;
  }
  
  .movie-grid,
  .category-grid,
  .features-grid {
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 1rem;
  }
  
  main {
      padding: 1rem 3%;
  }
}

@media (max-width: 480px) {
  .hero h1 {
      font-size: 1.5rem;
  }
  
  .search-box {
      flex-direction: column;
  }
  
  .search-box input,
  .search-box button {
      border-radius: 25px;
      border: 2px solid #667eea;
  }
  
  .movie-grid,
  .category-grid,
  .features-grid {
      grid-template-columns: 1fr;
  }
}