/* 全局样式 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.page-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
}

.page-header h1 {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.page-desc {
  font-size: 1rem;
  color: #666;
  line-height: 1.8;
}

/* 首页样式 */
.site-intro {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 3rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.site-intro p {
  font-size: 1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 1rem;
}

.quick-links {
  margin-top: 1.5rem;
  font-size: 1rem;
}

.quick-links a {
  color: #3498db;
  text-decoration: none;
  padding: 0 0.5rem;
}

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

.hot-section, .list-section, .latest-section {
  margin-bottom: 3rem;
}

.hot-section h2, .list-section h2, .latest-section h2 {
  font-size: 1.5rem;
  color: #2c3e50;
  margin-bottom: 1.5rem;
  border-left: 4px solid #3498db;
  padding-left: 1rem;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.video-card {
  background: #fff;
  padding: 1.5rem;
  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(-4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.video-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

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

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

.video-card .meta {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 0.5rem;
}

.video-card .oneline {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
}

.entrance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.entrance-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 2rem;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  transition: transform 0.3s;
}

.entrance-card:hover {
  transform: scale(1.05);
}

.entrance-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.entrance-card p {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* 列表页样式 */
.list-content {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.list-item, .top-item, .topic-item, .latest-item {
  padding: 1.5rem;
  border-bottom: 1px solid #eee;
  display: flex;
  gap: 1rem;
}

.list-item:last-child, .top-item:last-child, .topic-item:last-child, .latest-item:last-child {
  border-bottom: none;
}

.item-number {
  font-size: 1.2rem;
  font-weight: bold;
  color: #999;
  min-width: 2rem;
}

.rank-badge {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
  background: #3498db;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.top-item.rank-1 .rank-badge { background: #f39c12; }
.top-item.rank-2 .rank-badge { background: #95a5a6; }
.top-item.rank-3 .rank-badge { background: #cd7f32; }

.topic-tag {
  background: #e74c3c;
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 0.85rem;
  align-self: flex-start;
}

.item-date {
  background: #16a085;
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 0.85rem;
  align-self: flex-start;
  min-width: 4rem;
  text-align: center;
}

.item-content {
  flex: 1;
}

.item-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.item-content h3 a {
  color: #2c3e50;
  text-decoration: none;
}

.item-content h3 a:hover {
  color: #3498db;
}

.item-content .meta {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 0.5rem;
}

.item-content .oneline,
.item-content .summary {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
}

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

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

.detail-info {
  margin-bottom: 2rem;
}

.info-row {
  padding: 0.5rem 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.info-row .label {
  font-weight: bold;
  color: #666;
  display: inline-block;
  min-width: 5rem;
}

.detail-oneline,
.detail-summary,
.detail-review,
.related-section {
  margin-bottom: 2rem;
}

.detail-oneline h2,
.detail-summary h2,
.detail-review h2,
.related-section h2 {
  font-size: 1.3rem;
  color: #2c3e50;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #eee;
}

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

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

.related-card {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 6px;
  border-left: 3px solid #3498db;
  transition: background 0.3s;
}

.related-card:hover {
  background: #e9ecef;
}

.related-card h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.related-card h4 a {
  color: #2c3e50;
  text-decoration: none;
}

.related-card h4 a:hover {
  color: #3498db;
}

.related-card .oneline {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.5;
}

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

  .page-header h1 {
    font-size: 1.5rem;
  }

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

  .list-item, .top-item, .topic-item, .latest-item {
    flex-direction: column;
  }

  .detail-header h1 {
    font-size: 1.5rem;
  }
}