.tmdb-search {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.hero-banner {
  position: relative;
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--card-radius);
  padding: 2.5rem;
  margin-bottom: 2rem;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-banner:before {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  z-index: -1;
  background: 
    radial-gradient(circle at 30% 30%, rgba(139, 92, 246, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 70% 70%, rgba(6, 182, 212, 0.1) 0%, transparent 40%);
  animation: rotateSlow 25s infinite linear;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

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

.hero-title {
  font-size: 2.2rem;
  margin-bottom: 12px;
  color: var(--text-color);
  font-weight: 600;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-color-secondary);
  margin: 0;
  line-height: 1.5;
}

.search-box {
  display: flex;
  gap: 12px;
  max-width: 700px;
  margin: 0 auto;
  width: 100%;
}

/* 响应式调整 */
@media (min-width: 992px) {
  .hero-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  
  .hero-text {
    text-align: left;
    flex-basis: 42%;
  }
  
  .search-box {
    flex-basis: 58%;
    margin: 0;
  }
}

/* 优化的搜索框样式 */
.custom-input {
  flex: 1;
  height: 48px;
  border-radius: 24px;
  padding: 0 20px;
  font-size: 1rem;
  border: 2px solid var(--border-color);
  background-color: var(--input-bg);
  color: var(--text-color);
  transition: all 0.3s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.custom-input:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.15);
}

.search-button {
  min-width: 100px;
  height: 48px;
  border-radius: 24px;
  background-color: var(--primary-color);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
}

@media (max-width: 768px) {
  .hero-banner {
    padding: 30px 25px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .hero-banner {
    padding: 25px 20px;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .search-button {
    min-width: 48px;
    width: 48px;
    padding: 0;
  }
  
  .search-text {
    display: none;
  }
  
  .search-box {
    gap: 8px;
  }
  
  .custom-input {
    height: 45px;
    padding: 0 15px;
  }
}

.search-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(var(--primary-color-rgb), 0.3);
}

.search-button:active {
  transform: translateY(0);
}

/* 删除旧的搜索容器样式 */
.search-container {
  display: none;
}

.loading-container,
.error-message,
.success-message,
.empty-result {
  text-align: center;
  padding: 60px 0;
  background-color: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  margin-bottom: 40px;
}

.loader {
  border: 5px solid rgba(var(--border-color-rgb), 0.3);
  border-top: 5px solid var(--primary-color);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
  margin: 0 auto 25px;
}

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

.error-message {
  color: var(--error-color);
}

.error-message i,
.success-message i,
.empty-result i {
  font-size: 4rem;
  margin-bottom: 20px;
  display: block;
  opacity: 0.9;
}

.success-message {
  color: var(--success-color);
}

.success-message p {
  font-size: 1.5rem;
  margin-bottom: 25px;
}

.success-actions {
  margin-top: 30px;
  display: flex;
  gap: 15px;
  justify-content: center;
}

.empty-result {
  color: var(--text-color-secondary);
}

/* 移除 preview-container 样式，使用资源详情页的样式 */
.resource-detail {
  width: 100%;
  margin-bottom: 40px;
}

/* 修改布局结构的样式 */
.resource-content {
  display: flex;
  flex-direction: column;
  background: #f1effe;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* 修改预览横幅样式，使其与资源详情页风格一致 */
.preview-banner {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  color: white;
  padding: 1.5rem 2rem;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-bottom: 0; /* 移除底部边距，由内容区域的padding提供间距 */
}

.preview-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, 
    rgba(255, 255, 255, 0.1) 25%, 
    transparent 25%, 
    transparent 50%, 
    rgba(255, 255, 255, 0.1) 50%, 
    rgba(255, 255, 255, 0.1) 75%, 
    transparent 75%, 
    transparent);
  background-size: 100px 100px;
  opacity: 0.3;
  z-index: 1;
}

.banner-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
}

.banner-title-area {
  flex: 1;
  min-width: 0;
}

