/* 非关键样式 */

/* 更新颜色方案 */
:root {
  --primary-color: #4361ee;
  --primary-hover: #3a56d4;
  --primary-light: rgba(67, 97, 238, 0.1);
  --primary-light-hover: rgba(67, 97, 238, 0.15);
  --bg-color: #f7f9fc;
  --card-bg: #ffffff;
  --text-primary: #2d3748;
  --text-secondary: #718096;
  --border-color: #e2e8f0;
  --card-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.07);
  --card-shadow-hover: 0 20px 30px -10px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --border-radius: 14px;
  --small-radius: 10px;
}

/* 内容区域过渡效果 */
.content-fade-in {
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h3,
h5 {
  margin-bottom: 0.7rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

select,
button {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.6rem 1rem;
  border-radius: var(--small-radius);
  transition: var(--transition);
  outline: none;
}

select {
  width: 100%;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23718096' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 1em;
  padding-right: 2.5rem;
  -webkit-appearance: none;
}

select:hover,
select:focus {
  border-color: var(--primary-color);
}

select:focus {
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

button {
  cursor: pointer;
  background-color: var(--primary-color);
  color: white;
  border: none;
  font-weight: 500;
  box-shadow: 0 4px 10px -1px rgba(67, 97, 238, 0.3);
  letter-spacing: 0.02em;
}

button:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 15px -3px rgba(67, 97, 238, 0.4);
}

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 10px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -1rem;
}

.col-item {
  flex: 0 0 auto;
  width: 100%;
  padding: 0 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .col-md-2 {
    width: 16.66666667%;
  }

  .col-md-6 {
    width: 50%;
  }

  .filter-item {
    margin-bottom: 0;
  }
}

@media (min-width: 992px) {
  .col-lg-4 {
    width: 33.33333333%;
  }
}

@media (min-width: 1200px) {
  .col-xl-3 {
    width: 25%;
  }
}

/* 工具类 */
.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 1rem;
}

.mt-3 {
  margin-top: 1rem;
}

.me-2 {
  margin-right: 0.5rem;
}

.w-100 {
  width: 100%;
}

.d-flex {
  display: flex;
}

.justify-content-center {
  justify-content: center;
}

.justify-content-between {
  justify-content: space-between;
}

.align-items-center {
  align-items: center;
}

.h-100 {
  height: 100%;
}

.text-center {
  text-align: center;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

/* 视频卡片样式增强 */
.video-card {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  height: 100%;
  background-color: var(--card-bg);
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.video-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(67, 97, 238, 0.1);
}

.video-card:hover .video-thumbnail img {
  transform: scale(1.07);
}

.video-thumbnail {
  position: relative;
  overflow: hidden;
  padding-top: 56.25%;
  background-color: #f0f2f5;
}

.video-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.video-info {
  padding: 18px;
}

.video-title {
  font-weight: 600;
  margin-bottom: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  height: auto;
  max-height: 2.8em;
  color: var(--text-primary);
  line-height: 1.4;
  letter-spacing: -0.01em;
  word-break: break-word;
  /* 兼容非WebKit浏览器 */
  display: -moz-box;
  -moz-box-orient: vertical;
  display: box;
  box-orient: vertical;
}

.video-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.pagination-container {
  margin: 45px 0 30px;
  display: flex;
  justify-content: center;
}

.filter-bar {
  padding: 22px;
}

/* 加载失败等状态提示 */
.no-data {
  text-align: center;
  padding: 60px 30px;
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}

.no-data h3 {
  margin-bottom: 12px;
  font-size: 1.5rem;
  color: var(--text-primary);
}

.no-data p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* 视频时长标签 */
.video-label {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background-color: rgba(0, 0, 0, 0.75);
  color: white;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  backdrop-filter: blur(4px);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* 视频标签样式优化 */
.video-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.video-tag {
  display: inline-block;
  padding: 2px 8px;
  margin: 4px 4px 4px 0;
  font-size: 12px;
  border-radius: 10px;
  background-color: var(--primary-light);
  color: var(--primary-color);
  cursor: pointer;
  transition: var(--transition);
}

.video-tag:hover {
  background-color: var(--primary-light-hover);
}

/* 主题标题样式 */
.topic-title-container {
  width: 100%;
  margin-bottom: 20px;
  padding: 12px 16px;
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
}

.topic-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 500;
}

.topic-label {
  color: var(--text-secondary);
}

.topic-name {
  color: var(--primary-color);
  font-weight: 600;
}

.clear-topic-btn {
  margin-left: auto;
  padding: 6px 12px;
  font-size: 14px;
  background-color: var(--primary-light);
  color: var(--primary-color);
  border: none;
  border-radius: var(--small-radius);
  cursor: pointer;
  transition: var(--transition);
}

.clear-topic-btn:hover {
  background-color: var(--primary-light-hover);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .topic-heading {
    flex-wrap: wrap;
  }
  
  .clear-topic-btn {
    margin-left: 0;
    margin-top: 8px;
  }
}

/* 回到顶部按钮样式优化 */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 1000;
  box-shadow: 0 6px 20px rgba(67, 97, 238, 0.4);
  transform: translateY(20px) scale(0.9);
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.back-to-top::after {
  content: "↑";
  font-size: 22px;
}

.back-to-top:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 25px rgba(67, 97, 238, 0.5);
}

