/* 全局样式 */
body.ui-style-5 {
  --primary-color: #2c5282;
  --secondary-color: #4a5568;
  --accent-color: #e53e3e;
  --bg-light: #f7fafc;
  --border-color: #e2e8f0;
}

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

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

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

nav a {
  padding: 10px 20px;
  border-radius: 6px;
  transition: all 0.3s;
  font-weight: 500;
  color: var(--secondary-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
}

nav a:hover {
  background: var(--bg-light);
  color: var(--primary-color);
  transform: translateY(-2px);
}

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

.hero h1 {
  font-size: 2em;
  margin-bottom: 20px;
  line-height: 1.3;
}

.hero .intro {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

section {
  margin: 40px 0;
}

section h2 {
  font-size: 1.8em;
  margin-bottom: 20px;
  color: var(--primary-color);
  border-left: 4px solid var(--accent-color);
  padding-left: 15px;
}

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

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

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

.video-card .rank {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--accent-color);
  color: white;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1em;
}

.video-card h3 {
  font-size: 1.3em;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.video-card .meta {
  color: #718096;
  font-size: 0.9em;
  margin-bottom: 10px;
}

.video-card .oneline {
  color: var(--secondary-color);
  line-height: 1.6;
  margin-bottom: 15px;
}

.video-card .read-more {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 500;
  border-bottom: 2px solid var(--primary-color);
  transition: all 0.3s;
}

.video-card .read-more:hover {
  color: var(--accent-color);
  border-color: var(--accent-color);
}

/* 列表链接 */
.list-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.list-link {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: all 0.3s;
  display: block;
}

.list-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.list-link h3 {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.list-link p {
  color: var(--secondary-color);
}

/* 视频列表 */
.video-list {
  background: white;
  border-radius: 10px;
  padding: 20px;
}

.video-item {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
}

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

.video-item h3 {
  font-size: 1.2em;
  margin-bottom: 8px;
  color: var(--primary-color);
}

.video-item p {
  color: var(--secondary-color);
}

.view-more {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 30px;
  background: var(--primary-color);
  color: white;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s;
}

.view-more:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
}

/* 详情页 */
.video-detail {
  background: white;
  padding: 40px;
  border-radius: 12px;
  margin: 30px 0;
}

.video-detail h1 {
  font-size: 2.2em;
  color: var(--primary-color);
  margin-bottom: 30px;
  border-bottom: 3px solid var(--accent-color);
  padding-bottom: 15px;
}

.video-detail h2 {
  font-size: 1.5em;
  color: var(--primary-color);
  margin: 30px 0 15px;
  border-left: 4px solid var(--accent-color);
  padding-left: 12px;
}

.info-list {
  background: var(--bg-light);
  padding: 20px;
  border-radius: 8px;
}

.info-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}

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

.info-list strong {
  color: var(--primary-color);
  min-width: 80px;
  display: inline-block;
}

.summary p, .review p {
  line-height: 1.8;
  color: var(--secondary-color);
  text-align: justify;
}

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

.related-item {
  background: var(--bg-light);
  padding: 20px;
  border-radius: 8px;
  transition: all 0.3s;
}

.related-item:hover {
  background: #edf2f7;
  transform: translateY(-2px);
}

.related-item h3 {
  font-size: 1.1em;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.related-item p {
  color: var(--secondary-color);
  font-size: 0.95em;
  line-height: 1.6;
}

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

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

  nav a {
    padding: 8px 10px;
    font-size: 14px;
  }

  .hero {
    padding: 40px 15px;
  }

  .hero h1 {
    font-size: 1.5em;
  }

  .hero .intro {
    font-size: 1em;
  }

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

  .video-detail {
    padding: 20px;
  }

  .video-detail h1 {
    font-size: 1.6em;
  }
}

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

  .container {
    padding: 10px;
  }
}