:root {
  --primary-color: #ff6b81;
  --primary-dark: #e0556e;
  --secondary-color: #667eea;
  --light-bg: #f8f9fa;
  --dark-text: #333;
  --light-text: #666;
  --border-color: #e9ecef;
  --card-radius: 10px;
  --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.15);
  --dark-bg: #1a1a2e;
  --card-bg: #f2f2f2;
  --text-light: #333;
  --text-gray: #333;
  --success-color: #198754;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
}
a {
  text-decoration: none !important;
}
.navbar-brand {
  font-weight: bold;
  color: var(--primary-color) !important;
}
.nav-link .active {
  color: var(--primary-color) !important;
  font-weight: bold;
}
.category-title {
  border-left: 4px solid var(--primary-color);
  padding-left: 15px;
  margin: 30px 0 20px;
}
.anime-card {
  border: none;
  transition: transform 0.3s;
  margin-bottom: 20px;
}
.anime-card:hover {
  transform: translateY(-5px);
}
.anime-card-img {
  height: 280px;
  object-fit: cover;
  border-radius: 8px;
}
.status-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
}
.footer-links a {
  color: #666;
  text-decoration: none;
  margin: 0 8px;
  font-size: 0.9rem;
}
.footer-links a:hover {
  color: var(--primary-color);
}
/* 移动端优化 */
@media (max-width: 768px) {
  .anime-card-img {
    height: 200px;
  }
  .search-box {
    margin-top: 10px;
  }
}

.article {
  max-width: 800px;
  margin: 0 auto;
}
.article p img {
  margin: 0 auto;
}

.text-truncate-multiline {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5em;
  max-height: 1.5em;
  transition: max-height 0.3s ease;
}

.text-truncate-multiline.expanded {
  -webkit-line-clamp: unset;
  max-height: none;
}

.toggle-text-btn {
  color: #0d6efd;
  cursor: pointer;
  font-size: 0.9em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.toggle-text-btn:hover {
  background-color: rgba(13, 110, 253, 0.1);
  text-decoration: none;
}

.toggle-text-btn i {
  font-size: 0.8em;
  transition: transform 0.3s ease;
}

.toggle-text-btn.expanded i {
  transform: rotate(180deg);
}

/* 移动端优化 */
@media (max-width: 768px) {
  .toggle-text-btn {
    font-size: 0.85em;
    padding: 6px 10px;
  }

  .toggle-text-btn i {
    font-size: 0.9em;
  }
}