.banner-title-area .title {
  color: var(--text-color);
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.title-text-content {
  margin-right: 5px;
}

.banner-title-area .subtitle {
  font-size: 1.2rem;
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.85);
  font-weight: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 修改操作区域样式 */
.banner-action-area {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}

/* 修改分类标签样式，与资源详情页保持一致 */
.banner-action-area .resource-type-badge {
  padding: 4px 12px;
  background-color: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  border-radius: 20px;
  font-size: 0.9rem;
  white-space: nowrap;
  height: 28px;
  display: inline-flex;
  align-items: center;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.banner-action-area .resource-type-badge:hover {
  background-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* 修改按钮样式，与资源详情页保持一致 */
.banner-action-area .btn-outline {
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 0.95rem;
  padding: 6px 14px;
  height: 35px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.banner-action-area .btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.banner-action-area .btn-primary {
  background: rgba(255, 255, 255, 0.25);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 0.95rem;
  padding: 6px 14px;
  height: 35px;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.banner-action-area .btn-primary:hover {
  background: rgba(255, 255, 255, 0.35);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.import-button {
  font-size: 0.95rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

/* 移动端下的导入按钮文本 */
@media (max-width: 576px) {
  .import-text {
    display: none;
  }
  
  .import-button .me-1 {
    margin-right: 0 !important;
  }
}

/* 响应式样式调整 */
@media (max-width: 768px) {
  .preview-banner {
    padding: 20px;
  }
  
  .banner-content {
    flex-direction: column;
    gap: 15px;
  }
  
  .banner-title-area {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
  }
  
  .desktop-badge-container {
    display: none;
  }
  
  .mobile-badge-container {
    display: block;
  }
  
  .banner-action-area {
    width: 100%;
    justify-content: flex-end;
  }
  
  .banner-action-area .action-buttons {
    width: auto;
    justify-content: flex-end;
  }
  
  .banner-title-area .title {
    font-size: 1.5rem;
  }
  
  .tmdb-id-badge {
    font-size: 0.8rem;
    padding: 3px 6px;
  }
  
  .banner-title-area .subtitle {
    font-size: 1rem;
    margin-top: 8px;
  }
  
  .banner-action-area .btn-outline,
  .banner-action-area .btn-primary {
    font-size: 0.9rem;
    padding: 8px 12px;
  }
}

/* 更小屏幕的额外调整 */
@media (max-width: 576px) {
  .preview-banner {
    padding: 15px;
  }
  
  .banner-title-area .title {
    font-size: 1.3rem;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 5px;
  }
  
  .title-text-content {
    max-width: calc(100% - 90px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  .tmdb-id-badge {
    font-size: 0.75rem;
    padding: 2px 5px;
    white-space: nowrap;
  }
  
  .mobile-badge-container .resource-type-badge {
    padding: 3px 8px;
    font-size: 0.7rem;
    margin-left: 0;
  }
  
  .banner-title-area .subtitle {
    font-size: 0.9rem;
    margin-top: 3px;
    width: 100%;
  }
}

/* 修改内容区域容器样式 */
.content-container {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border-radius: 0 0 12px 12px;
  margin-top: 0;
}

/* 桌面端显示为左右布局 */
@media (min-width: 992px) {
  .content-container {
    flex-direction: row;
    align-items: flex-start;
    gap: 30px;
    padding: 2rem;
  }
  
  .media-section {
    width: 40%;
  }
  
  .info-section {
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
  }
}

/* 媒体区域样式 */
.media-section {
  background: var(--glass-background);
  border-radius: var(--card-radius);
  padding: 1.5rem;
  box-shadow: var(--box-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  height: fit-content;
}


.main-image-container {
  width: 100%;
  border-radius: var(--border-radius);
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  cursor: zoom-in;
}

.main-image-container:hover .resource-poster {
  transform: scale(1.04);
}


.resource-poster {
  width: 100%;
  max-height: 400px; /* 增加海报图片高度 */
  object-fit: contain; /* 保持比例完整显示图片 */
  display: block;
  transition: transform 0.5s ease;
}

/* 修改缩略图容器样式 */
.thumbnails-container {
  width: 100%;
  overflow-x: auto;
  padding: 12px 5px;
  margin-top: 5px;
  scrollbar-width: thin;
  scrollbar-color: rgba(124, 58, 237, 0.5) rgba(241, 239, 254, 0.3);
}

.thumbnails-container::-webkit-scrollbar {
  height: 6px;
}

.thumbnails-container::-webkit-scrollbar-track {
  background: rgba(241, 239, 254, 0.3);
  border-radius: 10px;
}

.thumbnails-container::-webkit-scrollbar-thumb {
  background: rgba(124, 58, 237, 0.5);
  border-radius: 10px;
}

.thumbnails-scroll {
  display: flex;
  gap: 12px;
  padding: 5px 0;
  min-width: 100%;
}

.thumbnail {
  width: 110px;
  height: 70px;
  flex: 0 0 auto;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid rgba(124, 58, 237, 0.1);
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  position: relative;
}

.thumbnail.active {
  border-color: var(--primary-color, #7c3aed);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(124, 58, 237, 0.25);
}

.thumbnail:hover:not(.active) {
  transform: translateY(-1px);
  box-shadow: 0 3px 7px rgba(0, 0, 0, 0.15);
}

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

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

.info-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.resource-header {
  margin-bottom: 20px;
}

.header-content {
  width: 100%;
}

/* 新的标题区域布局 */
.title-area {
  display: flex;
  justify-content: space-between;
  width: 100%;
  flex-wrap: nowrap;
  gap: 15px;
  align-items: flex-start;
}

.title-main {
  flex: 1;
  min-width: 0; /* 允许标题区域在需要时收缩 */
}

.title {
  font-size: 1.8rem;
  margin: 0;
  color: var(--text-color);
  word-break: keep-all; /* 防止标题中间断词 */
  white-space: nowrap; /* 防止标题换行 */
  overflow: hidden;
  text-overflow: ellipsis; /* 超出显示省略号 */
}

.subtitle {
  font-size: 1.2rem;
  margin: 5px 0 0;
  color: var(--text-color-secondary);
  font-weight: normal;
  overflow: hidden;
  text-overflow: ellipsis; /* 超出显示省略号 */
  white-space: nowrap; /* 防止副标题换行 */
}

.action-area {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0; /* 防止操作区域被压缩 */
}

.resource-type-badge {
  padding: 4px 12px;
  background-color: #7C3AED;
  color: white;
  border-radius: 20px;
  font-size: 0.9rem;
  white-space: nowrap;
  height: 28px; /* 明确设置高度 */
  display: inline-flex;
  align-items: center;
  max-width: 160px; /* 限制最大宽度 */
  overflow: hidden;
  text-overflow: ellipsis; /* 超出显示省略号 */
  box-shadow: 0 4px 10px rgba(124, 58, 237, 0.3);
  z-index: 2;
  transition: all 0.3s ease;
}

.resource-type-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(124, 58, 237, 0.4);
}

/* 导入按钮样式调整 */
.import-button-top {
  font-size: 0.9rem;
  padding: 4px 12px;
  height: 28px; /* 与分类标签高度一致 */
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0; /* 确保按钮不被压缩 */
}

/* 移动端适配 */
@media (max-width: 768px) {
  .title-area {
    gap: 10px;
    align-items: center; /* 垂直居中对齐 */
  }
  
  .action-area {
    flex-wrap: nowrap; /* 保持在一行 */
    align-items: center;
  }
  
  .resource-type-badge {
    max-width: 100px; /* 移动端下进一步限制宽度 */
  }
  
  .import-button-top {
    padding: 4px 10px;
  }
  
  .import-text {
    display: none; /* 移动端下隐藏按钮文字 */
  }
  
  .import-button-top .me-1 {
    margin-right: 0 !important; /* 移除图标右边距 */
  }
}

@media (max-width: 576px) {
  .title-area {
    gap: 8px; /* 减少间距 */
  }
  
  .title {
    font-size: 1.5rem; /* 在小屏幕上减小标题大小 */
  }
  
  .subtitle {
    font-size: 1rem; /* 在小屏幕上减小副标题大小 */
  }
  
  .resource-type-badge {
    max-width: 80px; /* 在极小屏幕上进一步限制宽度 */
    padding: 4px 8px; /* 减少内边距 */
  }
}

/* 通用按钮样式 */
.btn-custom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 6px;
  border: none;
  font-size: 0.95rem;
  transition: all 0.3s;
  cursor: pointer;
  font-weight: 500;
}

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

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

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-color);
}

.btn-outline:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

/* 成功导入后的操作按钮 */
.action-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

/* 隐藏原来的底部导入按钮容器 - 更具体的选择器，只隐藏底部的按钮 */
.info-section > .action-buttons {
  display: none;
}

/* 确保标题区域的按钮显示 */
.title-area .action-buttons {
  display: flex;
}

/* 修改描述卡片样式，与资源详情页保持一致 */
.description-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px; /* 添加底部边距 */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(124, 58, 237, 0.1);
  position: relative;
  overflow: hidden;
  background-color: rgba(124, 58, 237, 0.03);
}

.card-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(124, 58, 237, 0.07), transparent);
  opacity: 0.8;
}

.card-header h3 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark-color);
  position: relative;
  display: flex;
  align-items: center;
}

.card-header h3::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  background: var(--primary-gradient);
  margin-right: 0.75rem;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.card-body {
  padding: 1.5rem;
  line-height: 1.6;
  max-height: 400px;
  overflow-y: auto;
}

/* 美化滚动条 */
.card-body::-webkit-scrollbar {
  width: 6px;
}

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

.card-body::-webkit-scrollbar-thumb {
  background: rgba(124, 58, 237, 0.3);
  border-radius: 10px;
}

.card-body::-webkit-scrollbar-thumb:hover {
  background: rgba(124, 58, 237, 0.5);
}

.card-body p {
  margin: 0;
  line-height: 1.6;
  color: var(--text-color);
}

/* 图片预览模态框 */
.custom-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

.modal-image-container {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  animation: zoomIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.image-close-btn {
  position: absolute;
  top: -15px;
  right: -15px;
  background: white;
  color: var(--dark-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  z-index: 10;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.image-close-btn:hover {
  opacity: 1;
  transform: rotate(90deg);
}


/* 添加btn-close样式 */
.btn-close {
  background: #FFFFFF;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--gray-color);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  transition: all 0.3s ease;
  border-radius: 50%;
}

.btn-close:hover {
  color: var(--dark-color);
  background: rgba(124, 58, 237, 0.1);
  transform: rotate(90deg);
}

.preview-large-image {
  max-width: 100%;
  max-height: 90vh;
  border-radius: var(--card-radius);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  border: 3px solid rgba(255, 255, 255, 0.8);
}

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

/* 编辑表单样式 */
.edit-form-container {
  margin-bottom: 3rem;
}

.edit-card {
  background: var(--glass-background);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeInUpScale 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.edit-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--deep-shadow);
}

.edit-card-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(124, 58, 237, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.edit-card-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(124, 58, 237, 0.07), transparent);
  opacity: 0.8;
}

.edit-card-header h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-color);
  position: relative;
  display: flex;
  align-items: center;
}

.edit-card-header h3::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  background: var(--primary-gradient);
  margin-right: 0.75rem;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.edit-card-body {
  padding: 1.5rem;
}

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

.form-label {
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
  display: block;
}

.custom-input, .custom-textarea {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(124, 58, 237, 0.15);
  border-radius: var(--border-radius);
  padding: 0.75rem 1rem;
  color: var(--dark-color);
  transition: all 0.3s ease;
  width: 100%;
  font-size: 1rem;
}

.custom-input:focus, .custom-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
  background: rgba(255, 255, 255, 0.85);
}

