/* 全局样式 */
:root {
  --primary-color: #ff5e52;
  --secondary-color: #ff4545;
  --text-color: #333;
  --light-text: #666;
  --lighter-text: #999;
  --border-color: #eee;
  --bg-color: #f8f8f8;
  --card-bg: #fff;
  --header-height: 70px;
}

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

body {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--bg-color);
}

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

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

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

ul {
  list-style: none;
}

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

/* 渐变背景 */
.gradient-1 { background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%); }
.gradient-2 { background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%); }
.gradient-3 { background: linear-gradient(135deg, #fad0c4 0%, #ffd1ff 100%); }
.gradient-4 { background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%); }
.gradient-5 { background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%); }
.gradient-6 { background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%); }
.gradient-7 { background: linear-gradient(135deg, #d4fc79 0%, #96e6a1 100%); }
.gradient-8 { background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%); }
.gradient-9 { background: linear-gradient(135deg, #cfd9df 0%, #e2ebf0 100%); }
.gradient-10 { background: linear-gradient(135deg, #a6c0fe 0%, #f68084 100%); }
.gradient-11 { background: linear-gradient(135deg, #f6d365 0%, #fda085 100%); }
.gradient-12 { background: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%); }
.gradient-13 { background: linear-gradient(135deg, #fdcbf1 0%, #e6dee9 100%); }
.gradient-14 { background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%); }
.gradient-15 { background: linear-gradient(135deg, #d4fc79 0%, #96e6a1 100%); }
.gradient-16 { background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%); }
.gradient-17 { background: linear-gradient(135deg, #fccb90 0%, #d57eeb 100%); }
.gradient-18 { background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%); }
.gradient-19 { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.gradient-20 { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.gradient-21 { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.gradient-22 { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.gradient-23 { background: linear-gradient(135deg, #30cfd0 0%, #330867 100%); }

/* 头部样式 */
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;
  height: var(--header-height);
}

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

.logo a {
  display: block;
}

.main-nav ul {
  display: flex;
}

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

.main-nav a {
  font-size: 16px;
  font-weight: 500;
  padding: 8px 0;
  position: relative;
}

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

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

/* 主要内容区域 */
main {
  padding-top: var(--header-height);
}

/* 首页轮播区 */
.hero-section {
  padding: 80px 0;
  background-color: #fff;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 600px;
  position: relative;
  z-index: 10;
}

.hero-content h1 {
  font-size: 36px;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.hero-content p {
  font-size: 18px;
  margin-bottom: 30px;
  color: var(--light-text);
}

.search-box {
  display: flex;
  margin-top: 30px;
}

.search-box input {
  flex: 1;
  padding: 12px 20px;
  border: 2px solid var(--border-color);
  border-radius: 30px 0 0 30px;
  font-size: 16px;
  outline: none;
}

.search-box button {
  padding: 12px 30px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 0 30px 30px 0;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.search-box button:hover {
  background-color: var(--secondary-color);
}

.hero-slider {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
}

.slider-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 94, 82, 0.1) 0%, rgba(255, 94, 82, 0.3) 100%);
  border-radius: 0 0 0 100px;
}

/* 电影、电视剧、动漫、综艺卡片通用样式 */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.section-header h2 {
  font-size: 24px;
  position: relative;
  padding-left: 15px;
}

.section-header h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 20px;
  background-color: var(--primary-color);
  border-radius: 3px;
}

.more-link {
  color: var(--light-text);
  font-size: 14px;
}

.movie-section,
.tvshow-section,
.anime-section,
.variety-section {
  padding: 50px 0;
  background-color: #fff;
  margin-bottom: 20px;
}

.movie-grid,
.tvshow-grid,
.anime-grid,
.variety-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.movie-card,
.tvshow-card,
.anime-card,
.variety-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.movie-card:hover,
.tvshow-card:hover,
.anime-card:hover,
.variety-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.movie-poster,
.tvshow-poster,
.anime-poster,
.variety-poster {
  height: 200px;
  position: relative;
}

.movie-info,
.tvshow-info,
.anime-info,
.variety-info {
  padding: 15px;
  background-color: var(--card-bg);
}

.movie-info h3,
.tvshow-info h3,
.anime-info h3,
.variety-info h3 {
  font-size: 16px;
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.movie-meta,
.tvshow-meta,
.anime-meta,
.variety-meta {
  display: flex;
  font-size: 12px;
  color: var(--lighter-text);
}

.movie-meta span,
.tvshow-meta span,
.anime-meta span,
.variety-meta span {
  margin-right: 10px;
}

/* 排行榜样式 */
.ranking-section {
  padding: 50px 0;
  background-color: #fff;
  margin-bottom: 20px;
}

.tab-header {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.tab-item {
  padding: 10px 20px;
  cursor: pointer;
  position: relative;
  font-weight: 500;
}

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

.tab-item.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

.tab-pane {
  display: none;
}

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

.rank-list li {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.rank-num {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-color);
  border-radius: 50%;
  margin-right: 15px;
  font-weight: bold;
  font-size: 14px;
}

.rank-list li:nth-child(1) .rank-num,
.rank-list li:nth-child(2) .rank-num,
.rank-list li:nth-child(3) .rank-num {
  background-color: var(--primary-color);
  color: white;
}

.rank-name {
  flex: 1;
  font-size: 16px;
}

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

/* APP下载区样式 */
.app-section {
  padding: 50px 0;
  background-color: #fff;
  margin-bottom: 20px;
}

.app-content {
  display: flex;
  align-items: center;
}

.app-info {
  flex: 1;
}

.app-info h3 {
  font-size: 28px;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.app-info p {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--light-text);
}

.app-features {
  margin-bottom: 30px;
}

.app-features li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.feature-icon {
  width: 20px;
  height: 20px;
  background-color: var(--primary-color);
  border-radius: 50%;
  margin-right: 10px;
}

.app-buttons {
  display: flex;
}

.btn {
  display: flex;
  align-items: center;
  padding: 12px 25px;
  border-radius: 8px;
  background-color: #333;
  color: white;
  margin-right: 15px;
  transition: transform 0.3s ease;
}

.btn:hover {
  transform: translateY(-3px);
  color: white;
}

.btn-icon {
  width: 30px;
  height: 30px;
  border-radius: 5px;
  margin-right: 10px;
}

.btn-text {
  display: flex;
  flex-direction: column;
}

.btn-text small {
  font-size: 12px;
  opacity: 0.8;
}

.btn-text span {
  font-size: 16px;
  font-weight: 500;
}

.app-qrcode {
  width: 200px;
  height: 200px;
  margin-left: 50px;
  border-radius: 10px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 20px;
}

.app-qrcode p {
  background-color: rgba(255, 255, 255, 0.8);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 14px;
}

/* 关于我们区样式 */
.about-section {
  padding: 50px 0;
  background-color: #fff;
  margin-bottom: 20px;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.8;
}

/* 文章区域样式 */
.article-section {
  padding: 50px 0;
  background-color: #fff;
  margin-bottom: 20px;
}

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

.article-item {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.article-item h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.article-meta {
  font-size: 12px;
  color: var(--lighter-text);
  margin-bottom: 15px;
}

.article-content p {
  font-size: 14px;
  margin-bottom: 10px;
  line-height: 1.8;
}

/* 页脚样式 */
#footer {
  background-color: #222;
  color: #fff;
  padding: 50px 0 20px;
}

.footer-top {
  display: flex;
  margin-bottom: 40px;
}

.footer-logo {
  margin-right: 50px;
}

.footer-nav {
  display: flex;
  flex: 1;
  justify-content: space-between;
}

.footer-nav-col h4 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 18px;
  position: relative;
  padding-bottom: 10px;
}

.footer-nav-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--primary-color);
}

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

.footer-nav-col ul li a {
  color: #aaa;
  font-size: 14px;
}

.footer-nav-col ul li a:hover {
  color: var(--primary-color);
}

.footer-middle {
  margin-bottom: 40px;
}

.footer-links h4 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 18px;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-links ul {
  display: flex;
  flex-wrap: wrap;
}

.footer-links ul li {
  margin-right: 15px;
  margin-bottom: 10px;
}

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

.footer-links ul li a:hover {
  color: var(--primary-color);
}

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

.copyright {
  font-size: 14px;
  color: #aaa;
  margin-bottom: 10px;
}

.icp {
  font-size: 12px;
}

.icp a {
  color: #aaa;
  margin-right: 10px;
}

.icp a:hover {
  color: var(--primary-color);
}

.icp img {
  vertical-align: middle;
  margin-right: 5px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .movie-grid,
  .tvshow-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .anime-grid,
  .variety-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .movie-grid,
  .tvshow-grid,
  .anime-grid,
  .variety-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .article-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .hero-slider {
    display: none;
  }
  
  .footer-top {
    flex-direction: column;
  }
  
  .footer-logo {
    margin-bottom: 30px;
  }
  
  .footer-nav {
    flex-wrap: wrap;
  }
  
  .footer-nav-col {
    width: 50%;
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .movie-grid,
  .tvshow-grid,
  .anime-grid,
  .variety-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .app-content {
    flex-direction: column;
  }
  
  .app-qrcode {
    margin-left: 0;
    margin-top: 30px;
  }
}

@media (max-width: 576px) {
  .movie-grid,
  .tvshow-grid,
  .anime-grid,
  .variety-grid {
    grid-template-columns: 1fr;
  }
  
  .main-nav {
    display: none;
  }
  
  .footer-nav-col {
    width: 100%;
  }
}
