/* 全局样式 */
:root {
  --primary-color: #ff6b6b;
  --secondary-color: #5f27cd;
  --accent-color: #feca57;
  --dark-color: #222f3e;
  --light-color: #f9f9f9;
  --text-color: #333333;
  --text-light: #777777;
  --border-color: #e0e0e0;
  --card-bg: #ffffff;
  --gradient-bg: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

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

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-color);
}

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

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

a:hover {
  color: var(--secondary-color);
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 15px;
}

p {
  margin-bottom: 15px;
}

.btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 30px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.primary-btn {
  background: var(--primary-color);
  color: white;
}

.primary-btn:hover {
  background: var(--secondary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.secondary-btn {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--dark-color);
  position: relative;
  padding-bottom: 15px;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-bg);
  border-radius: 2px;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

/* 头部样式 */
.site-header {
  background-color: var(--dark-color);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo a {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
}

.logo h1 {
  font-size: 1.5rem;
  margin-bottom: 0;
  color: white;
}

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

.main-nav li {
  margin-left: 25px;
}

.main-nav a {
  color: white;
  font-weight: 600;
  padding: 5px 0;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

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

/* 英雄区域样式 */
.hero-section {
  padding: 80px 0;
  background: var(--gradient-bg);
  color: white;
}

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

.hero-content {
  flex: 1;
  padding-right: 50px;
}

.hero-content h2 {
  font-size: 3rem;
  margin-bottom: 20px;
}

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

.hero-buttons {
  display: flex;
  gap: 15px;
}

.hero-image {
  flex: 1;
}

.hero-image img {
  border-radius: 10px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* 最新更新区域样式 */
.latest-section {
  padding: 80px 0;
  background-color: var(--light-color);
}

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

.drama-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.drama-image {
  height: 200px;
  overflow: hidden;
}

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

.drama-card:hover .drama-image img {
  transform: scale(1.1);
}

.drama-content {
  padding: 20px;
}

.drama-content h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.drama-info {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.drama-desc {
  color: var(--text-color);
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.watch-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.watch-btn:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  color: white;
}

/* 国产剧场区域样式 */
.domestic-section {
  padding: 80px 0;
  background-color: var(--card-bg);
}

.drama-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.drama-item {
  display: flex;
  background-color: var(--light-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.drama-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.drama-item img {
  width: 280px;
  height: 160px;
  object-fit: cover;
}

.drama-item-content {
  padding: 20px;
  flex: 1;
}

.drama-item-content h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.drama-item-info {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.drama-item-desc {
  color: var(--text-color);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 韩剧专区样式 */
.korean-section {
  padding: 80px 0;
  background-color: var(--light-color);
}

.drama-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 10px 0 30px;
  margin-bottom: 40px;
}

.drama-carousel::-webkit-scrollbar {
  height: 8px;
}

.drama-carousel::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.drama-carousel::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
}

.carousel-item {
  flex: 0 0 250px;
  background-color: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.carousel-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.carousel-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.carousel-content {
  padding: 15px;
}

.carousel-content h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.carousel-content p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

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

.star {
  color: var(--accent-color);
  font-size: 0.9rem;
}

.score {
  font-weight: 700;
  color: var(--primary-color);
}

.korean-feature {
  display: flex;
  background-color: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature-image {
  flex: 0 0 500px;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-content {
  padding: 30px;
  flex: 1;
}

.feature-content h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.feature-info {
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 20px;
}

.feature-desc {
  color: var(--text-color);
  margin-bottom: 30px;
}

/* 美剧专区样式 */
.american-section {
  padding: 80px 0;
  background-color: var(--card-bg);
}

.drama-grid-small {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.drama-card-small {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  height: 130px;
  transition: transform 0.3s ease;
}

.drama-card-small:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.drama-card-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 15px;
  color: white;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.drama-card-small:hover .card-overlay {
  transform: translateY(0);
}

.card-overlay h3 {
  font-size: 1rem;
  margin-bottom: 5px;
}

.card-overlay p {
  font-size: 0.8rem;
  margin-bottom: 10px;
  opacity: 0.8;
}

.overlay-btn {
  display: inline-block;
  padding: 5px 15px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.overlay-btn:hover {
  background-color: var(--secondary-color);
  color: white;
}

/* 港剧专区样式 */
.hongkong-section {
  padding: 80px 0;
  background-color: var(--light-color);
}

.drama-tabs {
  background-color: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.tabs-header {
  display: flex;
  background-color: var(--dark-color);
}

.tab-item {
  padding: 15px 25px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-item.active {
  background-color: var(--primary-color);
}

.tab-item:hover:not(.active) {
  background-color: rgba(255, 255, 255, 0.1);
}

.tabs-content {
  padding: 30px;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.tab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.tab-card {
  text-align: center;
  transition: transform 0.3s ease;
}

.tab-card:hover {
  transform: translateY(-5px);
}

.tab-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

.tab-card h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.tab-card p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* 经典回顾区域样式 */
.classic-section {
  padding: 80px 0;
  background-color: var(--card-bg);
}

.classic-showcase {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.showcase-item {
  display: flex;
  background-color: var(--light-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.showcase-image {
  flex: 0 0 400px;
}

.showcase-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase-content {
  padding: 30px;
  flex: 1;
}

.showcase-content h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.showcase-info {
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 20px;
}

.showcase-desc {
  color: var(--text-color);
  margin-bottom: 30px;
}

.classic-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.classic-item {
  display: flex;
  align-items: center;
  background-color: var(--light-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.classic-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.classic-item img {
  width: 100px;
  height: 70px;
  object-fit: cover;
}

.classic-item-content {
  padding: 10px 15px;
  flex: 1;
}

.classic-item-content h3 {
  font-size: 1rem;
  margin-bottom: 5px;
}

.classic-item-content p {
  color: var(--text-light);
  font-size: 0.8rem;
}

/* 热播榜单区域样式 */
.ranking-section {
  padding: 80px 0;
  background-color: var(--light-color);
}

.ranking-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.ranking-list {
  background-color: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.ranking-title {
  background-color: var(--primary-color);
  padding: 15px 20px;
  color: white;
}

.ranking-title h3 {
  margin-bottom: 0;
  font-size: 1.2rem;
}

.ranking-items {
  padding: 15px;
}

.ranking-item {
  display: flex;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid var(--border-color);
  transition: transform 0.3s ease;
}

.ranking-item:last-child {
  border-bottom: none;
}

.ranking-item:hover {
  transform: translateX(10px);
  background-color: rgba(0, 0, 0, 0.02);
}

.rank-number {
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--dark-color);
  color: white;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.8rem;
  margin-right: 15px;
}

.ranking-item:nth-child(1) .rank-number {
  background-color: #ffd700;
  color: var(--dark-color);
}

.ranking-item:nth-child(2) .rank-number {
  background-color: #c0c0c0;
  color: var(--dark-color);
}

.ranking-item:nth-child(3) .rank-number {
  background-color: #cd7f32;
  color: var(--dark-color);
}

.ranking-item img {
  width: 100px;
  height: 60px;
  object-fit: cover;
  margin-right: 15px;
}

.rank-content {
  flex: 1;
}

.rank-content h4 {
  font-size: 1rem;
  margin-bottom: 5px;
}

.rank-content p {
  color: var(--text-light);
  font-size: 0.8rem;
  margin-bottom: 0;
}

.ranking-special {
  background-color: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 20px;
}

.ranking-special h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color);
}

.special-content {
  display: flex;
  gap: 20px;
}

.special-content img {
  width: 300px;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
}

.special-info {
  flex: 1;
}

.special-info h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.special-desc {
  color: var(--text-color);
  margin-bottom: 20px;
}

.special-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 5px;
}

.stat-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
}

/* 页脚样式 */
.site-footer {
  background-color: var(--dark-color);
  color: white;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.footer-about h3,
.footer-links h3,
.footer-categories h3,
.footer-contact h3 {
  color: white;
  font-size: 1.3rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-about h3::after,
.footer-links h3::after,
.footer-categories h3::after,
.footer-contact h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--primary-color);
}

.footer-about p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
}

.footer-links ul,
.footer-categories ul {
  list-style: none;
}

.footer-links li,
.footer-categories li {
  margin-bottom: 10px;
}

.footer-links a,
.footer-categories a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-categories a:hover {
  color: var(--primary-color);
}

.footer-contact p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-link {
  display: inline-block;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  text-align: center;
  line-height: 40px;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  margin-bottom: 5px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .hero-section .container {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-content {
    padding-right: 0;
    margin-bottom: 40px;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .showcase-item {
    flex-direction: column;
  }
  
  .showcase-image {
    flex: 0 0 250px;
  }
  
  .korean-feature {
    flex-direction: column;
  }
  
  .feature-image {
    flex: 0 0 250px;
  }
  
  .special-content {
    flex-direction: column;
  }
  
  .special-content img {
    width: 100%;
    height: 200px;
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .site-header .container {
    flex-direction: column;
  }
  
  .logo {
    margin-bottom: 15px;
  }
  
  .main-nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .main-nav li {
    margin: 5px 10px;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .hero-content h2 {
    font-size: 2.2rem;
  }
  
  .drama-item {
    flex-direction: column;
  }
  
  .drama-item img {
    width: 100%;
    height: 200px;
  }
  
  .tabs-header {
    flex-direction: column;
  }
  
  .ranking-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }
  
  .btn {
    width: 100%;
  }
  
  .drama-grid,
  .drama-grid-small,
  .tab-grid,
  .classic-list {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
}