body {
  background: radial-gradient(circle at top, #222 0, #050505 50%, #000 100%);
  color: #f5f5f5;
  padding-top: 72px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

main.container {
  max-width: 1240px;
}

h1, h2, h3, h4, h5, h6 {
  color: #ffe3f3;
}

.glass-card {
  background: rgba(18, 18, 18, 0.7);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(18px);
}

.video-card {
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}
.video-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9);
  border-color: rgba(255, 255, 255, 0.15);
}
.video-thumb {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}
.video-thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.video-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 40%);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.video-card:hover .video-thumb::after {
  opacity: 1;
}
.video-duration {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.7);
  font-size: 12px;
}

.text-secondary {
  color: rgba(255, 255, 255, 0.58) !important;
}

.navbar-blur {
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.navbar-brand {
  letter-spacing: 0.03em;
}

.navbar-nav .nav-link {
  color: rgba(245, 245, 245, 0.82);
  transition: color 0.16s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #ff69b4;
}

.nav-search-input {
  background-color: rgba(0, 0, 0, 0.55);
  border-color: rgba(255, 255, 255, 0.12);
  color: #ffffff !important;
}
.nav-search-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}
.nav-search-input:focus {
  background-color: rgba(0, 0, 0, 0.75);
  border-color: #ff69b4;
  box-shadow: 0 0 0 0.15rem rgba(255, 105, 180, 0.45);
}

.nav-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: none;
  background-color: rgba(0, 0, 0, 0.78);
  padding: 0;
  color: #f5f5f5;
  transition: background-color 0.16s ease, transform 0.12s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.nav-search-btn:hover {
  transform: translateY(-1px) scale(1.03);
  background-color: rgba(20, 20, 20, 0.95);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.8);
}

.nav-search-btn:active {
  transform: translateY(0) scale(0.97);
  box-shadow: none;
}

.nav-search-icon {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 16px;
}

.nav-search-icon::before,
.nav-search-icon::after {
  content: "";
  position: absolute;
  display: block;
}

.nav-search-icon::before {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid currentColor;
}

.nav-search-icon::after {
  width: 6px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(45deg);
  right: -1px;
  bottom: -1px;
}

.tag-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f5f5f5;
  font-size: 13px;
  margin: 4px 6px 4px 0;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.tag-pill:hover {
  background: rgba(255, 105, 180, 0.28);
  border-color: rgba(255, 105, 180, 0.7);
  transform: translateY(-1px);
}

.error-code {
  font-size: clamp(72px, 18vw, 160px);
  font-weight: 700;
  letter-spacing: 0.1em;
  background: linear-gradient(135deg, #ff5f6d, #ffc371);
  -webkit-background-clip: text;
  color: transparent;
}

.text-primary {
  color: #ff69b4 !important;
}

.breadcrumb a {
  color: #ff69b4;
}
.breadcrumb a:hover {
  color: #ffc0df;
}

.category-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 34px;
  min-width: 0;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(16px);
}

.category-chip a {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 13px;
  line-height: 1.2;
  color: #ff69b4;
  text-decoration: none;
  white-space: nowrap;
  text-overflow: clip;
  overflow: visible;
}

.category-chip a:hover {
  color: #ffc0df;
}

.category-row {
  margin-left: -4px;
  margin-right: -4px;
  row-gap: 8px;
}

.category-row > .col {
  display: flex;
  padding-left: 4px;
  padding-right: 4px;
  flex: 0 0 50%;
  max-width: 50%;
}

@media (min-width: 768px) {
  .category-row > .col {
    flex: 0 0 25%;
    max-width: 25%;
  }
}

@media (min-width: 1200px) {
  .category-row > .col {
    flex: 0 0 5%;
    max-width: 5%;
  }
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: radial-gradient(circle at top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.98));
  font-size: 13px;
}

/* 精选视频通栏横向滚动 */
.featured-strip-wrapper {
  position: relative;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-inline: 0;
  overflow: hidden;
}

.featured-strip {
  display: flex;
  gap: 1.25rem;
  align-items: stretch;
  animation: featured-marquee 26s linear infinite;
}

.featured-strip:hover {
  animation-play-state: paused;
}

.featured-item {
  flex: 0 0 260px;
}

.featured-strip .video-card {
  position: relative;
}

.featured-strip .video-duration {
  opacity: 0;
  transition: opacity 0.18s ease-out;
}

.featured-strip .video-card:hover .video-duration {
  opacity: 1;
}

.featured-strip .featured-meta-overlay,
.featured-strip .featured-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 6px 10px 8px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

.featured-strip .video-card:hover .featured-meta-overlay,
.featured-strip .video-card:hover .featured-meta {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 768px) {
  .featured-item {
    flex-basis: 300px;
  }
}

@keyframes featured-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* 页面通用标题、分页等细节优化 */
section > .h5,
header .h4,
header .h5 {
  letter-spacing: 0.03em;
}

.pagination .page-link {
  background-color: rgba(0, 0, 0, 0.4);
  border-color: transparent;
  color: #f5f5f5;
  border-radius: 999px;
  min-width: 32px;
  text-align: center;
}

.pagination .page-item {
  margin: 0 0.3rem;
}

.pagination .page-item.active .page-link {
  background-color: #ff69b4;
  border-color: #ff69b4;
  color: #000;
}

.pagination .page-link:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

.search-card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-card-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 768px) {
  .navbar .nav-search-form {
    width: 100%;
    margin-top: 0.5rem;
  }
}