.custom-textarea {
  min-height: 120px;
  resize: vertical;
}

/* 资源类型多选样式 */
.resource-type-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.resource-type-option {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(124, 58, 237, 0.1);
  border-radius: 100px;
  padding: 0.5rem 1.25rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.resource-type-option::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0));
  opacity: 0.7;
}

.resource-type-option:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(124, 58, 237, 0.15);
  border-color: rgba(124, 58, 237, 0.3);
}

.resource-type-option.selected {
  background: var(--primary-gradient);
  color: white;
  border-color: transparent;
  box-shadow: 0 5px 15px rgba(124, 58, 237, 0.25),
              inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

.option-text {
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.check-icon {
  color: white;
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

.selected-types-preview {
  font-size: 0.9rem;
  color: var(--gray-color);
  margin-top: 0.5rem;
}

.selected-type-text {
  font-weight: 600;
  color: var(--primary-color);
}

/* 图片管理样式 */
.section-subtitle {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--dark-color);
  display: flex;
  align-items: center;
}

.section-subtitle::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--primary-gradient);
  margin-right: 0.5rem;
  border-radius: 50%;
}

.image-management-section {
  margin-bottom: 1.5rem;
}

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

.image-item {
  position: relative;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.image-item:hover {
  transform: translateY(-5px);
}

.image-item.is-poster {
  box-shadow: 0 10px 20px rgba(124, 58, 237, 0.2);
}

.image-preview-container {
  position: relative;
  width: 100%;
  height: 150px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  border: var(--glass-border);
  background: rgba(255, 255, 255, 0.5);
}

.image-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.image-preview-container:hover .image-preview {
  transform: scale(1.1);
}

.image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 0.75rem;
}