/* 分页导航样式优化 */
.pagination {
  display: flex;
  list-style: none;
  padding: 0;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.page-item {
  margin: 0;
}

.page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  color: var(--text-primary);
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--small-radius);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
}

.page-item.active .page-link {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  box-shadow: 0 4px 8px rgba(67, 97, 238, 0.25);
  transform: translateY(-1px);
}

.page-item.disabled .page-link {
  color: #c1c9d6;
  pointer-events: none;
  opacity: 0.7;
}

.page-link:hover {
  background-color: #f0f4ff;
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 3px 6px rgba(67, 97, 238, 0.15);
}

.page-jumper {
  margin-left: 15px;
}

.page-input {
  border: 1px solid var(--border-color);
  border-radius: var(--small-radius);
  transition: var(--transition);
}

/* 图标优化 */
.icon-view::before {
  content: "👁️";
  margin-right: 4px;
  font-size: 0.95rem;
}

.icon-like::before {
  content: "❤️";
  margin-right: 4px;
  font-size: 0.95rem;
}

/* 模态窗口样式优化 */
dialog {
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  background: transparent;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1050;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.modal.show {
  display: block;
  opacity: 1;
  animation: modalFadeIn 0.5s forwards;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-dialog {
  position: relative;
  width: 100%;
  margin: 0 auto;
  max-width: 850px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50px);
  transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.modal.show .modal-dialog {
  transform: translateY(0);
  animation: modalSlideIn 0.5s forwards;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--card-bg);
  border-radius: calc(var(--border-radius) + 4px);
  outline: 0;
  overflow: hidden;
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 95%;
  max-height: 95vh;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  border-bottom: 1px solid var(--border-color);
}

.modal-title {
  margin-bottom: 0;
  line-height: 1.5;
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}

/* 调整标题在移动设备上的显示效果 */
@media (max-width: 767px) {
  .modal-title {
    font-size: 1.1rem;
    max-width: calc(100% - 40px); /* 留出关闭按钮的空间 */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  .modal-header {
    padding: 12px 16px;
  }
}

.modal-body {
  position: relative;
  flex: 1 1 auto;
  padding: 28px;
  overflow-y: auto;
  max-height: calc(100vh - 200px);
}

.btn-close {
  padding: 0.8rem;
  background: transparent;
  border: 0;
  font-size: 1.5rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 50%;
  margin: -0.5rem -0.5rem -0.5rem 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-close:hover {
  color: var(--text-primary);
  background-color: rgba(0, 0, 0, 0.05);
  transform: rotate(90deg);
}

.btn-close::after {
  content: "×";
  line-height: 0.5;
}

.ratio {
  position: relative;
  width: 100%;
}

.ratio-16x9 {
  background-color: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.ratio>* {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 提示框样式优化 */
.alert {
  padding: 16px 20px;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: var(--small-radius);
  font-weight: 500;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.alert-danger {
  color: #842029;
  background-color: #f8d7da;
  border-color: #f5c2c7;
}

.alert-warning {
  color: #664d03;
  background-color: #fff3cd;
  border-color: #ffecb5;
}

/* 筛选区域样式优化 */
.filter-wrapper {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  margin-bottom: 35px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: background-color 0.2s, border-bottom 0.3s;
}

/* 当内容折叠时隐藏header的底部边框 */
.filter-header.no-border {
  border-bottom-color: transparent;
}

.filter-header:hover {
  background-color: rgba(0, 0, 0, 0.01);
}

.filter-header h3 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.filter-toggle-btn {
  background: transparent;
  border: none;
  width: 32px;
  height: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: none;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.filter-toggle-btn:hover {
  background-color: rgba(67, 97, 238, 0.1);
  transform: none;
  box-shadow: none;
}

.filter-toggle-icon {
  position: relative;
  width: 14px;
  height: 2px;
  background-color: transparent;
}

.filter-toggle-icon::before,
.filter-toggle-icon::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 2px;
  background-color: var(--text-primary);
  transition: transform 0.3s ease;
  left: 0;
}

.filter-toggle-icon::before {
  transform: rotate(45deg);
}

.filter-toggle-icon::after {
  transform: rotate(-45deg);
}

.filter-toggle-btn[aria-expanded="false"] .filter-toggle-icon::before {
  transform: rotate(-45deg);
}

.filter-toggle-btn[aria-expanded="false"] .filter-toggle-icon::after {
  transform: rotate(45deg);
}

.filter-content {
  max-height: 1000px;
  transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
  overflow: hidden;
  opacity: 1;
}

.filter-content.collapsed {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
}

/* 图片预览相关样式优化 */
.image-gallery {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.gallery-main {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  opacity: 0.7;
}

.gallery-nav-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
  opacity: 1;
}

.gallery-nav-prev {
  left: 15px;
}

.gallery-nav-next {
  right: 15px;
}

.gallery-main img {
  width: 100%;
  object-fit: contain;
  background-color: #000;
  border-radius: 10px;
  max-height: 70vh;
}

.gallery-thumbnails {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.gallery-thumbnail {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.gallery-thumbnail.active {
  border-color: var(--primary-color);
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(67, 97, 238, 0.25);
}

.gallery-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-thumbnail:hover img {
  transform: scale(1.1);
}

/* 暗黑模式优化 */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --border-color: #334155;
    --primary-light: rgba(67, 97, 238, 0.15);
    --primary-light-hover: rgba(67, 97, 238, 0.2);
  }
  
  .video-tag {
    background-color: rgba(67, 97, 238, 0.2);
  }
  
  .video-card {
    border-color: rgba(255, 255, 255, 0.03);
  }
  
  .filter-wrapper {
    border-color: rgba(255, 255, 255, 0.03);
  }

  .page-link:hover {
    background-color: #2d3748;
  }

  .btn-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }

  select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  }
  
  .filter-header:hover {
    background-color: rgba(255, 255, 255, 0.02);
  }
}

/* 搜索框样式 */
.search-container {
  position: relative;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.6rem 1rem;
  padding-right: 2.5rem;
  border-radius: var(--small-radius);
  border: 1px solid var(--border-color);
  background-color: var(--card-bg);
  transition: var(--transition);
  outline: none;
}

.search-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

.search-input::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}

.search-clear-btn {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--text-secondary);
  color: white;
  border: none;
  font-size: 14px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  opacity: 0.7;
}

.search-clear-btn:hover {
  opacity: 1;
  background-color: var(--text-primary);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 高亮搜索结果 */
.search-highlight {
  background-color: rgba(255, 230, 0, 0.3);
  padding: 0 2px;
  border-radius: 3px;
}

/* 确保在黑暗模式下搜索框样式正确 */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --border-color: #334155;
    --primary-light: rgba(67, 97, 238, 0.15);
    --primary-light-hover: rgba(67, 97, 238, 0.2);
  }

  .search-input {
    color: var(--text-primary);
  }
  
  .search-highlight {
    background-color: rgba(255, 230, 0, 0.2);
  }
}

/* 模式切换按钮样式 */
.filter-mode-switch {
  display: flex;
  margin-right: 15px;
}

.filter-mode-btn {
  font-size: 0.85rem;
  padding: 5px 12px;
  background: var(--bg-color);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  box-shadow: none;
  transition: var(--transition);
  font-weight: 500;
}

.filter-mode-btn:first-child {
  border-radius: var(--small-radius) 0 0 var(--small-radius);
  border-right: none;
}

.filter-mode-btn:last-child {
  border-radius: 0 var(--small-radius) var(--small-radius) 0;
}

.filter-mode-btn:hover {
  background-color: var(--primary-light);
  transform: none;
  box-shadow: none;
}

.filter-mode-btn.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* 底部加载动画 */
.bottom-loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 0;
  width: 100%;
}

