/* 全局样式 */
body { background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); }

/* 首页样式 */
.hero { text-align: center; padding: 3rem 1rem; background: #fff; border-radius: 12px; box-shadow: 0 4px 16px rgba(0,0,0,0.08); margin-bottom: 2rem; }
.hero h1 { font-size: 2rem; color: #1f2937; margin-bottom: 1rem; }
.hero .intro { color: #6b7280; line-height: 1.8; max-width: 800px; margin: 0 auto; }

.section { background: #fff; border-radius: 12px; padding: 2rem; margin-bottom: 2rem; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.section h2 { font-size: 1.5rem; margin-bottom: 1.5rem; color: #1f2937; border-left: 4px solid #2563eb; padding-left: 1rem; }

.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.video-card { padding: 1.5rem; background: #f9fafb; border-radius: 8px; transition: all 0.3s; border: 1px solid #e5e7eb; }
.video-card:hover { transform: translateY(-4px); box-shadow: 0 8px 16px rgba(0,0,0,0.1); }
.video-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.video-card h3 a { color: #1f2937; }
.video-card h3 a:hover { color: #2563eb; }
.video-card .meta { color: #9ca3af; font-size: 0.9rem; margin-bottom: 0.5rem; }
.video-card .desc { color: #6b7280; font-size: 0.95rem; line-height: 1.6; }

.more-link { text-align: center; margin-top: 1.5rem; font-size: 1rem; }
.more-link a { color: #2563eb; font-weight: 500; }

.links-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
.link-card { display: block; padding: 1.5rem; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; border-radius: 8px; text-align: center; font-weight: 500; transition: all 0.3s; }
.link-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4); color: #fff; }

/* 列表页样式 */
.page-header { text-align: center; padding: 2rem 1rem; background: #fff; border-radius: 12px; margin-bottom: 2rem; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.page-header h1 { font-size: 2rem; color: #1f2937; margin-bottom: 0.5rem; }
.page-header .page-desc { color: #6b7280; line-height: 1.6; }

.list-content { background: #fff; border-radius: 12px; padding: 2rem; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }

.group, .topic-group { margin-bottom: 3rem; }
.group-title, .topic-title { font-size: 1.3rem; color: #1f2937; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid #e5e7eb; }

.video-list { display: grid; gap: 1.5rem; }
.video-item { padding: 1.5rem; background: #f9fafb; border-radius: 8px; border-left: 3px solid #2563eb; }
.video-item h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.video-item h4 a { color: #1f2937; }
.video-item h4 a:hover { color: #2563eb; }
.video-item .meta { color: #9ca3af; font-size: 0.9rem; margin-bottom: 0.5rem; }
.video-item .tags { color: #6366f1; font-size: 0.85rem; margin-bottom: 0.5rem; }
.video-item .desc { color: #6b7280; line-height: 1.6; margin-bottom: 0.5rem; }
.video-item .review { color: #059669; font-size: 0.95rem; font-style: italic; line-height: 1.6; }

.video-item.ranked { display: flex; gap: 1rem; align-items: flex-start; }
.video-item.ranked .rank { flex-shrink: 0; width: 40px; height: 40px; background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 1.2rem; }
.video-item.ranked .content { flex: 1; }

.video-item.latest { display: flex; gap: 1rem; }
.video-item.latest .date { flex-shrink: 0; padding: 0.5rem 1rem; background: #3b82f6; color: #fff; border-radius: 6px; font-weight: bold; }
.video-item.latest .content { flex: 1; }

/* 详情页样式 */
.detail { background: #fff; border-radius: 12px; padding: 3rem; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.detail-header { text-align: center; padding-bottom: 2rem; border-bottom: 2px solid #e5e7eb; margin-bottom: 2rem; }
.detail-header h1 { font-size: 2.5rem; color: #1f2937; margin-bottom: 0.5rem; }
.detail-header .subtitle { color: #6b7280; font-size: 1.1rem; }

.detail section { margin-bottom: 2rem; }
.detail h2 { font-size: 1.3rem; color: #1f2937; margin-bottom: 1rem; border-left: 4px solid #2563eb; padding-left: 1rem; }

.detail-info dl { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1rem; background: #f9fafb; padding: 1.5rem; border-radius: 8px; }
.detail-info dt { font-weight: 600; color: #4b5563; }
.detail-info dd { color: #1f2937; }

.oneline { font-size: 1.2rem; color: #2563eb; font-weight: 500; line-height: 1.8; padding: 1rem; background: #eff6ff; border-radius: 8px; border-left: 4px solid #2563eb; }

.summary, .review { color: #374151; line-height: 1.8; text-align: justify; }
.review { background: #f0fdf4; padding: 1rem; border-radius: 8px; border-left: 4px solid #10b981; font-style: italic; }

.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.related-item { padding: 1rem; background: #f9fafb; border-radius: 8px; border: 1px solid #e5e7eb; transition: all 0.3s; }
.related-item:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.08); }
.related-item h4 { font-size: 1rem; margin-bottom: 0.5rem; }
.related-item h4 a { color: #1f2937; }
.related-item h4 a:hover { color: #2563eb; }
.related-item .meta { color: #9ca3af; font-size: 0.85rem; margin-bottom: 0.3rem; }
.related-item .desc { color: #6b7280; font-size: 0.9rem; line-height: 1.5; }

/* 响应式 */
@media (max-width: 768px) {
  .hero h1 { font-size: 1.5rem; }
  .video-grid { grid-template-columns: 1fr; }
  .detail { padding: 1.5rem; }
  .detail-header h1 { font-size: 1.8rem; }
  .related-grid { grid-template-columns: 1fr; }
}