.image-preview-container:hover .image-overlay {
  opacity: 1;
}

.image-action-btn {
  width: 100%;
  padding: 0.4rem 0.5rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.set-poster-btn {
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-color);
}

.set-poster-btn:hover {
  background: white;
  transform: translateY(-2px);
}

.set-poster-btn:disabled {
  background: rgba(124, 58, 237, 0.2);
  color: white;
  cursor: default;
  transform: none;
}

.remove-btn {
  background: rgba(244, 63, 94, 0.7);
  color: white;
}

.remove-btn:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
}

.remove-btn:disabled {
  background: rgba(244, 63, 94, 0.4);
  cursor: default;
  transform: none;
}

.poster-badge {
  position: absolute;
  top: -10px;
  right: 10px;
  background: var(--primary-gradient);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  box-shadow: 0 4px 10px rgba(124, 58, 237, 0.3);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  z-index: 10;
}

/* 上传区域样式 */
.upload-section {
  margin-top: 2rem;
}

.dropzone-container {
  background: rgba(255, 255, 255, 0.5);
  border: 2px dashed rgba(124, 58, 237, 0.3);
  border-radius: var(--card-radius);
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.dropzone-container.active-dropzone {
  background: rgba(124, 58, 237, 0.08);
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

.dropzone-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  display: block;
  opacity: 0.8;
}

.dropzone-content p {
  margin-bottom: 1.25rem;
  color: var(--gray-color);
}

.file-upload-btn {
  padding: 8px 16px;
  min-width: 120px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.file-btn-text {
  white-space: nowrap;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .dropzone-container {
    padding: 1.5rem 1rem;
  }
  
  .dropzone-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
  }
  
  .dropzone-content p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
  
  .file-upload-btn {
    padding: 6px 12px;
    min-width: 110px;
    font-size: 0.9rem;
  }
}

.upload-progress {
  margin-top: 1.25rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--border-radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--box-shadow);
}

