.anime-section {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.anime-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

.anime-card {
  background: var(--bg-primary);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.anime-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.anime-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  height: 300px;
}

.anime-poster {
  position: relative;
  overflow: hidden;
}

.anime-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.anime-card:hover .anime-poster img {
  transform: scale(1.05);
}

.anime-poster::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(99, 102, 241, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
}

.anime-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.anime-header {
  margin-bottom: 1rem;
}

.anime-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.anime-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.anime-tag {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.anime-tag.featured {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-color);
}

.anime-description {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
}

.anime-footer {
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.anime-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stars {
  color: #fbbf24;
  font-size: 1.1rem;
}

.rating-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.anime-action {
  background: var(--gradient-primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.anime-action:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* 特色动漫卡片 */
.anime-card.featured {
  background: var(--gradient-primary);
  color: white;
}

.anime-card.featured .anime-title,
.anime-card.featured .anime-description {
  color: white;
}

.anime-card.featured .anime-tag {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.anime-card.featured .anime-footer {
  border-top-color: rgba(255, 255, 255, 0.2);
}

.anime-card.featured .anime-action {
  background: white;
  color: var(--primary-color);
}

/* 兼容旧版本选择器 */
.dongman {
  background: var(--bg-primary);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  max-width: 1000px;
  height: auto;
  min-height: 300px;
}

.dongman:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.dongman .a {
  background: transparent;
  border-radius: 0;
  overflow: hidden;
  width: 300px;
}

.dongman .b {
  background: transparent;
  border: none;
  padding: 1.5rem;
  width: calc(100% - 300px);
  height: auto;
  border-radius: 0;
}

.a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin-left: 0;
  box-shadow: none;
}

.b .b-1 {
  margin-bottom: 1rem;
}

.b .b-1 h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.b .b-2 {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
  height: auto;
  padding: 0;
}

@media (max-width: 768px) {
  .anime-grid {
    grid-template-columns: 1fr;
  }
  
  .anime-layout {
    grid-template-columns: 150px 1fr;
    height: 250px;
  }
  
  .anime-content {
    padding: 1rem;
  }
  
  .anime-title {
    font-size: 1.2rem;
  }
  
  .dongman {
    width: 100%;
    margin: 1rem auto;
  }
  
  .dongman .a {
    width: 150px;
  }
  
  .dongman .b {
    width: calc(100% - 150px);
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .anime-layout {
    grid-template-columns: 1fr;
    height: auto;
  }
  
  .anime-poster {
    height: 200px;
  }
}