
/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  line-height: 1.8;
  background: #f8f9fa;
  color: #2c3e50;
  font-size: 16px;
}

a {
  color: #3498db;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: #2980b9;
  text-decoration: underline;
}

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

/* 头部导航 */
header {
  background: #fff;
  border-bottom: 1px solid #e1e8ed;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.logo {
  font-size: 26px;
  font-weight: bold;
  color: #3498db;
  letter-spacing: 1px;
}

nav ul {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

nav li {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

nav a {
  display: block;
  padding: 10px 12px;
  color: #34495e;
  font-size: 15px;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.3s ease;
}

nav a:hover {
  color: #3498db;
  background: #ecf6fd;
  text-decoration: none;
  transform: translateY(-1px);
}

/* 移动端导航 */
@media (max-width: 768px) {
  .header-content {
    gap: 10px;
  }

  .logo {
    font-size: 20px;
  }

  nav ul {
    width: 100%;
    gap: 5px;
  }

  nav a {
    padding: 8px 4px;
    font-size: 13px;
  }
}

/* 主要内容区 */
main {
  padding: 40px 0;
  min-height: calc(100vh - 200px);
}

/* 首页样式 */
.intro-section {
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  margin-bottom: 40px;
}

.intro-section h1 {
  font-size: 32px;
  color: #2c3e50;
  margin-bottom: 20px;
  line-height: 1.4;
}

.intro-text p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 15px;
  color: #555;
}

/* 区块样式 */
section {
  margin-bottom: 50px;
}

section h2 {
  font-size: 28px;
  color: #2c3e50;
  margin-bottom: 25px;
  padding-bottom: 12px;
  border-bottom: 3px solid #3498db;
  display: inline-block;
}

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

.video-card {
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.video-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: #2c3e50;
  line-height: 1.4;
}

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

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

.video-card .meta {
  font-size: 13px;
  color: #7f8c8d;
  margin-bottom: 10px;
}

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

/* 列表样式 */
.video-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.video-item {
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border-left: 4px solid #3498db;
  transition: all 0.3s ease;
}

.video-item:hover {
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border-left-color: #2980b9;
}

.video-item h3 {
  font-size: 19px;
  margin-bottom: 10px;
  color: #2c3e50;
}

.video-item .meta {
  font-size: 14px;
  color: #7f8c8d;
  margin-bottom: 10px;
}

.video-item .summary,
.video-item .review {
  font-size: 15px;
  color: #555;
  line-height: 1.7;
}

/* 入口链接 */
.entry-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.entry-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 35px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

.entry-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

.entry-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.entry-card h3 a {
  color: #fff;
  text-decoration: none;
}

.entry-card h3 a:hover {
  text-decoration: underline;
}

.entry-card p {
  font-size: 15px;
  opacity: 0.9;
  line-height: 1.6;
}

/* 列表页样式 */
.list-header {
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  margin-bottom: 35px;
}

.list-header h1 {
  font-size: 32px;
  color: #2c3e50;
  margin-bottom: 15px;
}

.list-desc {
  font-size: 16px;
  color: #666;
  line-height: 1.7;
}

/* 排行榜样式 */
.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ranking-item {
  display: flex;
  gap: 20px;
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  align-items: flex-start;
  transition: all 0.3s ease;
}

.ranking-item:hover {
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transform: translateX(5px);
}

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

.rank-content {
  flex: 1;
}

.rank-content h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #2c3e50;
}

/* 分组样式 */
.genre-group {
  margin-bottom: 45px;
}

.genre-group h2 {
  font-size: 24px;
  color: #34495e;
  margin-bottom: 20px;
  padding-left: 15px;
  border-left: 5px solid #3498db;
}

.topic-group {
  margin-bottom: 45px;
}