.progress-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  color: var(--dark-color);
}

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(124, 58, 237, 0.1);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.small-spinner {
  width: 16px;
  height: 16px;
  border-width: 2px;
}

.progress-bar-container {
  background: rgba(124, 58, 237, 0.1);
  height: 8px;
  border-radius: 100px;
  overflow: hidden;
}

.progress-bar-inner {
  height: 100%;
  background: var(--primary-gradient);
  border-radius: 100px;
  text-indent: -9999px;
  transition: width 0.3s ease;
}

/* 链接管理样式 */
.links-edit-card {
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  border: var(--glass-border);
}

.link-info-text {
  font-size: 0.9rem;
  color: var(--gray-color);
  margin: 1rem;
}

.links-content {
  padding: 0 1rem 1rem;
}

.empty-links {
  text-align: center;
  padding: 2.5rem 0;
  color: var(--gray-color);
}

.empty-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.links-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 8px;
}

.links-list::-webkit-scrollbar {
  width: 6px;
}

.links-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
}

.links-list::-webkit-scrollbar-thumb {
  background: rgba(124, 58, 237, 0.3);
  border-radius: 10px;
}

.links-list::-webkit-scrollbar-thumb:hover {
  background: rgba(124, 58, 237, 0.5);
}

.link-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: var(--border-radius);
  padding: 1rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
}

