/* 基础重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

body.ui-style-5 {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

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

/* 头部导航 */
header {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  transition: all 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 5px;
  flex-wrap: nowrap;
  align-items: center;
}

nav ul li {
  flex: 0 1 auto;
  min-width: 0;
}

nav ul li a {
  display: block;
  padding: 10px 15px;
  color: #555;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
  white-space: nowrap;
}

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

/* 移动端导航约束 */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 10px;
    padding: 10px 15px;
  }

  .logo {
    font-size: 20px;
  }

  nav ul {
    width: 100%;
    justify-content: space-between;
    flex-wrap: nowrap;
    overflow: visible;
    gap: 2px;
  }

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

  nav ul li a {
    padding: 8px 5px;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 480px) {
  nav ul li a {
    padding: 6px 3px;
    font-size: 12px;
  }
}

/* 主内容区 */
main {
  background: white;
  border-radius: 20px;
  margin: 30px auto;
  padding: 40px;
  max-width: 1200px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

h1 {
  font-size: 2.2em;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.3;
}

h2 {
  font-size: 1.8em;
  margin: 30px 0 20px;
  color: #444;
  border-left: 4px solid #667eea;
  padding-left: 15px;
}

h3 {
  font-size: 1.4em;
  margin: 25px 0 15px;
  color: #555;
}

p {
  margin-bottom: 15px;
  line-height: 1.8;
  color: #666;
}

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

.video-card {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border-radius: 15px;
  padding: 25px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

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

.video-card h3 {
  margin-top: 0;
  color: #333;
  font-size: 1.3em;
}

.video-card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 15px 0;
}

.video-card .meta span {
  background: rgba(255,255,255,0.8);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85em;
  color: #666;
}

.video-card .desc {
  color: #555;
  font-size: 0.95em;
  line-height: 1.6;
  margin: 15px 0;
}

.video-card a {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 25px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.video-card a:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* 列表样式 */
.video-list {
  margin: 30px 0;
}

.video-item {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  border-left: 4px solid #667eea;
}

.video-item:hover {
  background: #fff;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transform: translateX(5px);
}

.video-item h3 {
  margin-top: 0;
  color: #333;
}

.video-item .rank {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border-radius: 50%;
  font-weight: bold;
  font-size: 1.1em;
  margin-right: 15px;
  float: left;
}

.video-item .date {
  display: inline-block;
  background: #667eea;
  color: white;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.85em;
  margin-right: 15px;
}

/* 详情页样式 */
.detail-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 40px;
  border-radius: 15px;
  margin-bottom: 30px;
}

.detail-header h1 {
  color: white;
  -webkit-text-fill-color: white;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.info-item {
  background: rgba(255,255,255,0.1);
  padding: 15px;
  border-radius: 10px;
}

.info-item strong {
  display: block;
  margin-bottom: 5px;
  opacity: 0.9;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.tag {
  background: rgba(255,255,255,0.2);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9em;
}

.section {
  margin: 40px 0;
}

.section-title {
  font-size: 1.5em;
  margin-bottom: 20px;
  color: #333;
  border-left: 4px solid #667eea;
  padding-left: 15px;
}

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

.related-item {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.related-item:hover {
  background: #fff;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transform: translateY(-5px);
}

.related-item h4 {
  color: #333;
  margin-bottom: 10px;
}

.related-item p {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 15px;
}

.related-item a {
  display: inline-block;
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.related-item a:hover {
  color: #764ba2;
  transform: translateX(5px);
}

/* 页脚 */
footer {
  background: rgba(255, 255, 255, 0.95);
  margin-top: 50px;
  padding: 30px 20px;
  text-align: center;
}

footer nav ul {
  justify-content: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

footer p {
  color: #666;
  font-size: 0.9em;
}

/* 响应式 */
@media (max-width: 768px) {
  main {
    padding: 25px;
    margin: 20px 10px;
  }

  h1 {
    font-size: 1.8em;
  }

  h2 {
    font-size: 1.5em;
  }

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

  .detail-header {
    padding: 25px;
  }

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

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.video-card, .video-item {
  animation: fadeInUp 0.6s ease-out;
}

/* 站点介绍模块 */
.site-intro {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding: 30px;
  border-radius: 15px;
  margin: 30px 0;
  line-height: 1.8;
}

.site-intro p {
  color: #555;
  font-size: 1.05em;
}

/* 内容模块区分 */
.content-module {
  margin: 40px 0;
  padding: 30px;
  background: #f8f9fa;
  border-radius: 15px;
}

.content-module:nth-child(even) {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.module-header {
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #667eea;
}

.module-header h2 {
  margin: 0;
  border: none;
  padding: 0;
}

.module-desc {
  color: #666;
  font-size: 0.95em;
  margin-top: 10px;
}

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

.entry-card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

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

.entry-card h3 {
  margin: 0 0 10px 0;
  color: #333;
}

.entry-card p {
  color: #666;
  font-size: 0.9em;
  margin-bottom: 15px;
}

.entry-card a {
  display: inline-block;
  padding: 10px 25px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.entry-card a:hover {
  transform: scale(1.05);
}

/* 分组标题 */
.group-title {
  font-size: 1.3em;
  color: #667eea;
  margin: 30px 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px dashed #ccc;
}