.topic-group h2 {
  font-size: 24px;
  color: #34495e;
  margin-bottom: 20px;
  padding: 10px 20px;
  background: linear-gradient(90deg, #3498db 0%, transparent 100%);
  color: #fff;
  border-radius: 6px;
}

/* 最新列表样式 */
.latest-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.year-tag {
  display: inline-block;
  background: #3498db;
  color: #fff;
  padding: 8px 15px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 14px;
  min-width: 70px;
  text-align: center;
}

.item-content {
  flex: 1;
}

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

.detail-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 25px;
  border-bottom: 2px solid #ecf0f1;
}

.detail-header h1 {
  font-size: 36px;
  color: #2c3e50;
  margin-bottom: 10px;
  line-height: 1.3;
}

.detail-header .subtitle {
  font-size: 16px;
  color: #7f8c8d;
}

.detail-page section {
  margin-bottom: 35px;
}

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

.info-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}

.info-list li {
  font-size: 15px;
  padding: 10px 0;
  color: #555;
}

.info-list strong {
  color: #2c3e50;
  font-weight: 600;
}

.highlight {
  font-size: 18px;
  color: #e74c3c;
  font-weight: 500;
  padding: 20px;
  background: #fef5e7;
  border-left: 4px solid #e74c3c;
  border-radius: 6px;
  line-height: 1.7;
}

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

.detail-review blockquote {
  padding: 20px 25px;
  background: #ecf6fd;
  border-left: 4px solid #3498db;
  border-radius: 6px;
  font-style: italic;
}

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

.related-card {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e1e8ed;
  transition: all 0.3s ease;
}

.related-card:hover {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}

.related-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: #2c3e50;
}

.related-card .meta {
  font-size: 13px;
  color: #7f8c8d;
  margin-bottom: 8px;
}

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

/* 页脚 */
footer {
  background: #2c3e50;
  color: #ecf0f1;
  padding: 30px 0;
  margin-top: 60px;
  text-align: center;
}

footer p {
  font-size: 14px;
}

/* 响应式 */
@media (max-width: 768px) {
  .intro-section {
    padding: 25px 20px;
  }

  .intro-section h1 {
    font-size: 24px;
  }

  section h2 {
    font-size: 22px;
  }

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

  .entry-links {
    grid-template-columns: 1fr;
  }

  .detail-page {
    padding: 25px 20px;
  }

  .detail-header h1 {
    font-size: 26px;
  }

  .ranking-item {
    flex-direction: column;
    gap: 10px;
  }

  .rank-num {
    font-size: 24px;
  }

  .latest-item {
    flex-direction: column;
    gap: 12px;
  }

  .info-list {
    grid-template-columns: 1fr;
  }

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

/* UI 样式变体 (0-15) */
.ui-style-0 { --primary: #3498db; --secondary: #2c3e50; }
.ui-style-1 { --primary: #e74c3c; --secondary: #c0392b; }
.ui-style-2 { --primary: #9b59b6; --secondary: #8e44ad; }
.ui-style-3 { --primary: #1abc9c; --secondary: #16a085; }
.ui-style-4 { --primary: #34495e; --secondary: #2c3e50; }
.ui-style-5 { --primary: #f39c12; --secondary: #e67e22; }
.ui-style-6 { --primary: #95a5a6; --secondary: #7f8c8d; }
.ui-style-7 { --primary: #27ae60; --secondary: #229954; }
.ui-style-8 { --primary: #e91e63; --secondary: #c2185b; }
.ui-style-9 { --primary: #00bcd4; --secondary: #0097a7; }
.ui-style-10 { --primary: #ff5722; --secondary: #e64a19; }
.ui-style-11 { --primary: #4caf50; --secondary: #388e3c; }
.ui-style-12 { --primary: #2196f3; --secondary: #1976d2; }
.ui-style-13 { --primary: #ff4081; --secondary: #f50057; }
.ui-style-14 { --primary: #607d8b; --secondary: #455a64; }
.ui-style-15 { --primary: #ff9800; --secondary: #f57c00; }
