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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "Microsoft YaHei", sans-serif;
  background: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
}

.nav-brand {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 0.8rem;
  text-align: center;
}

.nav-menu {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  gap: 1rem;
}

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

.nav-menu a {
  color: white;
  text-decoration: none;
  display: block;
  padding: 0.6rem 0.5rem;
  border-radius: 4px;
  transition: all 0.3s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-menu a:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .nav-brand {
    font-size: 1.4rem;
  }
  .nav-menu {
    font-size: 0.85rem;
    gap: 0.3rem;
  }
  .nav-menu a {
    padding: 0.5rem 0.3rem;
  }
}

@media (max-width: 480px) {
  .nav-brand {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }
  .nav-menu {
    font-size: 0.75rem;
    gap: 0.2rem;
  }
  .nav-menu a {
    padding: 0.4rem 0.2rem;
  }
}

.hero {
  text-align: center;
  padding: 2rem 0;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 1rem;
}

.intro-section {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 3rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  line-height: 1.8;
}

.video-section {
  margin-bottom: 3rem;
}

.video-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #333;
  border-left: 4px solid #667eea;
  padding-left: 1rem;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.video-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.video-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.video-card h3 a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
}

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

.video-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.tag {
  background: #e3f2fd;
  color: #1976d2;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

.year {
  background: #f3e5f5;
  color: #7b1fa2;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

.genre {
  background: #fff3e0;
  color: #e65100;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

.video-desc {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}

.list-guide {
  margin: 3rem 0;
}

.list-guide h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: #333;
}

.guide-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.guide-card {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.3s;
}

.guide-card:hover {
  transform: translateY(-4px);
}

.guide-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.guide-card h3 a {
  color: #667eea;
  text-decoration: none;
}

.guide-card p {
  color: #666;
  line-height: 1.6;
}

.detail-page {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.detail-content h1 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #333;
  border-bottom: 2px solid #667eea;
  padding-bottom: 1rem;
}

.detail-content section {
  margin-bottom: 2.5rem;
}

.detail-content h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #667eea;
}

.info-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem 1.5rem;
  line-height: 1.8;
}

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

.info-list dd {
  color: #333;
}

.oneline-text {
  font-size: 1.1rem;
  color: #667eea;
  font-weight: 500;
  padding: 1rem;
  background: #f5f7ff;
  border-radius: 4px;
}

.summary-text {
  line-height: 1.8;
  color: #444;
}

.review-content {
  background: #fffbf0;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #ffc107;
  line-height: 1.8;
  color: #555;
}

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

.related-item {
  background: #f9f9f9;
  padding: 1.2rem;
  border-radius: 6px;
  transition: background 0.3s;
}

.related-item:hover {
  background: #f0f0f0;
}

.related-item h4 {
  margin-bottom: 0.6rem;
}

.related-item h4 a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
}

.related-item h4 a:hover {
  color: #667eea;
}

.related-item p {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.6;
}

.list-page h1 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #333;
  text-align: center;
  padding-bottom: 1rem;
  border-bottom: 2px solid #667eea;
}

.page-intro {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.topic-intro p {
  margin-bottom: 1rem;
}

.year-group {
  margin-bottom: 3rem;
}

.year-title {
  font-size: 1.5rem;
  color: #667eea;
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  border-left: 4px solid #667eea;
}

.daquan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.daquan-item {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s;
}

.daquan-item:hover {
  transform: translateY(-4px);
}

.daquan-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}

.daquan-item h3 a {
  color: #333;
  text-decoration: none;
}

.daquan-item h3 a:hover {
  color: #667eea;
}

.item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.item-desc {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.6;
}

.top-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.top-item {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: flex;
  gap: 1.5rem;
  transition: transform 0.3s;
}

.top-item:hover {
  transform: translateX(8px);
}

.rank-number {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  border-radius: 8px;
}

.top-item-content {
  flex: 1;
}

.top-item-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.top-item-content h3 a {
  color: #333;
  text-decoration: none;
}

.top-item-content h3 a:hover {
  color: #667eea;
}

.top-desc {
  color: #555;
  line-height: 1.7;
  margin-top: 0.8rem;
}

.topic-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.topic-item {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s;
}

.topic-item:hover {
  transform: translateY(-4px);
}

.topic-item h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.topic-item h3 a {
  color: #333;
  text-decoration: none;
}

.topic-item h3 a:hover {
  color: #667eea;
}

.topic-desc {
  color: #555;
  line-height: 1.8;
  margin-top: 1rem;
}

.latest-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.latest-item {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: flex;
  gap: 1.5rem;
  transition: transform 0.3s;
}

.latest-item:hover {
  transform: translateX(8px);
}

.latest-date {
  flex-shrink: 0;
  width: 100px;
  padding: 0.5rem;
  background: #f0f0f0;
  border-radius: 6px;
  text-align: center;
  font-weight: 500;
  color: #666;
  font-size: 0.9rem;
}

.latest-content {
  flex: 1;
}

.latest-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}

.latest-content h3 a {
  color: #333;
  text-decoration: none;
}

.latest-content h3 a:hover {
  color: #667eea;
}

.latest-desc {
  color: #666;
  line-height: 1.6;
  margin-top: 0.6rem;
}

footer {
  background: #2c3e50;
  color: white;
  padding: 2rem 1rem;
  margin-top: 4rem;
}

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

.footer-content p {
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: white;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.footer-links a:hover {
  opacity: 1;
}

@media (max-width: 768px) {
  .container {
    padding: 1rem 0.5rem;
  }

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

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

  .top-item,
  .latest-item {
    flex-direction: column;
  }

  .rank-number {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .latest-date {
    width: 100%;
  }
}