.link-item:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.link-inputs {
  display: grid;
  grid-template-columns: 2fr 0.5fr 2fr;
  gap: 1rem;
  width: 100%;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.input-prefix {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: var(--gray-color);
}

.remove-link-btn {
  background: rgba(244, 63, 94, 0.1);
  color: var(--accent-color);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin-top: 1.2rem;
}

.remove-link-btn:hover {
  background: var(--accent-color);
  color: white;
  transform: rotate(90deg);
}

.add-link-container {
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
}

.add-link-btn {
  width: auto;
}

/* 保存错误样式 */
.save-error {
  background: rgba(244, 63, 94, 0.1);
  color: var(--accent-color);
  padding: 1rem 1.25rem;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  font-weight: 500;
}

/* 表单操作区域 */
.form-actions {
  display: flex;
  justify-content: center;
  padding-top: 1.5rem;
}

.save-btn {
  min-width: 180px;
  padding: 10px 20px;
  height: 42px;
  font-size: 1rem;
}

/* 链接选项卡 */
.links-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 1rem 1rem 1rem 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) rgba(255, 255, 255, 0.2);
  position: relative;
  border-bottom: 1px solid rgba(124, 58, 237, 0.1);
  flex-wrap: wrap;
}

.links-tabs::-webkit-scrollbar {
  height: 6px;
}

.links-tabs::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

.links-tabs::-webkit-scrollbar-thumb {
  background: var(--primary-gradient);
  border-radius: 10px;
}

.tab-btn {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(124, 58, 237, 0.15);
  color: var(--dark-color);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  outline: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(124, 58, 237, 0.15);
}

.tab-btn.active {
  background: var(--primary-gradient);
  color: white;
  border-color: transparent;
  box-shadow: 0 8px 15px rgba(124, 58, 237, 0.3);
}

.tab-badge {
  background: rgba(255, 255, 255, 0.3);
  color: inherit;
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
  font-weight: 700;
}

.tab-btn.active .tab-badge {
  background: rgba(255, 255, 255, 0.25);
  color: white;
}

/* 响应式样式 */
@media (max-width: 992px) {
  .link-inputs {
    grid-template-columns: 2fr 0.5fr 1.5fr;
  }
}

@media (max-width: 768px) {
  .link-inputs {
    grid-template-columns: 1fr;
  }
  
  .image-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
  
  .image-preview-container {
    height: 120px;
  }
  
  .edit-card-header {
    padding: 1rem;
  }
  
  .edit-card-body {
    padding: 1rem;
  }
  
  .form-group {
    margin-bottom: 1.25rem;
  }
}

/* 添加动画 */
@keyframes fadeInUpScale {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 标题文本容器 */
.title-text {
  flex: 1;
  min-width: 0;
}

/* 桌面端和移动端的分类标签容器 */
.desktop-badge-container {
  display: block;
}

.mobile-badge-container {
  display: none;
}

/* 链接预览卡片样式 */
.links-preview-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.link-category {
  margin-bottom: 1.5rem;
}

.link-category:last-child {
  margin-bottom: 0;
}

.category-title {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
}

.category-title::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--primary-gradient);
  margin-right: 0.5rem;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.15);
}

.links-preview-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.link-preview-item {
  background: rgba(241, 239, 254, 0.5);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}

.link-preview-item:hover {
  background: rgba(241, 239, 254, 0.7);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.link-preview-url {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  word-break: break-all;
}

.link-preview-url i {
  color: var(--primary-color);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.link-preview-url a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.2s ease;
  font-weight: 500;
}

.link-preview-url a:hover {
  color: var(--primary-color-dark);
  text-decoration: underline;
}

.link-preview-detail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  color: var(--text-color-secondary);
  font-size: 0.9rem;
}

.link-preview-detail i {
  color: var(--gray-color);
  font-size: 0.95rem;
  flex-shrink: 0;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .links-preview-card {
    margin-top: 15px;
  }
  
  .link-preview-item {
    padding: 0.6rem 0.8rem;
  }
  
  .category-title {
    font-size: 1rem;
  }
}

/* 链接表格样式 */
.links-table {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.table-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  background: rgba(124, 58, 237, 0.08);
  padding: 12px 16px;
  font-weight: 600;
  color: var(--dark-color);
  border-bottom: 1px solid rgba(124, 58, 237, 0.1);
}

.table-body {
  max-height: 300px;
  overflow-y: auto;
}