.bottom-loading-spinner .spinner {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(67, 97, 238, 0.1);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* 添加移动端响应式优化样式 */
@media (max-width: 767px) {
  body {
    padding: 15px;
    font-size: 14px;
  }
  
  .filter-wrapper {
    margin-bottom: 25px;
  }
  
  .filter-header {
    padding: 15px;
  }
  
  .filter-header h4 {
    font-size: 1rem;
  }
  
  .filter-mode-switch {
    font-size: 13px;
  }
  
  .filter-bar {
    padding: 15px;
  }
  
  .filter-item {
    margin-bottom: 15px;
  }
  
  .col-item {
    margin-bottom: 20px;
    padding: 0 8px;
  }
  
  .video-card {
    box-shadow: 0 5px 15px -5px rgba(0, 0, 0, 0.1);
  }
  
  .modal-dialog {
    margin: 0;
    max-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .modal-content {
    max-height: 95vh;
    margin: 0;
    width: 100%;
    border-radius: 0;
  }
  
  .modal-header {
    padding: 16px 20px;
  }
  
  .modal-body {
    padding: 20px;
    max-height: calc(95vh - 130px);
  }
  
  .btn-close {
    padding: 0.6rem;
    width: 36px;
    height: 36px;
  }
  
  .filter-mode-switch {
    font-size: 13px;
  }
  
  .filter-mode-btn {
    padding: 5px 8px;
  }
  
  .pagination {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .page-jumper {
    margin-top: 10px;
    width: 100%;
    justify-content: center;
  }
}

/* 添加模态窗口滚动条样式 */
.modal-body::-webkit-scrollbar {
  width: 8px;
}

.modal-body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: rgba(67, 97, 238, 0.3);
  border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(67, 97, 238, 0.5);
}

/* 动画：放大淡入效果，用于模态框内的内容元素 */
@keyframes zoomFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-content > * {
  animation: zoomFadeIn 0.4s ease-out forwards;
}

/* 为视频和图片模态框添加特定样式 */
#videoModal .ratio-16x9,
#imageModal .gallery-main {
  opacity: 0;
  transform: scale(0.98);
  transition: all 0.5s ease;
}

#videoModal.show .ratio-16x9,
#imageModal.show .gallery-main {
  opacity: 1;
  transform: scale(1);
}

