/* 全局样式 */
main {
  min-height: calc(100vh - 200px);
  padding: 2rem 0;
}

/* 首页样式 */
.hero {
  background: white;
  padding: 2.5rem;
  margin-bottom: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.hero h1 {
  font-size: 1.8rem;
  color: #2c3e50;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.hero .intro {
  color: #555;
  font-size: 1rem;
  line-height: 1.8;
}

/* 分区样式 */
.hot-section,
.latest-section,
.links-section,
.page-header,
.list-content {
  margin-bottom: 2.5rem;
}

.hot-section h2,
.latest-section h2,
.links-section h2,
.page-header h1,
.detail-page h1 {
  font-size: 1.6rem;
  color: #2c3e50;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid #3498db;
}

/* 网格布局 */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

@media (max-width: 767px) {
  .video-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* 卡片样式 */
.video-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  position: relative;
}

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

.video-card .rank {
  position: absolute;
  top: -10px;
  right: -10px;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(231, 76, 60, 0.4);
}

.video-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  color: #2c3e50;
}

.video-card h3 a {
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.3s;
}

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

.video-card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.video-card .meta span {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  background: #ecf0f1;
  border-radius: 4px;
  font-size: 0.85rem;
  color: #555;
}

.video-card .meta .region {
  background: #3498db;
  color: white;
}

.video-card .meta .type {
  background: #9b59b6;
  color: white;
}

.video-card .meta .year {
  background: #e67e22;
  color: white;
}

.video-card .oneline {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 链接网格 */
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.link-card {
  display: block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
  padding: 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.5);
}

/* 详情页样式 */
.detail-page {
  background: white;
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.detail-page h1 {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid #3498db;
}

.detail-page section {
  margin-bottom: 2rem;
}

.detail-page h2 {
  font-size: 1.4rem;
  color: #34495e;
  margin-bottom: 1rem;
  padding-left: 1rem;
  border-left: 4px solid #3498db;
}

.basic-info ul {
  list-style: none;
}

.basic-info li {
  padding: 0.6rem 0;
  border-bottom: 1px solid #ecf0f1;
  font-size: 1rem;
  color: #555;
}

.basic-info strong {
  color: #2c3e50;
  margin-right: 0.5rem;
}

.oneline-section p,
.summary-section p,
.review-section p {
  line-height: 1.8;
  color: #555;
  font-size: 1rem;
  text-align: justify;
}

.review-section {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #27ae60;
}

.related-section .video-grid {
  margin-top: 1rem;
}

/* 页面头部 */
.page-header {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-bottom: 2rem;
}

.page-header h1 {
  border-bottom: none;
  margin-bottom: 1rem;
}

.page-header p {
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
}

/* 页脚 */
footer {
  background: #2c3e50;
  color: white;
  padding: 2rem 0;
  margin-top: 3rem;
  text-align: center;
}

footer p {
  margin: 0;
  font-size: 0.9rem;
}

/* 响应式调整 */
@media (max-width: 767px) {
  .hero {
    padding: 1.5rem;
  }

  .hero h1 {
    font-size: 1.4rem;
  }

  .detail-page {
    padding: 1.5rem;
  }

  .detail-page h1 {
    font-size: 1.6rem;
  }

  .page-header {
    padding: 1.5rem;
  }
}

/* UI风格变体 */
.ui-style-5 {
  /* 默认风格 */
}