.table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(124, 58, 237, 0.05);
  transition: background-color 0.2s ease;
}

.table-row:last-child {
  border-bottom: none;
}

.table-row:hover {
  background-color: rgba(124, 58, 237, 0.03);
}

.col-link {
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 10px;
}

.col-password, .col-note {
  display: flex;
  align-items: center;
}

.link-url {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-url:hover {
  text-decoration: underline;
}

.url-text {
  overflow: hidden;
  text-overflow: ellipsis;
}

.password-container {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(124, 58, 237, 0.08);
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.password-container:hover {
  background-color: rgba(124, 58, 237, 0.15);
}

.no-password {
  color: #999;
}

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

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* 响应式表格样式 */
@media (max-width: 768px) {
  .table-header, .table-row {
    grid-template-columns: 1.5fr 0.8fr 0.8fr;
    padding: 10px 12px;
    font-size: 0.9rem;
  }
  
  .password-container {
    padding: 3px 8px;
  }
}

@media (max-width: 576px) {
  .table-header, .table-row {
    grid-template-columns: 1fr;
    grid-row-gap: 8px;
  }
  
  .table-header {
    display: none;
  }
  
  .col-link, .col-password, .col-note {
    position: relative;
    padding-left: 80px;
  }
  
  .col-link::before, .col-password::before, .col-note::before {
    position: absolute;
    left: 0;
    content: attr(data-label);
    font-weight: 600;
    color: var(--dark-color);
  }
  
  .col-link::before {
    content: "链接:";
  }
  
  .col-password::before {
    content: "提取码:";
  }
  
  .col-note::before {
    content: "备注:";
  }
}

.password-text {
  background-color: rgba(124, 58, 237, 0.08);
  padding: 4px 10px;
  border-radius: 4px;
  color: var(--dark-color);
  font-weight: 500;
}

@media (max-width: 768px) {
  .password-text {
    padding: 3px 8px;
  }
}

/* 调整移动端的间距和布局 */
@media (max-width: 768px) {
  .tmdb-search {
    padding: 15px;
  }
  
  .resource-detail {
    margin-bottom: 30px;
  }
  
  .preview-banner {
    padding: 1.25rem 1.5rem;
  }
  
  .content-container {
    padding: 1.2rem;
  }
  
  .media-section {
    padding: 0.8rem;
    margin-bottom: 15px;
  }
  
  .main-image-container {
    max-height: 350px;
  }
  
  .resource-poster {
    max-height: 350px;
  }
}

@media (max-width: 576px) {
  .preview-banner {
    padding: 15px;
  }
  
  .content-container {
    padding: 1rem;
  }
  
  .media-section {
    padding: 0.6rem;
  }
  
  .main-image-container {
    max-height: 380px;
    border-radius: 8px;
  }
  
  .resource-poster {
    max-height: 300px;
  }
}

/* 我将在适当的位置添加TMDB ID卡片的样式 */

.tmdb-id-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  box-shadow: var(--box-shadow);
  overflow: hidden;
  margin-bottom: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid var(--border-color-light);
}

.tmdb-id-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-hover);
}

.tmdb-id-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.tmdb-id-label {
  font-weight: 500;
  color: var(--text-color-secondary);
}

.tmdb-id-value {
  font-weight: 600;
  color: var(--text-color);
  background-color: var(--primary-color-light);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.95rem;
}

