* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff0f0;
}

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

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

.header-inner {
  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;
  color: #8b0000;
  text-decoration: none;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 10px;
  flex-wrap: nowrap;
}

nav a {
  color: #333;
  text-decoration: none;
  padding: 8px 15px;
  border-radius: 4px;
  transition: all 0.3s;
  white-space: nowrap;
}

nav a:hover {
  background: #8b0000;
  color: #fff;
}

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

h1 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #8b0000;
}

h2 {
  font-size: 24px;
  margin: 30px 0 15px;
  color: #8b0000;
}

h3 {
  font-size: 20px;
  margin: 20px 0 10px;
}

section {
  margin-bottom: 50px;
}

.intro {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-bottom: 40px;
  line-height: 1.8;
}

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

.video-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  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-content {
  padding: 20px;
}

.video-card h3 {
  font-size: 18px;
  margin: 0 0 10px 0;
  color: #8b0000;
}

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

.video-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 12px;
}

.video-link {
  display: inline-block;
  color: #8b0000;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.video-link:hover {
  color: #000;
}

/* 列表页 */
.video-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.video-list-item {
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s;
}

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

.rank-number {
  display: inline-block;
  background: #8b0000;
  color: #fff;
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  border-radius: 50%;
  font-weight: bold;
  margin-right: 15px;
  font-size: 14px;
}

.date-tag {
  display: inline-block;
  background: #8b0000;
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 13px;
  margin-right: 10px;
}

.tags {
  margin: 10px 0;
}

.tag {
  display: inline-block;
  background: #f0f0f0;
  color: #666;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 12px;
  margin-right: 6px;
  margin-bottom: 6px;
}

/* 详情页 */
.detail-header {
  background: #fff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-bottom: 30px;
}

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

.info-item {
  display: flex;
  gap: 10px;
}

.info-label {
  font-weight: bold;
  color: #666;
}

.detail-section {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-bottom: 25px;
}

.detail-section p {
  margin-bottom: 15px;
  line-height: 1.8;
}

/* 分组 */
.group {
  margin-bottom: 40px;
}

.group-title {
  font-size: 22px;
  font-weight: bold;
  color: #8b0000;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #8b0000;
}

/* 页脚 */
footer {
  background: #fff;
  padding: 30px 0;
  margin-top: 60px;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.05);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.footer-nav a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: #8b0000;
}

.copyright {
  color: #999;
  font-size: 14px;
}

/* 响应式 */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 15px;
  }

  nav ul {
    width: 100%;
    justify-content: space-between;
  }

  nav a {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    padding: 8px 5px;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

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

  h1 {
    font-size: 24px;
  }

  .detail-header {
    padding: 20px;
  }

  .detail-section {
    padding: 20px;
  }
}