/* 全局样式 */
body.ui-style-8 {
  font-size: 16px;
}

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

/* 导航样式 */
header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  flex-wrap: nowrap;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #e74c3c;
  flex-shrink: 0;
  margin-right: 20px;
}

.nav-links {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.nav-links a {
  padding: 8px 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1 1 0;
  text-align: center;
  transition: all 0.3s;
  color: #333;
}

.nav-links a:hover,
.nav-links a.active {
  color: #e74c3c;
  background: #f8f9fa;
  border-radius: 4px;
}

/* 主内容区 */
.main-content {
  padding: 40px 20px;
  min-height: calc(100vh - 200px);
}

/* 首页样式 */
.hero {
  text-align: center;
  padding: 60px 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-radius: 8px;
  margin-bottom: 40px;
}

.hero h1 {
  font-size: 32px;
  margin-bottom: 20px;
}

.hero .intro {
  font-size: 16px;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.95;
}

section {
  margin-bottom: 50px;
}

section h2 {
  font-size: 28px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid #e74c3c;
}

/* 视频卡片网格 */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.video-card {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.video-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.video-card h3 a {
  color: #333;
  transition: color 0.3s;
}

.video-card h3 a:hover {
  color: #e74c3c;
}

.video-card .meta {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

.video-card .desc {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
}

/* 排行榜样式 */
.rank-list {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
}

.rank-item {
  display: flex;
  align-items: flex-start;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

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

.rank-num {
  display: inline-block;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  background: #e74c3c;
  color: #fff;
  border-radius: 50%;
  font-weight: bold;
  margin-right: 15px;
  flex-shrink: 0;
}

.rank-content {
  flex: 1;
}

.rank-content h4 {
  font-size: 16px;
  margin-bottom: 8px;
}

.rank-content h4 a {
  color: #333;
  transition: color 0.3s;
}

.rank-content h4 a:hover {
  color: #e74c3c;
}

.rank-content p {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

/* 最新列表 */
.latest-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
}

.latest-item {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #e74c3c;
}

.latest-item h4 {
  font-size: 16px;
  margin-bottom: 8px;
}

.latest-item h4 a {
  color: #333;
  transition: color 0.3s;
}

.latest-item h4 a:hover {
  color: #e74c3c;
}

.latest-item .meta {
  font-size: 13px;
  color: #999;
  margin-bottom: 10px;
}

.latest-item p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

/* 更多链接 */
.more-link {
  text-align: center;
  margin-top: 30px;
}

.more-link a {
  display: inline-block;
  padding: 10px 30px;
  background: #e74c3c;
  color: #fff;
  border-radius: 25px;
  transition: background 0.3s;
}

.more-link a:hover {
  background: #c0392b;
}

/* 链接区域 */
.links-section {
  text-align: center;
  padding: 30px;
  background: #f8f9fa;
  border-radius: 8px;
}

.links-section a {
  color: #e74c3c;
  margin: 0 10px;
  font-weight: 500;
}

.links-section a:hover {
  text-decoration: underline;
}

/* 列表页样式 */
.page-header {
  text-align: center;
  padding: 40px 0;
  background: #fff;
  border-radius: 8px;
  margin-bottom: 30px;
}

.page-header h1 {
  font-size: 30px;
  margin-bottom: 15px;
  color: #333;
}

.page-desc {
  font-size: 15px;
  color: #666;
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto;
}

.list-content {
  display: grid;
  gap: 20px;
}

.category-card,
.rank-card,
.topic-card,
.latest-card {
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  position: relative;
  transition: all 0.3s;
}

.category-card:hover,
.rank-card:hover,
.topic-card:hover,
.latest-card:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.rank-badge,
.year-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #e74c3c;
  color: #fff;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
}

.year-badge {
  background: #3498db;
}

.list-content h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.list-content h3 a {
  color: #333;
  transition: color 0.3s;
}

.list-content h3 a:hover {
  color: #e74c3c;
}

.list-content .meta {
  font-size: 14px;
  color: #999;
  margin-bottom: 10px;
}

.list-content .one-line {
  font-size: 15px;
  color: #e74c3c;
  font-weight: 500;
  margin-bottom: 10px;
  line-height: 1.6;
}

.list-content .summary {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 15px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  background: #f0f0f0;
  color: #666;
  border-radius: 3px;
  font-size: 12px;
}

/* 详情页样式 */
.detail-page {
  background: #fff;
  border-radius: 8px;
  padding: 40px;
  margin-top: 30px;
}

.detail-header {
  text-align: center;
  padding-bottom: 30px;
  border-bottom: 2px solid #eee;
  margin-bottom: 30px;
}

.detail-header h1 {
  font-size: 36px;
  color: #333;
  margin-bottom: 10px;
}

.detail-header .subtitle {
  font-size: 16px;
  color: #999;
}

.basic-info h2,
.highlight-section h2,
.summary-section h2,
.review-section h2,
.related-section h2 {
  font-size: 24px;
  margin: 30px 0 20px 0;
  color: #333;
  padding-left: 10px;
  border-left: 4px solid #e74c3c;
}

.basic-info dl {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 15px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
}

.basic-info dt {
  font-weight: bold;
  color: #555;
}

.basic-info dd {
  color: #333;
}

.highlight {
  font-size: 18px;
  color: #e74c3c;
  font-weight: 500;
  line-height: 1.8;
  padding: 20px;
  background: #fff5f5;
  border-left: 4px solid #e74c3c;
  border-radius: 4px;
}

.summary-content,
.review-content {
  font-size: 16px;
  line-height: 2;
  color: #333;
  padding: 20px;
  background: #fafafa;
  border-radius: 8px;
}

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

.related-item {
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  transition: all 0.3s;
}

.related-item:hover {
  background: #e8f4f8;
  transform: translateY(-3px);
}

.related-item h4 {
  font-size: 16px;
  margin-bottom: 10px;
}

.related-item h4 a {
  color: #333;
  transition: color 0.3s;
}

.related-item h4 a:hover {
  color: #e74c3c;
}

.related-item p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

/* 页脚 */
footer {
  background: #2c3e50;
  color: #ecf0f1;
  text-align: center;
  padding: 30px 0;
  margin-top: 50px;
}

footer p {
  font-size: 14px;
}

/* 响应式 */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .logo {
    margin-bottom: 10px;
    margin-right: 0;
  }

  .nav-links {
    width: 100%;
    justify-content: space-around;
  }

  .nav-links a {
    padding: 6px 8px;
    font-size: 13px;
  }

  .hero h1 {
    font-size: 24px;
  }

  .hero .intro {
    font-size: 14px;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .latest-list {
    grid-template-columns: 1fr;
  }

  .detail-page {
    padding: 20px;
  }

  .detail-header h1 {
    font-size: 28px;
  }

  .basic-info dl {
    grid-template-columns: 80px 1fr;
    gap: 10px;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .nav-links a {
    font-size: 11px;
    padding: 5px 4px;
  }

  .hero {
    padding: 40px 15px;
  }

  section h2 {
    font-size: 22px;
  }
}
