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

body {
  font-family: 'Microsoft YaHei', Arial, sans-serif;
  background-color: #0d1117;
  color: #e6e6e6;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

a {
  text-decoration: none;
  color: #e6e6e6;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* 头部样式 */
header {
  background-color: #161b22;
  padding: 15px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo {
  display: flex;
  flex-direction: column;
}

.logo h1 {
  color: #ff6b00;
  font-size: 28px;
  margin-bottom: 5px;
}

.logo .slogan {
  font-size: 14px;
  color: #a0a0a0;
}

nav ul {
  display: flex;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  font-size: 16px;
  font-weight: 500;
  padding: 5px 0;
  position: relative;
}

nav ul li a:hover {
  color: #ff6b00;
}

nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background-color: #ff6b00;
  bottom: 0;
  left: 0;
  transition: width 0.3s ease;
}

nav ul li a:hover::after {
  width: 100%;
}

.search-box {
  display: flex;
  align-items: center;
}

.search-box input {
  padding: 8px 15px;
  border: none;
  border-radius: 20px 0 0 20px;
  background-color: #1d2229;
  color: #e6e6e6;
  outline: none;
  width: 200px;
}

.search-box button {
  padding: 8px 15px;
  border: none;
  border-radius: 0 20px 20px 0;
  background-color: #ff6b00;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.search-box button:hover {
  background-color: #e05d00;
}

/* 横幅样式 */
.banner {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../picture/d26.jpg');
  background-size: cover;
  background-position: center;
  height: 500px;
  display: flex;
  align-items: center;
  text-align: center;
  color: white;
}

.banner-content {
  max-width: 700px;
  margin: 0 auto;
}

.banner h2 {
  font-size: 42px;
  margin-bottom: 20px;
  color: #ff6b00;
}

.banner p {
  font-size: 20px;
  margin-bottom: 30px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: #ff6b00;
  color: white;
  border-radius: 30px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn:hover {
  background-color: #e05d00;
  transform: translateY(-3px);
}

/* 部分样式 */
section {
  padding: 60px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.section-header h2 {
  font-size: 28px;
  color: #ff6b00;
  position: relative;
  padding-left: 15px;
}

.section-header h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 25px;
  background-color: #ff6b00;
}

.more {
  color: #a0a0a0;
  font-size: 14px;
}

.more:hover {
  color: #ff6b00;
}

/* 电影网格样式 */
.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 25px;
}

.movie-card {
  background-color: #161b22;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.movie-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.movie-poster {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.movie-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.movie-card:hover .movie-poster img {
  transform: scale(1.1);
}

.quality {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #ff6b00;
  color: white;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: bold;
}

.episodes {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 12px;
}

.movie-info {
  padding: 15px;
}

.movie-info h3 {
  font-size: 18px;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  font-size: 14px;
}

.rating {
  color: #ffcc00;
}

.year {
  color: #a0a0a0;
}

.category {
  color: #a0a0a0;
  font-size: 14px;
}

.rank-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.rank-column h3 {
  font-size: 20px;
  margin-bottom: 20px;
  color: #ff6b00;
  text-align: center;
  padding-bottom: 10px;
  border-bottom: 1px solid #2d3748;
}

.rank-list li {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  padding: 10px;
  background-color: #161b22;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.rank-list li:hover {
  transform: translateX(5px);
  background-color: #1a2230;
}

.rank-num {
  font-size: 24px;
  font-weight: bold;
  color: #ff6b00;
  margin-right: 15px;
  min-width: 30px;
  text-align: center;
}

.rank-info {
  display: flex;
  align-items: center;
  flex: 1;
}

.rank-info img {
  width: 60px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 15px;
}

.rank-info h4 {
  font-size: 16px;
  margin-bottom: 5px;
}

.rank-info p {
  font-size: 12px;
  color: #a0a0a0;
  margin-bottom: 5px;
}

.views {
  font-size: 12px;
  color: #6c757d;
}

/* 页脚样式 */
footer {
  background-color: #161b22;
  padding: 60px 0 20px;
  margin-top: 60px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
}

.footer-logo h3 {
  color: #ff6b00;
  font-size: 24px;
  margin-bottom: 10px;
}

.footer-logo p {
  color: #a0a0a0;
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 60px;
}

.footer-column h4 {
  color: #e6e6e6;
  margin-bottom: 20px;
  font-size: 18px;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: #a0a0a0;
  font-size: 14px;
}

.footer-column ul li a:hover {
  color: #ff6b00;
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #2d3748;
  color: #6c757d;
  font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 992px) {
  .movie-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
  
  .footer-content {
    flex-direction: column;
  }
  
  .footer-logo {
    margin-bottom: 30px;
  }
  
  .footer-links {
    flex-wrap: wrap;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  header .container {
    flex-direction: column;
  }
  
  .logo {
    margin-bottom: 15px;
  }
  
  nav {
    margin: 15px 0;
  }
  
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  nav ul li {
    margin: 5px 10px;
  }
  
  .search-box {
    width: 100%;
    margin-top: 15px;
  }
  
  .search-box input {
    width: 70%;
  }
  
  .banner {
    height: 400px;
  }
  
  .banner h2 {
    font-size: 32px;
  }
  
  .banner p {
    font-size: 16px;
  }
  
  .rank-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .movie-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .movie-poster {
    height: 250px;
  }
  
  .banner {
    height: 300px;
  }
  
  .banner h2 {
    font-size: 28px;
  }
  
  .section-header h2 {
    font-size: 22px;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 30px;
  }
}
  