/* 全局样式 */
:root {
  --primary-color: #ffcc00;
  --secondary-color: #ff9900;
  --dark-color: #333333;
  --light-color: #f8f8f8;
  --text-color: #333333;
  --link-color: #ff9900;
  --link-hover-color: #ffcc00;
  --card-bg: #ffffff;
  --border-color: #eeeeee;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --gradient-overlay: linear-gradient(to bottom, rgba(0, 0, 0, 0.01), rgba(0, 0, 0, 0.7));
}

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

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

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

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

ul {
  list-style: none;
}

/* 图标样式 */
.icon-banana {
  display: inline-block;
  width: 30px;
  height: 30px;
  background-color: var(--primary-color);
  border-radius: 50%;
  position: relative;
  margin-right: 10px;
}

.icon-banana:before {
  content: "";
  position: absolute;
  top: 5px;
  left: 8px;
  width: 15px;
  height: 20px;
  border-radius: 10px 10px 0 0;
  background-color: var(--light-color);
  transform: rotate(-20deg);
}

.icon-check {
  display: inline-block;
  width: 18px;
  height: 18px;
  background-color: var(--primary-color);
  border-radius: 50%;
  position: relative;
  margin-right: 8px;
}

.icon-check:before {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  width: 8px;
  height: 4px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(-45deg);
}

.icon-android, .icon-apple, .icon-email, .icon-phone {
  display: inline-block;
  width: 20px;
  height: 20px;
  background-color: var(--primary-color);
  border-radius: 50%;
  margin-right: 8px;
}

