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

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

/* 首页专属 */
.intro-section {
  background: #fff;
  padding: 30px;
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.intro-section h1 {
  font-size: 24px;
  color: #222;
  margin-bottom: 20px;
  line-height: 1.4;
}

.intro-text p {
  margin-bottom: 12px;
  line-height: 1.8;
}

.hot-section,
.entry-section,
.latest-section {
  background: #fff;
  padding: 25px;
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.hot-section h2,
.entry-section h2,
.latest-section h2 {
  font-size: 22px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #0066cc;
}

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

.video-card {
  background: #fafafa;
  padding: 20px;
  border-radius: 6px;
  border: 1px solid #e8e8e8;
  transition: all 0.3s;
  position: relative;
}

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

.video-card .rank {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ff6b6b;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
}

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

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

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

.video-card .meta {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13px;
  color: #666;
}

.video-card .meta span {
  background: #e8e8e8;
  padding: 2px 8px;
  border-radius: 3px;
}

.video-card .date {
  font-size: 13px;
  color: #999;
  margin-bottom: 8px;
}

.video-card .oneline {
  font-size: 14px;
  color: #555;
  margin-bottom: 12px;
  line-height: 1.6;
}

.video-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.video-card .tag {
  background: #e3f2fd;
  color: #1976d2;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
}

/* 视频列表 */
.video-list,
.video-list-with-date,
.video-ranked-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 入口网格 */
.entry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.entry-card {
  background: #f0f8ff;
  padding: 25px;
  border-radius: 6px;
  border: 1px solid #b3d9ff;
}

.entry-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.entry-card h3 a {
  color: #0066cc;
}

.entry-card p {
  color: #555;
  line-height: 1.6;
}

/* 列表页 */
.page-desc {
  background: #fff;
  padding: 20px;
  margin-bottom: 25px;
  border-radius: 6px;
  border-left: 4px solid #0066cc;
}

.page-desc p {
  line-height: 1.8;
  color: #444;
}

/* 主题分组 */
.topic-group {
  background: #fff;
  padding: 25px;
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.topic-title {
  font-size: 20px;
  margin-bottom: 20px;
  color: #0066cc;
  padding-bottom: 10px;
  border-bottom: 2px solid #e0e0e0;
}

/* 详情页 */
.detail-article {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.detail-article h1 {
  font-size: 28px;
  color: #222;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 3px solid #0066cc;
}

.detail-article h2 {
  font-size: 20px;
  color: #333;
  margin-top: 30px;
  margin-bottom: 15px;
  padding-left: 12px;
  border-left: 4px solid #0066cc;
}

.detail-article section {
  margin-bottom: 25px;
}

.basic-info .info-list {
  list-style: none;
  padding: 0;
}

.basic-info .info-list li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  line-height: 1.6;
}

.basic-info .tags {
  margin-top: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.basic-info .tag {
  background: #e3f2fd;
  color: #1976d2;
  padding: 4px 12px;
  border-radius: 14px;
  font-size: 13px;
}

.oneline-text {
  font-size: 18px;
  color: #0066cc;
  font-style: italic;
  padding: 15px;
  background: #f0f8ff;
  border-left: 4px solid #0066cc;
  border-radius: 4px;
}

.summary-text,
.review-text {
  line-height: 1.8;
  color: #444;
  font-size: 15px;
}

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

.related-item {
  background: #fafafa;
  padding: 18px;
  border-radius: 6px;
  border: 1px solid #e8e8e8;
  transition: all 0.3s;
}

.related-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

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

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

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

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

/* 页脚 */
.footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

.footer p {
  margin: 0;
  font-size: 14px;
}

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

  .intro-section,
  .hot-section,
  .entry-section,
  .latest-section,
  .detail-article {
    padding: 20px;
  }

  .intro-section h1 {
    font-size: 20px;
  }

  .detail-article h1 {
    font-size: 24px;
  }

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

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

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

/* 导航激活状态 */
.nav a.active {
  font-weight: bold;
  color: #0066cc;
  background: #e3f2fd;
  border-radius: 4px;
}