/* 夜间模式下调整模态框样式 */
@media (prefers-color-scheme: dark) {
  .modal {
    background-color: rgba(0, 0, 0, 0.9);
  }
  
  .modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
  }
  
  .btn-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }
}

/* dialog polyfill 兼容样式 */
dialog-polyfill-backdrop {
  background: rgba(0, 0, 0, 0.85) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

dialog.dialog-polyfill {
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  border: none !important;
  max-width: 100% !important;
  max-height: 100% !important;
  margin: 0 !important;
  background: transparent !important;
}

/* 移动设备模态窗口样式调整 */
@media (max-width: 767px) {
  dialog {
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
  }
  
  .modal-dialog {
    margin: 0;
    max-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .modal-content {
    max-height: 100vh;
    margin: 0;
    width: 100%;
    border-radius: 0;
  }
  
  .modal-header {
    padding: 16px 20px;
  }
  
  .modal-body {
    padding: 20px;
    max-height: calc(100vh - 130px);
  }
  
  .btn-close {
    padding: 0.6rem;
    width: 36px;
    height: 36px;
  }
}

/* 添加卡密验证按钮样式 */
.user-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.vip-card-btn {
  padding: 8px 16px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--small-radius);
  cursor: pointer;
  font-size: 14px;
  transition: var(--transition);
  width: 100%;
  max-width: 220px;
}

.vip-card-btn:hover {
  background-color: var(--primary-hover);
}

.vip-card-btn.is-vip {
  background-color: #4CAF50;
}

.vip-card-btn.is-vip:hover {
  background-color: #388E3C;
}

/* 卡密验证模态框样式 */
.vip-card-container {
  padding: 15px;
}

.vip-card-container .form-group {
  margin-bottom: 20px;
}

.vip-card-container label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.vip-card-container .form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--small-radius);
  background-color: var(--card-bg);
  color: var(--text-primary);
  font-size: 14px;
  transition: var(--transition);
}

.vip-card-container .form-control:focus {
  border-color: var(--primary-color);
  outline: none;
}

.vip-card-container .btn {
  padding: 8px 16px;
  border: none;
  border-radius: var(--small-radius);
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}

.vip-card-container .btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.vip-card-container .btn-primary:hover {
  background-color: var(--primary-hover);
}

/* 会员信息卡片样式 */
#vipCardResult .card {
  background-color: var(--card-bg);
  border-radius: var(--small-radius);
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

#vipCardResult .card-body {
  padding: 15px;
}

#vipCardResult .card-subtitle {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 10px;
}

#vipCardResult p {
  margin: 8px 0;
  font-size: 14px;
  color: var(--text-primary);
}

/* Toast提示框样式 */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
}

.toast {
  min-width: 250px;
  margin-bottom: 10px;
  padding: 12px 15px;
  border-radius: 4px;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateX(120%);
  transition: transform 0.3s ease;
  color: white;
}

.toast.show {
  transform: translateX(0);
}

.toast-success {
  background-color: #4CAF50;
}

.toast-error {
  background-color: #F44336;
}

.toast-info {
  background-color: var(--primary-color);
}

/* 响应式适配 */
@media (max-width: 576px) {
  .user-actions {
    margin-bottom: 0.5rem;
  }
  
  .vip-card-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
}