:root {
  --primary-color: #00BE06; /* 爱奇艺绿色 */
  --primary-hover: #00D408;
  --primary-light: #E8F5E8;
  --secondary-color: #FF6B35; /* 橙色辅助色 */
  --dark-color: #F8F9FA; /* 浅色背景 */
  --dark-color-lighter: #FFFFFF; /* 白色卡片背景 */
  --dark-color-light: #F1F3F4;
  --light-color: #1A1A1A; /* 深色文字 */
  --gray-color: #666666; /* 灰色文字 */
  --gray-color-dark: #999999; /* 浅灰色文字 */
  --border-color: #E0E0E0; /* 边框颜色 */
  --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.1);
  --gradient-primary: linear-gradient(135deg, #00BE06 0%, #00D408 100%);
  --gradient-card: linear-gradient(145deg, #FFFFFF 0%, #F8F9FA 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: linear-gradient(135deg, #F8F9FA 0%, #E8F5E8 100%);
  color: var(--light-color);
  line-height: 1.6;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

a {
  color: var(--light-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--primary-color);
}

.content-container {
  flex: 1;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 15px;
  overflow-y: auto;
}

/* 导航栏样式 - 重新设计 */
.navbar {
  background: var(--gradient-primary);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 190, 6, 0.2);
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
}

.navbar-content {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 8px 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  min-height: 60px;
}

.nav-left {
  display: flex;
  align-items: center;
}

.navbar-brand {
  display: flex;
  align-items: center;
  color: white !important;
  font-size: 1.3rem;
  font-weight: 700;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.navbar-brand:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.brand-icon {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.brand-text {
  white-space: nowrap;
}

.nav-center {
  display: flex;
  justify-content: center;
}

.navbar-nav {
  display: flex;
  list-style: none;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px;
  border-radius: 25px;
  backdrop-filter: blur(10px);
}

.nav-item {
  position: relative;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: 20px;
  transition: all 0.3s ease;
  font-weight: 500;
  display: block;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

.nav-link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.nav-link:active {
  transform: translateY(0);
}

.nav-right {
  display: flex;
  align-items: center;
}

/* 搜索框样式 - 紧凑设计 */
.search-form {
  position: relative;
  flex: 1;
}

.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  background: rgba(255, 255, 255, 0.95);
  border: none;
  color: var(--light-color);
  padding: 8px 16px;
  padding-right: 40px;
  border-radius: 20px;
  width: 100%;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  backdrop-filter: blur(10px);
}

.search-input:focus {
  background: white;
  outline: none;
  box-shadow: 0 4px 15px rgba(0, 190, 6, 0.2);

}

.search-input::placeholder {
  color: var(--gray-color);
}

.search-button {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-color);
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.search-button:hover {
  background: var(--primary-hover);
  transform: translateY(-50%) scale(1.1);
}

.search-icon {
  width: 14px;
  height: 14px;
  color: white;
}

/* 分类标题样式 - 紧凑设计 */
.section {
  margin-bottom: 35px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 15px 0;
  position: relative;
}

.section-header::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.section-title {
  color: var(--light-color);
  font-size: 22px;
  font-weight: 700;
  margin-left: 20px;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.view-more {
  color: var(--gray-color);
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 18px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.view-more:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
  background: var(--primary-light);
  transform: translateY(-1px);
}

.arrow-icon::before {
  content: '→';
  transition: transform 0.3s ease;
}

.view-more:hover .arrow-icon::before {
  transform: translateX(2px);
}

/* 电影网格样式 - 紧凑设计 */
.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  padding: 5px 0;
}

.movie-card {
  background: var(--gradient-card);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-light);
  position: relative;
  cursor: pointer;
}

.movie-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-medium);
}

.movie-poster {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}

.movie-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.movie-card:hover .movie-image {
  transform: scale(1.05);
}

.movie-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 190, 6, 0.8) 0%, rgba(0, 212, 8, 0.9) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
  backdrop-filter: blur(2px);
}

.movie-card:hover .movie-overlay {
  opacity: 1;
}

.play-button {
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary-color);
  padding: 10px 20px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.play-button:hover {
  background: white;
  transform: scale(1.05);
  color: var(--primary-hover);
}

.play-icon::before {
  content: '▶';
  font-size: 12px;
}

.movie-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--gradient-primary);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 190, 6, 0.3);
}

.movie-rating {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 2px;
  backdrop-filter: blur(10px);
}

.rating-icon {
  font-size: 10px;
}

.movie-info {
  padding: 15px;
}

.movie-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--light-color);
  margin-bottom: 6px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: var(--gray-color);
}

.meta-year,
.meta-area {
  background: var(--dark-color-light);
  padding: 2px 6px;
  border-radius: 8px;
  font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .navbar-content {
    grid-template-columns: auto 1fr;
    gap: 15px;
  }
  
  .nav-center {
    order: 3;
    grid-column: 1 / -1;
    margin-top: 8px;
  }
  
  .navbar-nav {
    gap: 6px;
    padding: 3px;
  }
  
  .nav-link {
    padding: 6px 12px;
    font-size: 0.85rem;
  }
  
  .search-input {

  }
  
  .search-input:focus {

  }
}

@media (max-width: 768px) {
  .navbar-content {
    padding: 8px 15px;
  }
  
  .brand-text {
    display: none;
  }
  
  .navbar-nav {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .navbar-nav::-webkit-scrollbar {
    display: none;
  }
  
  .nav-link {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
  
  .search-input {

  }
  
  .search-input:focus {

  }
  
  .movie-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
  }
  
  .movie-poster {
    height: 200px;
  }
  
  .content-container {
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .navbar-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .nav-left,
  .nav-right {
    justify-self: center;
  }
  
  .nav-center {
    margin-top: 10px;
  }
  
  .movie-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
  }
  
  .movie-poster {
    height: 180px;
  }
  
  .movie-info {
    padding: 12px;
  }
}
.nav-center{
    overflow: hidden;
}