.tmdb-link {
  margin-left: auto;
  color: var(--primary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  transition: background-color 0.2s;
}

.tmdb-link:hover {
  background-color: var(--primary-color-light);
}

@media (max-width: 768px) {
  .tmdb-id-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .tmdb-link {
    margin-left: 0;
    margin-top: 5px;
  }
}

.tmdb-id-badge {
  display: inline-flex;
  align-items: center;
  background-color: rgba(var(--primary-color-rgb), 0.1);
  color: var(--primary-color);
  font-size: 0.9rem;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 500;
  gap: 6px;
  transition: all 0.2s ease;
}

.tmdb-id-badge:hover {
  background-color: rgba(var(--primary-color-rgb), 0.15);
}

.tmdb-link-small {
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.tmdb-link-small:hover {
  color: var(--primary-color-dark);
  transform: translateY(-1px);
}

/* 图片上传选项卡 */
.upload-method-tabs {
  display: flex;
  margin-bottom: 1rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(99, 102, 241, 0.1);
}

.method-tab {
  flex: 1;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  cursor: pointer;
  font-weight: 500;
  color: var(--gray-color);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.method-tab:first-child {
  border-right: 1px solid rgba(99, 102, 241, 0.1);
}

.method-tab:hover {
  background: rgba(99, 102, 241, 0.05);
  color: var(--primary-color);
}

.method-tab.active {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-color);
  font-weight: 600;
}

.method-tab i {
  font-size: 1.1rem;
}

/* URL上传区域 */
.url-upload-container {
  background: rgba(255, 255, 255, 0.5);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(99, 102, 241, 0.1);
}

.url-input-group {
  display: flex;
  gap: 0.75rem;
}

.add-url-btn {
  white-space: nowrap;
  min-width: 120px;
}

.url-hints {
  margin-top: 1rem;
}

.url-error {
  color: var(--accent-color);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.url-tip {
  color: var(--gray-color);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.url-error i, .url-tip i {
  font-size: 1rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .url-input-group {
    flex-direction: column;
  }
  
  .add-url-btn {
    width: 100%;
  }
}

/* 资源已存在提示样式 */
.resource-exists-alert {
  background-color: rgba(254, 226, 226, 0.9);
  border: 1px solid rgba(248, 113, 113, 0.5);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 15px 0;
  display: flex;
  align-items: center;
  color: #b91c1c;
  font-weight: 500;
  animation: fadeIn 0.3s ease;
}

.resource-exists-alert i {
  font-size: 1.2rem;
  color: #ef4444;
}

.view-resource-link {
  margin-left: auto;
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.view-resource-link:hover {
  background-color: rgba(37, 99, 235, 0.1);
  text-decoration: underline;
}

/* 搜索结果列表样式 */
.search-results-container {
  margin-bottom: 40px;
}

.results-title {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--text-color);
  font-weight: 600;
}

.results-count {
  font-size: 1.2rem;
  color: var(--text-color-secondary);
  font-weight: 400;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.result-card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.result-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.result-poster {
  position: relative;
  padding-top: 150%; /* 2:3 aspect ratio */
  overflow: hidden;
}

.poster-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.result-card:hover .poster-image {
  transform: scale(1.05);
}

.media-type-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 2;
}

.result-info {
  padding: 12px;
}

.result-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 5px;
  color: var(--text-color);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.result-original-title {
  font-size: 0.85rem;
  color: var(--text-color-secondary);
  margin: 0 0 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-year {
  font-size: 0.85rem;
  color: var(--text-color-secondary);
  margin: 0 0 5px;
}

.result-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #f5c518; /* IMDB yellow */
}

.result-rating i {
  font-size: 0.9rem;
}

/* 分页控件样式 */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
  gap: 10px;
}

.pagination-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(124, 58, 237, 0.2);
  color: var(--primary-color);
  cursor: pointer;
  transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
  background: rgba(124, 58, 237, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(124, 58, 237, 0.15);
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-numbers {
  display: flex;
  gap: 8px;
}

.page-number {
  min-width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(124, 58, 237, 0.2);
  color: var(--dark-color);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0 10px;
  font-weight: 500;
  font-size: 0.95rem;
}

.page-number.active {
  background: var(--primary-gradient);
  color: white;
  border: none;
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.25);
}

.page-number:hover:not(.active) {
  background: rgba(124, 58, 237, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(124, 58, 237, 0.15);
}

/* 无搜索结果样式 */
.no-results {
  text-align: center;
  padding: 60px 0;
  background-color: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  margin-bottom: 40px;
  color: var(--text-color-secondary);
}

.no-results i {
  font-size: 4rem;
  margin-bottom: 20px;
  display: block;
  opacity: 0.9;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .results-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
  }
  
  .results-title {
    font-size: 1.5rem;
  }
  
  .results-count {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .results-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
  }
  
  .result-info {
    padding: 10px 8px;
  }
  
  .result-title {
    font-size: 0.9rem;
  }
  
  .pagination-btn, .page-number {
    width: 36px;
    height: 36px;
    min-width: 36px;
    font-size: 0.9rem;
  }
}