/* ============ 网盘搜索页面整体样式 ============ */
.pansearch-page {
  padding: 0;
  width: 100%;
  margin: 0;
  box-sizing: border-box;
  min-height: 80vh;
}

.pansearch-page .row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* ============ 搜索面板样式 ============ */
.search-panel {
  background: #fff;
  border-radius: 0;
  padding: 25px 15px;
  margin: 20px 0 30px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.search-container {
  max-width: 800px;
  margin: 0 auto;
}

.search-input {
  height: 50px;
  font-size: 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px 0 0 8px;
  padding: 0 20px;
  transition: all 0.3s ease;
}

.search-input:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.search-btn {
  height: 50px;
  padding: 0 30px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 0;
  transition: all 0.3s ease;
}

.search-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,123,255,.3);
}

.search-panel .input-group-append .btn-outline-secondary {
  height: 50px;
  padding: 0 20px;
  font-size: 14px;
  border-radius: 0 8px 8px 0;
  border-left: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.search-panel .input-group-append .btn-outline-secondary:hover {
  background: #6c757d;
  color: #fff;
  transform: translateY(-1px);
}

.search-tips {
  margin-top: 12px;
  padding: 8px 12px;
  background: #f8f9fa;
  border-radius: 6px;
  border-left: 3px solid #007bff;
}

.search-tips i {
  margin-right: 5px;
}

/* 搜索历史样式 */
.search-history {
  margin-top: 15px;
  padding: 12px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
}

.history-header span {
  font-size: 14px;
  font-weight: 600;
  color: #666;
}

.history-header i {
  margin-right: 5px;
  color: #007bff;
}

.btn-clear-history {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s;
}

.btn-clear-history:hover {
  background: #f8f9fa;
  color: #dc3545;
}

.history-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.history-tag {
  padding: 6px 12px;
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 13px;
  color: #666;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.history-tag:hover {
  background: #007bff;
  color: #fff;
  border-color: #007bff;
  transform: translateY(-1px);
}

.history-tag i {
  font-size: 12px;
}

/* ============ 搜索结果列表样式 ============ */
.results-container {
  padding: 0 15px;
  margin-bottom: 30px;
}

.result-item {
  margin-bottom: 12px;
  transition: all 0.3s ease;
}

/* 表格式布局 */
.result-card-table {
  background: #fff;
  border-radius: 8px;
  padding: 12px 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: flex;
  gap: 10px;
  align-items: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-height: 50px;
}

.result-card-table::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, #007bff, #00d4ff);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.result-card-table:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.result-card-table:hover::before {
  opacity: 1;
}

/* 统一单元格基础样式 */
.result-cell {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  overflow: hidden;
  flex-shrink: 0;
}

/* 复选框列 */
.cell-checkbox {
  width: 40px;
  justify-content: center;
  padding: 0;
}

/* 序号列 */
.cell-index {
  width: 50px;
  justify-content: center;
}

.index-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 13px;
  box-shadow: 0 2px 8px rgba(102,126,234,0.3);
}

/* 资源名称列 */
.cell-name {
  width: 280px;
  min-width: 200px;
  gap: 6px;
}

.cell-name i {
  font-size: 14px;
  flex-shrink: 0;
}

.name-text {
  flex: 1;
  font-weight: 600;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: default;
}

.cell-name:hover .name-text {
  color: #007bff;
}

/* 标签列 */
.cell-tags {
  width: 160px;
  min-width: 120px;
  gap: 4px;
  flex-wrap: wrap;
}

.tag-badge {
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 500;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 75px;
}

