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

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

.hero h1 {
  font-size: 32px;
  margin-bottom: 16px;
  line-height: 1.4;
}

.hero-desc {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
  opacity: 0.95;
}

.hero-tags {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.tag {
  background: rgba(255,255,255,0.2);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  backdrop-filter: blur(10px);
}

/* 介绍区 */
.intro-section {
  background: white;
  padding: 32px;
  border-radius: 8px;
  margin-bottom: 40px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.intro-section h2 {
  font-size: 24px;
  margin-bottom: 16px;
  color: #1f2937;
}

.intro-section p {
  line-height: 1.8;
  color: #4b5563;
  font-size: 15px;
}

/* 通用Section */
.section {
  background: white;
  padding: 32px;
  border-radius: 8px;
  margin-bottom: 32px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

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

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

.video-card {
  border: 1px solid #e5e7eb;
  padding: 20px;
  border-radius: 8px;
  transition: all 0.3s ease;
  background: #fafafa;
}

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

.video-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: #1f2937;
}

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

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

.video-meta {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 8px;
}

.video-genre {
  font-size: 14px;
  color: #059669;
  margin-bottom: 10px;
  font-weight: 500;
}

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

/* 特色链接 */
.feature-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.feature-card {
  display: block;
  border: 2px solid #e5e7eb;
  padding: 32px 24px;
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.feature-card:hover {
  border-color: #2563eb;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(37,99,235,0.2);
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: #1f2937;
}

.feature-card p {
  color: #6b7280;
  font-size: 15px;
}

/* 视频列表 */
.video-list {
  list-style: none;
}

.video-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid #e5e7eb;
  transition: background 0.2s;
}

.video-item:hover {
  background: #f9fafb;
}

.video-item a {
  flex: 1;
  font-size: 16px;
  color: #1f2937;
  font-weight: 500;
}

.video-item a:hover {
  color: #2563eb;
}

.video-year, .video-type {
  font-size: 14px;
  color: #6b7280;
  padding: 4px 12px;
  background: #f3f4f6;
  border-radius: 4px;
}

.more-link {
  text-align: center;
  margin-top: 24px;
}

.more-link a {
  font-size: 16px;
  color: #2563eb;
  font-weight: 500;
}

/* 列表页 */
.list-page {
  padding: 32px 24px;
}

.page-header {
  background: white;
  padding: 40px 32px;
  border-radius: 8px;
  margin-bottom: 32px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  text-align: center;
}

.page-header h1 {
  font-size: 32px;
  margin-bottom: 16px;
  color: #1f2937;
}

.page-desc {
  font-size: 16px;
  line-height: 1.8;
  color: #4b5563;
  max-width: 800px;
  margin: 0 auto;
}

.video-listing {
  background: white;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.list-item {
  padding: 24px;
  border-bottom: 1px solid #e5e7eb;
  position: relative;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: background 0.2s;
}

.list-item:hover {
  background: #f9fafb;
}

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

.rank-num {
  font-size: 32px;
  font-weight: bold;
  color: #dc2626;
  min-width: 50px;
  text-align: center;
}

.item-date {
  font-size: 14px;
  color: #6b7280;
  background: #f3f4f6;
  padding: 4px 12px;
  border-radius: 4px;
  min-width: 60px;
  text-align: center;
}

.item-content {
  flex: 1;
}

.item-content h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.item-content h3 a {
  color: #1f2937;
}

.item-content h3 a:hover {
  color: #2563eb;
}

.item-meta {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 8px;
}

.item-tags {
  font-size: 13px;
  color: #059669;
  margin-bottom: 8px;
}

.item-summary {
  font-size: 15px;
  line-height: 1.6;
  color: #4b5563;
  margin-bottom: 8px;
}

.item-review {
  font-size: 14px;
  line-height: 1.6;
  color: #7c3aed;
  font-style: italic;
  padding: 12px;
  background: #faf5ff;
  border-left: 3px solid #7c3aed;
  border-radius: 4px;
  margin-top: 12px;
}

/* 详情页 */
.detail-page {
  padding: 32px 24px;
}

.video-detail {
  background: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.video-detail header h1 {
  font-size: 32px;
  margin-bottom: 32px;
  color: #1f2937;
  border-bottom: 3px solid #2563eb;
  padding-bottom: 16px;
}

.video-detail section {
  margin-bottom: 32px;
}

.video-detail h2 {
  font-size: 22px;
  margin-bottom: 16px;
  color: #1f2937;
  border-left: 4px solid #2563eb;
  padding-left: 12px;
}

.basic-info dl {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px 24px;
  background: #f9fafb;
  padding: 24px;
  border-radius: 8px;
}

.basic-info dt {
  font-weight: 600;
  color: #374151;
}

.basic-info dd {
  color: #4b5563;
}

.one-line {
  font-size: 18px;
  line-height: 1.8;
  color: #059669;
  font-weight: 500;
  background: #ecfdf5;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #059669;
}

.summary p, .review p {
  font-size: 16px;
  line-height: 1.8;
  color: #374151;
  text-align: justify;
}

.review p {
  background: #faf5ff;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #7c3aed;
  color: #6b21a8;
  font-style: italic;
}

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

.related-item {
  border: 1px solid #e5e7eb;
  padding: 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
  background: #fafafa;
}

.related-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

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

.related-item h3 a {
  color: #1f2937;
}

.related-item h3 a:hover {
  color: #2563eb;
}

.related-meta {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 8px;
}

.related-desc {
  font-size: 14px;
  line-height: 1.5;
  color: #4b5563;
}

/* 页脚 */
.site-footer {
  background: #1f2937;
  color: white;
  text-align: center;
  padding: 24px;
  margin-top: 40px;
}

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

/* 响应式 */
@media (max-width: 768px) {
  .container { padding: 16px; }
  .hero { padding: 40px 24px; }
  .hero h1 { font-size: 24px; }
  .hero-desc { font-size: 14px; }
  .section { padding: 20px; }
  .section h2 { font-size: 20px; }
  .video-grid { grid-template-columns: 1fr; gap: 16px; }
  .page-header { padding: 24px 20px; }
  .page-header h1 { font-size: 24px; }
  .video-detail { padding: 24px 20px; }
  .video-detail header h1 { font-size: 24px; }
  .basic-info dl { grid-template-columns: 80px 1fr; gap: 8px 16px; }
  .related-grid { grid-template-columns: 1fr; }
  .list-item { flex-direction: column; padding: 16px; }
  .rank-num { font-size: 24px; }
}

/* UI样式变体 */
body.ui-style-0 { --primary: #2563eb; }
body.ui-style-1 { --primary: #059669; }
body.ui-style-2 { --primary: #dc2626; }
body.ui-style-3 { --primary: #7c3aed; }
body.ui-style-4 { --primary: #ea580c; }
body.ui-style-5 { --primary: #0891b2; }
body.ui-style-6 { --primary: #c026d3; }
body.ui-style-7 { --primary: #65a30d; }
body.ui-style-8 { --primary: #4f46e5; }
body.ui-style-9 { --primary: #db2777; }
body.ui-style-10 { --primary: #0d9488; }
body.ui-style-11 { --primary: #ca8a04; }
body.ui-style-12 { --primary: #15803d; }
body.ui-style-13 { --primary: #b91c1c; }
body.ui-style-14 { --primary: #4338ca; }
body.ui-style-15 { --primary: #0369a1; }
