/* 全局样式 */
:root {
  --primary-color: #3498db;
  --secondary-color: #2c3e50;
  --accent-color: #e74c3c;
  --text-color: #333;
  --bg-color: #f5f5f5;
  --card-bg: #fff;
  --border-color: #ddd;
  --hover-color: #ecf0f1;
}

/* UI风格变体 */
.ui-style-0 { --primary-color: #3498db; }
.ui-style-1 { --primary-color: #9b59b6; }
.ui-style-2 { --primary-color: #e67e22; }
.ui-style-3 { --primary-color: #16a085; }
.ui-style-4 { --primary-color: #c0392b; }
.ui-style-5 { --primary-color: #2980b9; }
.ui-style-6 { --primary-color: #8e44ad; }
.ui-style-7 { --primary-color: #27ae60; }
.ui-style-8 { --primary-color: #f39c12; }
.ui-style-9 { --primary-color: #d35400; }
.ui-style-10 { --primary-color: #2ecc71; }
.ui-style-11 { --primary-color: #1abc9c; }
.ui-style-12 { --primary-color: #34495e; }
.ui-style-13 { --primary-color: #7f8c8d; }
.ui-style-14 { --primary-color: #95a5a6; }
.ui-style-15 { --primary-color: #bdc3c7; }

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

/* 首页Hero区域 */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: #fff;
  padding: 60px 30px;
  text-align: center;
  border-radius: 8px;
  margin-bottom: 40px;
}

.hero h1 {
  font-size: 32px;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.hero-desc {
  font-size: 18px;
  line-height: 1.8;
  opacity: 0.95;
  max-width: 800px;
  margin: 0 auto;
}

/* 介绍区域 */
.intro-section {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 40px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.intro-section h2 {
  font-size: 24px;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.intro-section p {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
}

/* 章节标题 */
section h2 {
  font-size: 28px;
  margin-bottom: 25px;
  color: var(--secondary-color);
  border-left: 4px solid var(--primary-color);
  padding-left: 15px;
}

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

.video-card {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.video-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--secondary-color);
  font-weight: 600;
}

.video-card .meta {
  font-size: 14px;
  color: #888;
  margin-bottom: 10px;
}

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

/* 列表导航网格 */
.list-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.list-nav-card {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s;
  border-left: 4px solid var(--primary-color);
}

.list-nav-card:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.list-nav-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.list-nav-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

/* 视频列表 */
.video-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.video-list-item {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: all 0.3s;
}

.video-list-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  background: var(--hover-color);
}

.video-list-item h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--secondary-color);
}

.video-list-item .summary {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

/* 列表页 */
.page-header {
  background: var(--card-bg);
  padding: 40px 30px;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
}

.page-header h1 {
  font-size: 32px;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-header p {
  font-size: 16px;
  color: #666;
  line-height: 1.8;
}

.video-list-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.video-list-card {
  background: var(--card-bg);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  position: relative;
  transition: all 0.3s;
}

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

.video-list-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--secondary-color);
  font-weight: 600;
}

.video-list-card .tags {
  font-size: 13px;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.rank-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--accent-color);
  color: #fff;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
}

.date-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--primary-color);
  color: #fff;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 14px;
}

/* 详情页 */
.detail-page {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 40px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.detail-header {
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 20px;
  margin-bottom: 30px;
}

.detail-header h1 {
  font-size: 36px;
  color: var(--secondary-color);
  font-weight: 700;
}

.detail-info, .detail-oneline, .detail-summary, .detail-review, .detail-related {
  margin-bottom: 35px;
}

.detail-info h2, .detail-oneline h2, .detail-summary h2, .detail-review h2, .detail-related h2 {
  font-size: 24px;
  margin-bottom: 15px;
  color: var(--primary-color);
}

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

.info-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 16px;
  line-height: 1.6;
}

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

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

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

.related-card {
  background: var(--hover-color);
  padding: 20px;
  border-radius: 8px;
  transition: all 0.3s;
  border: 1px solid var(--border-color);
}

.related-card:hover {
  background: var(--card-bg);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

.related-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--secondary-color);
}

/* 响应式 */
@media (max-width: 768px) {
  .hero h1 { font-size: 24px; }
  .hero-desc { font-size: 16px; }
  .container { padding: 15px; }
  .video-grid { grid-template-columns: 1fr; gap: 15px; }
  .list-nav-grid { grid-template-columns: 1fr; }
  .detail-page { padding: 20px; }
  .detail-header h1 { font-size: 26px; }
  .related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero { padding: 40px 20px; }
  .hero h1 { font-size: 20px; }
  .intro-section { padding: 20px; }
  section h2 { font-size: 22px; }
}