.tag-badge.badge-source {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.tag-badge.badge-channel {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: #fff;
}

.tag-badge i {
  font-size: 10px;
  flex-shrink: 0;
}

/* 分享时间列 */
.cell-time {
  width: 120px;
  min-width: 100px;
  color: #666;
  font-size: 12px;
}

.cell-time i {
  color: #6c757d;
  font-size: 12px;
  flex-shrink: 0;
}

.cell-time span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 链接列 */
.cell-link {
  width: 200px;
  min-width: 150px;
  flex: 1;
}

.share-link {
  color: #007bff;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s;
  font-size: 12px;
}

.share-link:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* 是否有效列 */
.cell-status {
  width: 80px;
  min-width: 70px;
  justify-content: center;
}

.status-badge-compact {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.status-badge-compact.status-valid {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.status-badge-compact.status-invalid {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.status-badge-compact.status-checking {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.status-badge-compact.status-unknown {
  background: #e2e3e5;
  color: #6c757d;
  border: 1px solid #d6d8db;
}

.status-badge-compact i {
  font-size: 12px;
}

/* 网盘名称列 */
.cell-cloud {
  width: 100px;
  min-width: 90px;
  justify-content: center;
}

.cloud-badge {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 500;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.cloud-badge i {
  font-size: 12px;
  flex-shrink: 0;
}

/* 转存列 */
.cell-save {
  width: 85px;
  min-width: 75px;
  justify-content: center;
}

/* 添加任务列 */
.cell-task {
  width: 85px;
  min-width: 75px;
  justify-content: center;
}

/* 紧凑按钮样式 */
.btn-action-compact {
  min-width: 70px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  white-space: nowrap;
  height: 30px;
}

.btn-action-compact i {
  font-size: 13px;
}

.btn-action-compact:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-success.btn-action-compact {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  border: none;
  color: #fff;
}

.btn-success.btn-action-compact:hover {
  background: linear-gradient(135deg, #0e8074 0%, #2dd968 100%);
}

.btn-primary.btn-action-compact {
  border: none;
}

.btn-info.btn-action-compact {
  border: none;
  color: #fff;
}

/* 选中状态的资源卡片 */
.result-item.result-selected .result-card-table {
  background: #f0f8ff;
  border-left: 3px solid #007bff;
}

/* 旋转动画 */
.rotating {
  animation: rotating 1s linear infinite;
}

@keyframes rotating {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ============ 空状态样式 ============ */
.empty-state {
  text-align: center;
  padding: 80px 20px;
}

.empty-icon {
  font-size: 80px;
  color: #dee2e6;
  margin-bottom: 20px;
}

.empty-state h3 {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}

.empty-state p {
  font-size: 16px;
  color: #999;
  margin-bottom: 30px;
}

.empty-tips {
  max-width: 500px;
  margin: 0 auto;
  text-align: left;
}

.tip-item {
  padding: 12px 15px;
  margin-bottom: 10px;
  background: #f8f9fa;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #666;
}

.tip-item i {
  font-size: 20px;
  color: #007bff;
  flex-shrink: 0;
}

/* ============ 响应式设计 ============ */

/* 大屏 (> 1400px) - 增加列宽 */
@media (min-width: 1400px) {
  .cell-name {
    width: 320px;
  }
  
  .cell-tags {
    width: 180px;
  }
  
  .cell-link {
    width: 250px;
  }
}

/* 平板端 - 调整列宽 */
@media (max-width: 1200px) {
  .result-card-table {
    gap: 8px;
    padding: 10px 8px;
  }
  
  .cell-name {
    width: 220px;
    min-width: 180px;
  }
  
  .cell-tags {
    width: 140px;
    min-width: 100px;
  }
  
  .cell-time {
    width: 100px;
    min-width: 90px;
  }
  
  .cell-link {
    width: 160px;
    min-width: 120px;
  }
}

/* 小平板端 - 进一步压缩 */
@media (max-width: 992px) {
  .result-card-table {
    gap: 6px;
    padding: 10px 6px;
    font-size: 12px;
  }
  
  .cell-name {
    width: 180px;
    min-width: 150px;
  }
  
  .cell-tags {
    width: 120px;
    min-width: 80px;
  }
  
  .cell-time {
    width: 90px;
    font-size: 11px;
  }
  
  .cell-link {
    width: 140px;
    min-width: 100px;
  }
  
  .cell-status {
    width: 70px;
  }
  
  .cell-cloud {
    width: 85px;
  }
  
  .btn-action-compact {
    min-width: 65px;
    padding: 4px 8px;
    font-size: 11px;
  }
}

/* 移动端 - 隐藏部分列 */
@media (max-width: 767px) {
  .search-panel {
    padding: 20px 15px;
    margin: 15px 0 25px 0;
  }
  
  .search-input {
    height: 45px;
    font-size: 14px;
  }
  
  .search-btn,
  .search-panel .input-group-append .btn-outline-secondary {
    height: 45px;
    padding: 0 15px;
    font-size: 14px;
  }
  
  .search-panel .input-group-append {
    flex-direction: column;
  }
  
  .search-panel .input-group-append .btn-outline-secondary {
    border-radius: 0 0 8px 8px;
    border-left: 2px solid #e0e0e0;
    border-top: none;
    width: 100%;
  }
  
  .search-btn {
    border-radius: 0 8px 0 0;
  }
  
  .result-card-table {
    gap: 5px;
    padding: 8px 5px;
  }
  
  .cell-checkbox {
    width: 32px;
  }
  
  .cell-index {
    width: 40px;
  }
  
  .index-number {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  
  .cell-name {
    width: 150px;
    min-width: 120px;
  }
  
  .name-text {
    font-size: 13px;
  }
  
  /* 隐藏标签列 */
  .cell-tags {
    display: none;
  }
  
  /* 隐藏时间列 */
  .cell-time {
    display: none;
  }
  
  /* 隐藏链接列 */
  .cell-link {
    display: none;
  }
  
  .cell-status {
    width: 60px;
  }
  
  .status-badge-compact {
    font-size: 10px;
    padding: 2px 6px;
  }
  
  .cell-cloud {
    width: 75px;
  }
  
  .cloud-badge {
    font-size: 10px;
    padding: 3px 6px;
  }
  
  .cell-save,
  .cell-task {
    width: 70px;
  }
  
  .btn-action-compact span {
    display: none; /* 移动端只显示图标 */
  }
  
  .btn-action-compact {
    min-width: 32px;
    width: 32px;
    height: 32px;
    padding: 0;
  }
  
  .btn-action-compact i {
    margin: 0;
    font-size: 14px;
  }
  
  .empty-state {
    padding: 60px 20px;
  }
  
  .empty-icon {
    font-size: 60px;
  }
  
  .empty-state h3 {
    font-size: 20px;
  }
  
  .empty-state p {
    font-size: 14px;
  }
}

/* 超小屏幕 - 进一步简化 */
@media (max-width: 480px) {
  .result-card-table {
    padding: 6px 4px;
    gap: 4px;
  }
  
  .cell-checkbox {
    width: 28px;
  }
  
  .cell-index {
    width: 35px;
  }
  
  .index-number {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }
  
  .cell-name {
    width: 120px;
    min-width: 100px;
  }
  
  .cell-name i {
    display: none; /* 隐藏文件夹图标 */
  }
  
  .name-text {
    font-size: 12px;
  }
  
  .cell-status {
    width: 50px;
  }
  
  .status-badge-compact {
    font-size: 9px;
    padding: 2px 4px;
  }
  
  .status-badge-compact i {
    font-size: 10px;
  }
  
  .cell-cloud {
    width: 65px;
  }
  
  .cloud-badge {
    font-size: 9px;
    padding: 2px 5px;
  }
  
  .cell-save,
  .cell-task {
    width: 28px;
    min-width: 28px;
  }
  
  .btn-action-compact {
    min-width: 28px;
    width: 28px;
    height: 28px;
  }
  
  .btn-action-compact i {
    font-size: 12px;
  }
}

/* ============ 双弹窗交互样式 ============ */

/* 转存配置弹窗（主弹窗） */
.pansearch-save-modal {
  transition: transform 0.3s ease-in-out, margin-top 0.3s ease-in-out;
  max-width: 500px;
}

.pansearch-save-content {
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

/* 主弹窗收缩状态 */
.pansearch-save-modal.modal-shrink {
  transform: translateY(-120px);
  margin-top: -60px;
}

/* 保存路径输入框状态 */
.save-path-input {
  transition: all 0.3s ease;
}

.save-path-input.path-updated {
  border-color: #007bff;
  background-color: #e7f3ff;
  animation: pathUpdateFlash 0.5s ease;
}

@keyframes pathUpdateFlash {
  0% {
    background-color: #e7f3ff;
    border-color: #007bff;
  }
  50% {
    background-color: #cce5ff;
    border-color: #0056b3;
  }
  100% {
    background-color: #e7f3ff;
    border-color: #007bff;
  }
}

/* 文件夹选择弹窗（次级弹窗） */
.folder-selector-modal {
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  max-width: 500px;
  margin-top: 260px !important;
}

.folder-selector-content {
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

/* 文件夹选择弹窗显示动画 */
#folderSelectorModal.show .folder-selector-modal {
  animation: slideUpFadeIn 0.3s ease-in-out;
}

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

/* 文件夹选择弹窗隐藏动画 */
#folderSelectorModal.fade:not(.show) .folder-selector-modal {
  animation: slideDownFadeOut 0.3s ease-in-out;
}

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

/* 文件夹列表容器 */
.folder-list-container {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  max-height: 300px;
  overflow-y: auto;
  background: #fff;
}

.folder-list {
  display: flex;
  flex-direction: column;
}

/* 文件夹项 */
.folder-item {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
  position: relative;
}

.folder-item:last-child {
  border-bottom: none;
}

.folder-item:hover {
  background: #f8f9fa;
}

.folder-item.folder-selected {
  background: #e7f3ff;
  border-left: 3px solid #007bff;
}

.folder-item.folder-selected::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #007bff;
}

.folder-item i.bi-folder-fill {
  font-size: 20px;
  flex-shrink: 0;
}

.folder-item .folder-name {
  flex: 1;
  font-size: 14px;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.folder-item i.bi-chevron-right {
  font-size: 12px;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.folder-item:hover i.bi-chevron-right {
  opacity: 1;
}

/* 面包屑导航 */
.folder-selector-modal .breadcrumb {
  background: #f8f9fa;
  padding: 10px 15px;
  margin-bottom: 0;
  border-radius: 6px;
  font-size: 13px;
}

.folder-selector-modal .breadcrumb-item {
  cursor: pointer;
}

.folder-selector-modal .breadcrumb-item a {
  color: #007bff;
  text-decoration: none;
  transition: color 0.2s;
}

.folder-selector-modal .breadcrumb-item a:hover {
  color: #0056b3;
  text-decoration: underline;
}

.folder-selector-modal .breadcrumb-item.active {
  color: #6c757d;
}

/* 自定义子目录输入 */
.custom-subdir-section {
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px dashed #dee2e6;
}

.custom-subdir-input {
  transition: all 0.2s ease;
}

.custom-subdir-input:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.custom-subdir-input.is-invalid {
  border-color: #dc3545;
}

.custom-subdir-input.is-invalid:focus {
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* 弹窗底部信息栏 */
.folder-selector-modal .modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: #f8f9fa;
}

.footer-info {
  flex: 1;
  text-align: left;
}

.footer-info i {
  margin-right: 5px;
}

.footer-actions {
  display: flex;
  gap: 8px;
}

/* 双弹窗背景遮罩 */
#folderSelectorModal .modal-backdrop {
  background-color: rgba(0, 0, 0, 0.2);
}

/* 按钮样式优化 */
.btn-select-folder {
  transition: all 0.2s ease;
}

.btn-select-folder:hover:not(:disabled) {
  background-color: #007bff;
  border-color: #007bff;
  color: #fff;
}

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

/* 响应式调整 */
@media (max-width: 767px) {
  .pansearch-save-modal,
  .folder-selector-modal {
    max-width: 95%;
    margin: 10px auto;
  }
  
  .pansearch-save-modal.modal-shrink {
    transform: translateY(-80px);
    margin-top: -40px;
  }
  
  .folder-selector-modal {
    margin-top: 200px !important;
  }
  
  .folder-list-container {
    max-height: 250px;
  }
  
  .footer-info {
    display: none;
  }
  
  .folder-selector-modal .modal-footer {
    justify-content: flex-end;
  }
}

/* ============ 筛选面板样式 ============ */
.filter-panel {
  background: #fff;
  border-radius: 8px;
  padding: 15px 20px;
  margin: 0 0 20px 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.filter-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

.filter-item {
  display: flex;
  align-items: center;
}

/* 滑动开关样式 */
.switch-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  margin: 0;
}

.switch-input {
  display: none;
}

.switch-slider {
  position: relative;
  width: 48px;
  height: 24px;
  background: #ddd;
  border-radius: 24px;
  transition: background 0.3s ease;
  margin-right: 10px;
}

.switch-slider::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.switch-input:checked + .switch-slider {
  background: #28a745;
}

.switch-input:checked + .switch-slider::before {
  transform: translateX(24px);
}

.switch-text {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

/* 统计信息样式 */
.filter-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  color: #666;
}

.stat-item i {
  font-size: 16px;
}

.stat-item strong {
  color: #333;
  font-weight: 600;
}

/* ============ 链接状态标签样式 ============ */
.link-status-inline {
  margin-left: auto;
  margin-right: 10px;
}

.status-badge-inline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.status-badge-inline.status-valid {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.status-badge-inline.status-invalid {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.status-badge-inline.status-checking {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.status-badge-inline.status-unknown {
  background: #e2e3e5;
  color: #6c757d;
  border: 1px solid #d6d8db;
}

/* 旋转动画 */
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.rotating {
  animation: rotate 1s linear infinite;
}

/* 响应式调整 */
@media (max-width: 767px) {
  .filter-container {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .filter-stats {
    width: 100%;
    justify-content: space-between;
  }
  
  .stat-item {
    font-size: 13px;
  }
  
  .link-status-inline {
    margin-left: 10px;
    margin-right: 0;
  }
  
  .status-badge-inline {
    font-size: 12px;
    padding: 3px 10px;
  }
}

/* ============ 复选框样式 ============ */
.checkbox-container {
  display: inline-flex;
  align-items: center;
  position: relative;
  cursor: pointer;
  user-select: none;
  margin: 0;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: relative;
  height: 20px;
  width: 20px;
  background-color: #fff;
  border: 2px solid #ddd;
  border-radius: 4px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.checkbox-container:hover .checkmark {
  border-color: #007bff;
}

.checkbox-container input:checked ~ .checkmark {
  background-color: #007bff;
  border-color: #007bff;
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark:after {
  display: block;
}

.checkbox-label {
  margin-left: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

/* 表格式布局的复选框 */
.result-card-table .checkbox-container {
  padding: 0;
  margin: 0;
}

.result-card-table .checkmark {
  height: 18px;
  width: 18px;
}

.result-card-table .checkmark:after {
  left: 5px;
  top: 2px;
  width: 4px;
  height: 9px;
}

/* ============ 批量操作栏样式 ============ */
.batch-operation-bar {
  background: #fff;
  border-radius: 8px;
  padding: 12px 20px;
  margin-bottom: 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.batch-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.select-all-checkbox {
  padding: 5px 10px;
  background: #f8f9fa;
  border-radius: 6px;
  transition: all 0.2s;
}

.select-all-checkbox:hover {
  background: #e9ecef;
}

.selected-count {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #666;
  padding: 6px 12px;
  background: #e7f3ff;
  border-radius: 6px;
  border: 1px solid #b3d9ff;
}

.selected-count i {
  color: #007bff;
  font-size: 16px;
}

.selected-count strong {
  color: #007bff;
  font-weight: 600;
}

.batch-right {
  display: flex;
  gap: 10px;
}

.btn-batch-save {
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.btn-batch-save:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

.btn-batch-save:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ============ 新三列弹窗布局样式 ============ */
.pansearch-save-modal-new {
  max-width: 1000px;
  transition: all 0.3s ease;
}

.pansearch-save-content-new {
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.modal-body-three-columns {
  display: flex;
  gap: 0;
  padding: 0;
  max-height: 600px;
  min-height: 400px;
}

/* 左侧：待转存资源列表 */
.save-modal-left {
  width: 280px;
  border-right: 1px solid #e0e0e0;
  background: #f8f9fa;
  display: flex;
  flex-direction: column;
}

.section-header {
  padding: 12px 15px;
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  flex-shrink: 0;
}

.section-header i {
  color: #007bff;
  font-size: 16px;
}

.resource-count {
  margin-left: auto;
  background: #007bff;
  color: #fff;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
}

.resource-list-container {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
}

.resource-item {
  background: #fff;
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  border: 1px solid #e0e0e0;
}

.resource-item:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.resource-item-content {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.resource-icon {
  color: #007bff;
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.resource-info {
  flex: 1;
  min-width: 0;
}

.resource-name {
  font-size: 13px;
  font-weight: 500;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.4;
}

.resource-meta {
  margin-top: 4px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.meta-tag {
  font-size: 11px;
  color: #666;
  background: #f0f0f0;
  padding: 2px 6px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.meta-tag i {
  font-size: 10px;
}

.btn-remove-resource {
  flex-shrink: 0;
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-remove-resource:hover {
  background: #fee;
  color: #dc3545;
}

.empty-resource-list {
  text-align: center;
  padding: 40px 20px;
  color: #999;
}

.empty-resource-list i {
  font-size: 48px;
  margin-bottom: 10px;
  display: block;
  color: #ddd;
}

.empty-resource-list p {
  font-size: 13px;
  margin: 0;
}

/* 中间：配置区 */
.save-modal-middle {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.config-content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.current-path-display {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #333;
}

.current-path-display i {
  color: #28a745;
  font-size: 16px;
  flex-shrink: 0;
}

.current-path-display span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.btn-select-folder-new {
  transition: all 0.2s;
  font-weight: 500;
}

.btn-select-folder-new:hover:not(:disabled) {
  background: #007bff;
  color: #fff;
  transform: translateY(-1px);
}

/* 右侧：目录树 */
.save-modal-right {
  width: 0;
  opacity: 0;
  overflow: hidden;
  border-left: 1px solid #e0e0e0;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.save-modal-right.folder-tree-visible {
  width: 300px;
  opacity: 1;
}

.folder-tree-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 15px;
  overflow: hidden;
}

.breadcrumb-nav {
  margin-bottom: 10px;
  flex-shrink: 0;
}

.breadcrumb-nav .breadcrumb {
  background: #f8f9fa;
  padding: 8px 12px;
  margin-bottom: 0;
  border-radius: 6px;
  font-size: 12px;
}

.breadcrumb-nav .breadcrumb-item a {
  color: #007bff;
  text-decoration: none;
}

.breadcrumb-nav .breadcrumb-item a:hover {
  text-decoration: underline;
}

.folder-list-wrapper {
  flex: 1;
  overflow-y: auto;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  margin-bottom: 10px;
}

.folder-list-new {
  display: flex;
  flex-direction: column;
}

.folder-item-new {
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
}

.folder-item-new:last-child {
  border-bottom: none;
}

.folder-item-new:hover {
  background: #f8f9fa;
}

.folder-item-new.folder-selected {
  background: #e7f3ff;
  border-left: 3px solid #007bff;
}

.folder-item-new i.bi-folder-fill {
  color: #ffc107;
  font-size: 18px;
  flex-shrink: 0;
}

.folder-item-new .folder-name {
  flex: 1;
  font-size: 13px;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.folder-item-new i.bi-chevron-right {
  color: #999;
  font-size: 12px;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.2s;
}

.folder-item-new:hover i.bi-chevron-right {
  opacity: 1;
}

.custom-subdir-section-new {
  padding: 12px;
  background: #f8f9fa;
  border-radius: 6px;
  border: 1px dashed #dee2e6;
  flex-shrink: 0;
}

.custom-subdir-section-new label {
  color: #666;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}

.custom-subdir-section-new label i {
  color: #007bff;
}

/* ============ 响应式调整 ============ */
@media (max-width: 992px) {
  .pansearch-save-modal-new {
    max-width: 95%;
  }
  
  .modal-body-three-columns {
    max-height: 500px;
  }
  
  .save-modal-left {
    width: 240px;
  }
  
  .save-modal-right.folder-tree-visible {
    width: 260px;
  }
}

@media (max-width: 767px) {
  .batch-operation-bar {
    padding: 10px 15px;
  }
  
  .batch-left {
    gap: 10px;
  }
  
  .selected-count {
    font-size: 13px;
    padding: 5px 10px;
  }
  
  .btn-batch-save {
    padding: 6px 15px;
    font-size: 13px;
  }
  
  .pansearch-save-modal-new {
    max-width: 100%;
    margin: 10px;
  }
  
  .modal-body-three-columns {
    flex-direction: column;
    max-height: 70vh;
  }
  
  .save-modal-left {
    width: 100%;
    max-height: 200px;
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
  }
  
  .save-modal-middle {
    width: 100%;
    min-width: auto;
  }
  
  .save-modal-right {
    width: 0;
    display: none;
  }
  
  .save-modal-right.folder-tree-visible {
    width: 100%;
    display: flex;
    max-height: 300px;
    border-left: none;
    border-top: 1px solid #e0e0e0;
  }
  
  .result-checkbox {
    padding: 0 3px;
  }
  
  .result-checkbox .checkmark {
    height: 16px;
    width: 16px;
  }
}

@media (max-width: 480px) {
  .batch-operation-bar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .batch-left,
  .batch-right {
    width: 100%;
    justify-content: space-between;
  }
  
  .btn-batch-save {
    width: 100%;
    justify-content: center;
  }
}

/* ============ 统一筛选栏样式 ============ */
.unified-filter-bar {
  background: #fff;
  border-radius: 8px;
  padding: 12px 20px;
  margin-bottom: 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.filter-bar-left {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  flex: 1;
}

.filter-bar-right {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

/* 云盘类型筛选按钮组 */
.cloud-type-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-cloud-filter {
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid #dee2e6;
  background: #fff;
  color: #495057;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-cloud-filter:hover {
  background: #f8f9fa;
  border-color: #adb5bd;
  transform: translateY(-1px);
}

.btn-cloud-filter.active {
  background: #007bff;
  color: #fff;
  border-color: #007bff;
  box-shadow: 0 2px 4px rgba(0,123,255,0.3);
}

.btn-cloud-filter strong {
  font-weight: 600;
}

/* 内联开关样式 */
.switch-label-inline {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  margin: 0;
  padding: 5px 12px;
  background: #f8f9fa;
  border-radius: 6px;
  transition: all 0.2s;
}

.switch-label-inline:hover {
  background: #e9ecef;
}

.switch-label-inline .switch-input {
  position: relative;
  width: 40px;
  height: 20px;
  appearance: none;
  background: #ced4da;
  border-radius: 10px;
  margin-right: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

.switch-label-inline .switch-input:checked {
  background: #28a745;
}

.switch-label-inline .switch-input::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: all 0.3s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.switch-label-inline .switch-input:checked::before {
  left: 22px;
}

.switch-label-inline .switch-text {
  font-size: 14px;
  font-weight: 500;
  color: #495057;
}

/* 状态统计样式 */
.status-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 5px 12px;
  background: #f8f9fa;
  border-radius: 6px;
}

.status-stats .stat-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
}

.stat-item.stat-valid {
  color: #28a745;
}

.stat-item.stat-invalid {
  color: #dc3545;
}

.stat-item.stat-checking {
  color: #6c757d;
}

.stat-item.stat-unknown {
  color: #adb5bd;
}

.stat-item i {
  font-size: 16px;
}

.stat-item strong {
  font-weight: 600;
}

/* 批量操作提示条 */
.batch-operation-hint {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-radius: 8px;
  padding: 10px 20px;
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  animation: slideInDown 0.3s ease-out;
}

.hint-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
}

.hint-left i {
  font-size: 18px;
}

.hint-right .btn {
  background: #fff;
  color: #667eea;
  border: none;
  font-weight: 600;
  padding: 6px 16px;
  transition: all 0.2s;
}

.hint-right .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

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

/* 旋转动画 */
@keyframes rotating {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.rotating {
  animation: rotating 1s linear infinite;
}

/* 响应式样式 */
@media (max-width: 991px) {
  .unified-filter-bar {
    padding: 10px 15px;
  }
  
  .filter-bar-left,
  .filter-bar-right {
    gap: 10px;
  }
  
  .cloud-type-filters {
    gap: 6px;
  }
  
  .btn-cloud-filter {
    padding: 5px 12px;
    font-size: 13px;
  }
}

@media (max-width: 767px) {
  .unified-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-bar-left,
  .filter-bar-right {
    width: 100%;
    justify-content: flex-start;
  }
  
  .cloud-type-filters {
    width: 100%;
    justify-content: flex-start;
  }
  
  .status-stats {
    justify-content: space-between;
    width: 100%;
  }
  
  .batch-operation-hint {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  
  .hint-right .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .btn-cloud-filter {
    padding: 4px 10px;
    font-size: 12px;
  }
  
  .switch-label-inline .switch-text {
    font-size: 13px;
  }
  
  .status-stats .stat-item {
    font-size: 13px;
  }
}

