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

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  color: #2c3e50;
  line-height: 1.8;
}

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

a:hover {
  color: #e74c3c;
}

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

/* 导航栏 */
nav {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  flex-wrap: nowrap;
}

nav .logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #e74c3c;
  text-decoration: none;
  white-space: nowrap;
  margin-right: 20px;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex: 1;
  justify-content: flex-end;
  flex-wrap: nowrap;
}

nav ul li {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
}

nav ul li a {
  display: block;
  padding: 20px 15px;
  color: #34495e;
  font-weight: 500;
  transition: all 0.3s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

nav ul li a:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

/* 主内容区 */
main {
  padding: 40px 20px;
}

h1 {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 30px;
  border-bottom: 3px solid #3498db;
  padding-bottom: 15px;
}

h2 {
  font-size: 1.5rem;
  color: #34495e;
  margin-top: 40px;
  margin-bottom: 20px;
  position: relative;
  padding-left: 15px;
}

h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 70%;
  background: #e74c3c;
  border-radius: 3px;
}

/* 简介区域 */
.intro {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  margin-bottom: 40px;
  line-height: 2;
}

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

.video-card {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: all 0.3s;
}

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

.video-card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  color: #2c3e50;
}

.video-card h3 a {
  color: inherit;
}

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

.video-card .meta {
  font-size: 0.85rem;
  color: #7f8c8d;
  margin: 8px 0;
}

.video-card .desc {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
  margin-top: 10px;
}

/* 更多链接 */
.more {
  margin-top: 30px;
  text-align: center;
}

.more a {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s;
}

.more a:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* 详情页 */
.video-info {
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  margin-bottom: 30px;
}

.info-item {
  padding: 10px 0;
  border-bottom: 1px solid #ecf0f1;
  line-height: 1.8;
}

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

.video-oneline,
.video-summary,
.video-review {
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  margin-bottom: 30px;
}

.video-oneline p,
.video-summary p,
.video-review p {
  line-height: 2;
  color: #34495e;
}

.related-videos {
  margin-top: 50px;
}

/* 列表页 */
.list-desc {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 30px;
  line-height: 1.8;
}

.video-list {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.list-item {
  display: flex;
  gap: 20px;
  padding: 20px;
  border-bottom: 1px solid #ecf0f1;
  transition: background 0.3s;
}

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

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

.list-item .rank {
  font-size: 1.5rem;
  font-weight: bold;
  color: #e74c3c;
  min-width: 40px;
  text-align: center;
}

.item-content {
  flex: 1;
}

.item-content h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.item-content .meta {
  font-size: 0.85rem;
  color: #7f8c8d;
  margin: 8px 0;
}

.item-content .desc {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
}

/* 响应式 */
@media (max-width: 768px) {
  nav .container {
    padding: 0 10px;
  }

  nav .logo {
    font-size: 1.3rem;
    margin-right: 10px;
  }

  nav ul li a {
    padding: 15px 8px;
    font-size: 0.85rem;
  }

  .container {
    padding: 15px;
  }

  h1 {
    font-size: 1.5rem;
  }

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

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

  .list-item .rank {
    font-size: 1.2rem;
  }
}

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