/* 头部样式 */
header {
  background-color: white;
  box-shadow: 0 2px 10px var(--shadow-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
  font-size: 24px;
  font-weight: bold;
  color: var(--dark-color);
}

nav ul {
  display: flex;
}

nav ul li {
  margin-left: 25px;
}

nav ul li a {
  color: var(--dark-color);
  font-weight: 500;
}

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

/* 横幅样式 */
.banner {
  background: linear-gradient(135deg, #ffcc00, #ff9900);
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.banner:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.1)"/></svg>');
  background-size: 100px 100px;
  opacity: 0.3;
}

.banner-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.banner h1 {
  color: white;
  font-size: 36px;
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.banner p {
  color: white;
  font-size: 18px;
  margin-bottom: 30px;
}

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

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

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

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

/* 内容区域样式 */
.content-section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

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

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

.section-header h2:before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  height: 25px;
  width: 5px;
  background-color: var(--primary-color);
  border-radius: 3px;
}

.more-link {
  color: var(--link-color);
  font-size: 16px;
  display: flex;
  align-items: center;
}

.more-link:after {
  content: "→";
  margin-left: 5px;
}

/* 卡片样式 */
.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.card {
  background-color: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px var(--shadow-color);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px var(--shadow-color);
}

.card-image {
  height: 250px;
  position: relative;
  overflow: hidden;
}

.card-info {
  padding: 15px;
}

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

.rating, .tags {
  font-size: 14px;
  color: #777;
  margin-bottom: 5px;
}

/* 渐变背景 */
.gradient-1 { background: linear-gradient(135deg, #3498db, #2980b9); }
.gradient-2 { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.gradient-3 { background: linear-gradient(135deg, #9b59b6, #8e44ad); }
.gradient-4 { background: linear-gradient(135deg, #2ecc71, #27ae60); }
.gradient-5 { background: linear-gradient(135deg, #f1c40f, #f39c12); }
.gradient-6 { background: linear-gradient(135deg, #1abc9c, #16a085); }
.gradient-7 { background: linear-gradient(135deg, #34495e, #2c3e50); }
.gradient-8 { background: linear-gradient(135deg, #d35400, #e67e22); }
.gradient-9 { background: linear-gradient(135deg, #7f8c8d, #95a5a6); }
.gradient-10 { background: linear-gradient(135deg, #8e44ad, #9b59b6); }
.gradient-11 { background: linear-gradient(135deg, #16a085, #1abc9c); }
.gradient-12 { background: linear-gradient(135deg, #2980b9, #3498db); }
.gradient-13 { background: linear-gradient(135deg, #c0392b, #e74c3c); }
.gradient-14 { background: linear-gradient(135deg, #27ae60, #2ecc71); }
.gradient-15 { background: linear-gradient(135deg, #f39c12, #f1c40f); }
.gradient-16 { background: linear-gradient(135deg, #2c3e50, #34495e); }
.gradient-17 { background: linear-gradient(135deg, #e67e22, #d35400); }
.gradient-18 { background: linear-gradient(135deg, #95a5a6, #7f8c8d); }
.gradient-19 { background: linear-gradient(135deg, #3498db, #9b59b6); }
.gradient-20 { background: linear-gradient(135deg, #2ecc71, #1abc9c); }
.gradient-21 { background: linear-gradient(135deg, #f1c40f, #e67e22); }
.gradient-22 { background: linear-gradient(135deg, #e74c3c, #8e44ad); }
.gradient-23 { background: linear-gradient(135deg, #16a085, #27ae60); }
.gradient-24 { background: linear-gradient(135deg, #2c3e50, #7f8c8d); }
.gradient-25 { background: linear-gradient(135deg, #ffcc00, #ff9900); }

/* 排行榜样式 */
.ranking-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.ranking-column h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: var(--dark-color);
  text-align: center;
}

.ranking-list {
  background-color: white;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 4px 10px var(--shadow-color);
}

.ranking-list li {
  padding: 10px 15px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
}

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

.rank {
  display: inline-block;
  width: 24px;
  height: 24px;
  background-color: #eee;
  color: #777;
  border-radius: 50%;
  text-align: center;
  line-height: 24px;
  margin-right: 10px;
  font-weight: bold;
  font-size: 14px;
}

.ranking-list li:nth-child(1) .rank {
  background-color: gold;
  color: white;
}

.ranking-list li:nth-child(2) .rank {
  background-color: silver;
  color: white;
}

.ranking-list li:nth-child(3) .rank {
  background-color: #cd7f32;
  color: white;
}

/* 最新上线样式 */
.newest-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.newest-item {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px var(--shadow-color);
}

.newest-image {
  height: 160px;
  position: relative;
}

.newest-info {
  padding: 15px;
}

.newest-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  color: white;
  margin-bottom: 8px;
}

.newest-tag.movie {
  background-color: #e74c3c;
}

.newest-tag.tv {
  background-color: #3498db;
}

.newest-tag.short {
  background-color: #2ecc71;
}

.newest-info h3 {
  font-size: 16px;
  margin-bottom: 5px;
}

.newest-info p {
  font-size: 14px;
  color: #777;
}

/* APP下载样式 */
.app-section {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 15px var(--shadow-color);
  margin-top: 40px;
  margin-bottom: 40px;
}

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

.app-info {
  flex: 1;
  padding: 30px;
  min-width: 300px;
}

.app-info h2 {
  font-size: 28px;
  margin-bottom: 15px;
  color: var(--dark-color);
}

.app-info > p {
  font-size: 18px;
  margin-bottom: 20px;
  color: #555;
}

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

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

.app-download {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.download-btn {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  border-radius: 30px;
  background-color: var(--dark-color);
  color: white;
  font-weight: 500;
  transition: background-color 0.3s;
}

.download-btn:hover {
  background-color: #222;
  color: white;
}

.app-version {
  font-size: 14px;
  color: #777;
}

.app-qrcode {
  padding: 30px;
  text-align: center;
}

.qrcode-image {
  width: 180px;
  height: 180px;
  margin: 0 auto 15px;
  border-radius: 10px;
}

.app-qrcode p {
  font-size: 14px;
  color: #555;
}

/* 文章样式 */
.articles-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 30px;
}

.article-item {
  background-color: white;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 4px 10px var(--shadow-color);
}

.article-item h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: var(--dark-color);
}

.article-item p {
  font-size: 15px;
  line-height: 1.7;
  color: #555;
  text-align: justify;
}

/* 关于我们样式 */
.about-container {
  background-color: white;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 4px 10px var(--shadow-color);
}

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

.contact-info {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.contact-info h3 {
  font-size: 20px;
  margin-bottom: 15px;
}

.contact-info p {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

/* 页脚样式 */
footer {
  background-color: var(--dark-color);
  color: #ccc;
  padding: 60px 0 30px;
}

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

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

.footer-logo {
  display: flex;
  align-items: center;
  font-size: 24px;
  font-weight: bold;
  color: white;
  margin-right: 60px;
  margin-bottom: 30px;
}

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

.footer-nav-column {
  min-width: 150px;
  margin-bottom: 30px;
}

.footer-nav-column h4 {
  color: white;
  margin-bottom: 15px;
  font-size: 16px;
}

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

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

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

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

.footer-middle h4 {
  color: white;
  margin-bottom: 15px;
  font-size: 16px;
}

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

.friend-links ul li, .friend-links a {
  margin-right: 15px;
  margin-bottom: 10px;
  font-size: 14px;
  color: #ccc;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #444;
  font-size: 14px;
}

.footer-bottom p {
  margin-bottom: 10px;
}

.footer-bottom a {
  color: #ccc;
  margin: 0 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
  }
  
  .logo {
    margin-bottom: 15px;
  }
  
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  nav ul li {
    margin: 5px 10px;
  }
  
  .banner h1 {
    font-size: 28px;
  }
  
  .card-container {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
  
  .ranking-container, .newest-container {
    grid-template-columns: 1fr;
  }
  
  .articles-container {
    grid-template-columns: 1fr;
  }
  
  .app-container {
    flex-direction: column;
  }
  
  .app-info, .app-qrcode {
    width: 100%;
  }
}
