:root {
  --primary-color: #8a4bff;
  --primary-light: #b39ddb;
  --primary-dark: #6c3ce0;
  --accent-color: #ffd7e4;
  --success-color: #67c23a;
  --warning-color: #e6a23c;
  --danger-color: #f56c6c;
  --bg-gradient: linear-gradient(135deg, #ffd7e4 0%, #c8f1ff 100%);
  --card-bg: rgba(255, 255, 255, 0.88);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  background: var(--bg-gradient);
  background-attachment: fixed;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans SC', sans-serif;
  color: #333;
  margin: 0;
  padding: 0;
}

.header-content {
  position: fixed;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 999;
  height: clamp(48px, 8vh, 64px);
  display: flex;
  align-items: center;
  padding: 12px 24px;
  background-color: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  border-radius: 16px;
  will-change: transform;
}

.header-content:hover {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 6px 20px rgba(138, 75, 255, 0.1);
}

.title {
  font-size: clamp(1.2em, 2vw, 1.8em);
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
  margin-right: 4px;
  color: #333;
}

.title:hover {
  color: #B39DDB; /* 使用柔和的淡紫色 */
}

.search-card {
  margin-left: auto;
  margin-right: 16px;
}

.stats {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: clamp(0.9em, 1.5vw, 1.2em);
  background: rgba(255, 255, 255, 0.9);
  margin-right: 8px;
  padding: 2px 8px;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  color: #333;
}

.stats:hover {
  background-color: #f0eaf8; /* 柔和的淡紫色 */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transform: scale(1.02);
  color: #B39DDB;
}

.upload-icon {
  margin-right: 10px;
  font-size: clamp(1.2em, 1.5vw, 1.6em);
  transition: color 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
  color: inherit;
  cursor: pointer;
  border-radius: 50%;
  padding: 8px;
  background-color: rgba(179, 157, 219, 0.15);
  border: 1px solid transparent;
}

.header-content .actions {
  display: flex;
  align-items: center;
}

.header-content .actions i {
  font-size: clamp(1.2em, 1.5vw, 1.6em);
  cursor: pointer;
  transition: color 0.3s, transform 0.3s;
  color: #333;
  margin: 0 8px;
}

.header-content .actions i:hover {
  color: #B39DDB;
  transform: scale(1.1);
}

.header-content .actions .el-dropdown-link i {
  color: #333;
}

.header-content .actions .disabled {
  color: #bbb;
  pointer-events: none;
}

.header-content .actions .enabled {
  color: #B39DDB; /* 使用柔和的淡紫色 */
}

.search-card .el-input__inner {
  border-radius: 20px;
  width: clamp(200px, 25vw, 300px);
  height: clamp(30px, 5vh, 40px);
  font-size: 1.2em;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: width 0.3s;
}

.search-card .el-input__inner:focus {
  width: clamp(250px, 30vw, 400px);
}

.main-container {
  display: flex;
  flex-direction: column;
  margin-top: 20px;
  padding: 20px;
  min-height: calc(100vh - 80px);
}

.content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  padding: 10px;
  flex-grow: 1;
}

/* 图片卡片样式 */
.image-card {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--card-bg) !important;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  position: relative;
  object-fit: cover;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  will-change: transform;
  contain: layout style paint;
}

.image-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(138, 75, 255, 0.12);
  cursor: pointer;
}

.image-card .el-checkbox {
  position: absolute;
  top: 10px;
  right: 10px;
  transform: scale(1.5);
  z-index: 10;
  margin: 0; /* 重要：移除默认边距 */
  padding: 0; /* 重要：移除默认内边距 */
}

.el-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: opacity 0.3s ease;
}
.el-image:hover {
  opacity: 0.8;
}

.card-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 10px;
  background: rgba(0, 0, 0, 0.6);
  text-align: center;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.el-card, .el-card__body{
  border: none !important;
}
.el-card__body{
  padding: 14px !important;
}
.el-card:hover .image-overlay {
  opacity: 1;
}

.overlay-buttons {
  display: flex;
  gap: 10px;
  pointer-events: auto;
}

.pagination-container {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.collect-icon {
  position: absolute;
  top: -1.3px;
  left: 10px;
  cursor: pointer;
  font-size: 1.5em;
  z-index: 10;
  transition: color 0.3s ease, transform 0.3s ease;
}
.collect-icon:hover {transform: scale(1.2);}
.liked {color: #FFD7E4;}
.not-liked {color: #b39edb80;}

.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
  font-size: 0.9em;
  color: #555; /* 字体颜色改为黑色 */
}

.footer a {
  color: #555; /* 链接颜色 */
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #333; /* 悬停时的链接颜色改为黑色 */
}

.footer i {
  color: #333; /* 图标颜色改为黑色 */
}

/* 适配移动端 */
@media (max-width: 768px) {
  .header-content {
    top: 8px;
    left: 8px;
    right: 8px;
    padding: 10px 14px;
    border-radius: 14px;
  }
  .content {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
  }
  .stats-text{display: none;}
  .stats{margin: 0 4px;}
  .stats, .actions i{margin: 0;}
  .el-card{aspect-ratio: unset; min-height: 180px;}
  .el-card__body{padding: 0;}
  .search-card {display: none;}
  .header-content .actions i{margin: 0 4px;}
  .main-container {
    margin-top: 76px;
    padding: 12px;
  }
}

@media (max-width: 480px) {
  .content {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .header-content .actions i {
    font-size: 1em;
    margin: 0 3px;
  }
}

/* 音视频卡片基础样式 */
.video-card, .audio-card, .file-card {
  background: linear-gradient(135deg, rgba(138, 75, 255, 0.9) 0%, rgba(109, 130, 255, 0.9) 100%);
  border: none;
  border-radius: 20px !important;
  overflow: hidden;
  position: relative;
  justify-content: center;
  align-items: center;
  box-shadow: 0 8px 24px rgba(138, 75, 255, 0.15);
  transition: var(--transition);
}

.video-card {
  background: linear-gradient(135deg, #8EC5FC 0%, #E0C3FC 100%);
}

.video-card .el-card__body{
  padding: 0 !important;
}

.audio-card.selected, .video-card.selected, .file-card.selected {
  background: linear-gradient(135deg, rgba(138, 75, 255, 0.85) 0%, rgba(255, 215, 228, 0.85) 100%);
}

.video-card:hover, .audio-card:hover, .file-card:hover {
  transform: scale(1.02);
}

.video-content, .audio-content, .file-content {
  padding: 14px 14px 16px;
  color: white;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 240px;
}

.video-content{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.audio-header, .file-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.audio-avatar, .file-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  padding: 8px;
  margin-right: 15px;
}

.file-avatar{
  background: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

.audio-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.audio-info, .file-info {
  flex: 1;
  min-width: 0;
}

.video-title, .audio-title, .file-title {
  font-size: 16px;
  font-weight: 500;
  max-width: 100%;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.video-title{
  margin: 6px 0;
  font-size: 0.9em;
}

.audio-subtitle, .file-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

/* 自定义audio元素样式 */
.custom-audio-player {
  width: 100%;
  height: 42px;
  margin: 15px 0;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.2);
}

.video-controls, .audio-controls, .file-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.like-btn i, .select-btn i {
  font-size: 1.2em;
}

.like-btn .liked, .select-btn .selected {
  color: #FFD7E4;
}

.control-btn {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
  z-index: 1; /* 确保按钮可点击 */
}

.control-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* 状态面板 - 带标签的状态指示器 */
.status-panel {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin: 0 8px;
}

.status-panel:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.status-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #666;
  font-weight: 500;
}

.status-item i {
  font-size: 8px !important;
  margin: 0 !important;
}

.status-item span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* 返回首页按钮 */
.home-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #8a4bff 0%, #b39ddb 100%);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-right: 12px;
  box-shadow: 0 2px 8px rgba(138, 75, 255, 0.3);
}

.home-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(138, 75, 255, 0.4);
}

.home-btn i {
  color: white;
  font-size: 16px;
}

/* 批量操作工具栏 */

.batch-toolbar {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(138, 75, 255, 0.25);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(138, 75, 255, 0.25);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1000;
  cursor: grab;
  user-select: none;
}

.batch-toolbar.is-dragging {
  cursor: grabbing;
  box-shadow: 0 18px 34px rgba(138, 75, 255, 0.3);
}

.batch-float-enter-active,
.batch-float-leave-active {
  transition: all 0.25s ease;
}

.batch-float-enter,
.batch-float-leave-to {
  opacity: 0;
  transform: translate(-50%, 12px);
}

.batch-count {
  font-size: 13px;
  font-weight: 600;
  color: #8a4bff;
  white-space: nowrap;
}

.batch-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.batch-btn {
  border-radius: 999px !important;
  font-weight: 600;
  border: none !important;
}

.batch-btn-copy {
  background: linear-gradient(135deg, #6a9eff 0%, #8ab4ff 100%) !important;
  color: #fff !important;
}

.batch-btn-move {
  background: linear-gradient(135deg, #6f8bff 0%, #94a8ff 100%) !important;
  color: #fff !important;
}

.batch-btn-delete {
  background: linear-gradient(135deg, #ff7b7b 0%, #ff9f9f 100%) !important;
  color: #fff !important;
}

.batch-btn-download {
  background: linear-gradient(135deg, #35d49b 0%, #7ee6c1 100%) !important;
  color: #fff !important;
}

.batch-btn-cancel {
  background: rgba(80, 80, 80, 0.15) !important;
  color: #3b3b3b !important;
}

.batch-shortcuts {
  font-size: 11px;
  color: rgba(55, 55, 55, 0.7);
  margin-left: 4px;
  white-space: nowrap;
}

.batch-toolbar .el-button-group .el-button {
  border-radius: 0;
}

.batch-toolbar .el-button-group .el-button:first-child {
  border-radius: 16px 0 0 16px;
}

.batch-toolbar .el-button-group .el-button:last-child {
  border-radius: 0 16px 16px 0;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .audio-card { max-height: none; }
  .custom-audio-player { height: 32px; }
  .status-panel {
    padding: 4px 10px;
    gap: 8px;
  }
  .status-item span {
    display: none;
  }
  .batch-toolbar {
    bottom: 18px;
    padding: 8px 14px;
    gap: 10px;
    max-width: 92vw;
    flex-wrap: wrap;
    justify-content: center;
  }
  .batch-shortcuts {
    width: 100%;
    text-align: center;
  }
  .home-btn {
    width: 32px;
    height: 32px;
    margin-right: 8px;
  }
  .title {
    font-size: 1em;
    margin-right: 0;
  }
  .header-content .actions {
    flex-wrap: wrap;
    gap: 4px;
    justify-content: flex-end;
  }
  .el-dropdown-link {
    padding: 4px;
  }
}

@media (max-width: 480px) {
  .header-content {
    flex-wrap: wrap;
    height: auto;
    padding: 8px 10px;
    gap: 8px;
  }
  .title {
    font-size: 0.9em;
    order: 1;
  }
  .home-btn {
    order: 0;
    width: 28px;
    height: 28px;
  }
  .stats {
    order: 2;
    font-size: 0.8em;
    padding: 4px 8px;
  }
  .header-content .actions {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 2px;
    padding-top: 6px;
    border-top: 1px solid rgba(0,0,0,0.05);
    margin-top: 4px;
  }
  .header-content .actions i {
    font-size: 0.95em;
    margin: 0 2px;
    padding: 4px;
  }
  .main-container {
    margin-top: 100px;
    padding: 8px;
  }
  .content {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .image-card {
    border-radius: 12px;
  }
  .card-footer {
    font-size: 0.75em;
    padding: 6px 8px;
  }
  .overlay-buttons {
    flex-direction: column;
    gap: 6px;
  }
  .overlay-buttons .el-button {
    padding: 4px 10px;
    font-size: 12px;
  }
  .control-btn {
    width: 32px;
    height: 32px;
  }
  .video-controls, .audio-controls, .file-controls {
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .pagination-container {
    padding: 0 8px;
  }
  .el-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  .batch-toolbar {
    bottom: 14px;
    max-width: 95%;
    padding: 6px 12px;
  }
  .batch-toolbar .el-button {
    padding: 6px 10px;
    font-size: 12px;
  }
  .batch-count {
    font-size: 11px;
  }
  
  /* 移动端禁用高消耗效果 */
  .header-content {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background-color: rgba(255, 255, 255, 0.98);
  }
  
  .image-card:hover {
    transform: none;
  }
  
  .image-card:hover img {
    transform: none;
  }
}

/* 用户偏好减少动画 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.website-edit-dialog .el-textarea__inner{
  height: 240px !important;
}

/* Admin UI Refresh */
:root {
  --admin-ink: #142033;
  --admin-muted: #627083;
  --admin-surface: rgba(255, 255, 255, 0.84);
  --admin-line: rgba(20, 32, 51, 0.12);
  --admin-brand: #0f766e;
  --admin-brand-deep: #0b4f4a;
  --admin-accent: #f59e0b;
}

body {
  font-family: "IBM Plex Sans", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 8% 10%, rgba(245, 158, 11, 0.22), transparent 34%),
    radial-gradient(circle at 92% 8%, rgba(15, 118, 110, 0.2), transparent 30%),
    linear-gradient(145deg, #f4ecdf 0%, #dbeeff 54%, #f8fafc 100%);
  color: var(--admin-ink);
}

.header-content {
  border-radius: 18px;
  border: 1px solid var(--admin-line);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 38px rgba(20, 32, 51, 0.12);
}

.title {
  letter-spacing: 0.02em;
  color: var(--admin-ink);
}

.title:hover {
  color: var(--admin-brand);
}

.search-card .el-input__inner {
  border: 1px solid rgba(15, 118, 110, 0.2);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: none;
}

.search-card .el-input__inner:focus {
  border-color: rgba(15, 118, 110, 0.42);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.stats {
  cursor: default;
  margin-right: 12px;
  padding: 8px 14px;
  border-radius: 14px;
  border: 1px solid rgba(15, 118, 110, 0.24);
  background: linear-gradient(145deg, rgba(15, 118, 110, 0.16), rgba(15, 118, 110, 0.08));
  color: var(--admin-brand-deep);
  box-shadow: none;
}

.stats:hover {
  transform: none;
  color: var(--admin-brand-deep);
  background: linear-gradient(145deg, rgba(15, 118, 110, 0.18), rgba(15, 118, 110, 0.1));
  box-shadow: none;
}

.stats-icon {
  margin-right: 8px;
  color: var(--admin-brand);
}

.stats-loaded {
  margin-left: 10px;
  padding-left: 10px;
  border-left: 1px solid rgba(15, 118, 110, 0.3);
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 600;
}

.header-content .actions > i,
.header-content .actions > .el-dropdown > .el-dropdown-link,
.header-content .actions > .theme-admin-toggle {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid var(--admin-line);
  background: rgba(255, 255, 255, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.header-content .actions > i:hover,
.header-content .actions > .el-dropdown > .el-dropdown-link:hover,
.header-content .actions > .theme-admin-toggle:hover {
  color: var(--admin-brand) !important;
  border-color: rgba(15, 118, 110, 0.35);
  box-shadow: 0 8px 16px rgba(15, 118, 110, 0.15);
}

.home-btn {
  background: linear-gradient(145deg, #0f766e, #129a8f);
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.35);
}

.status-panel {
  border: 1px solid var(--admin-line);
  box-shadow: none;
}

.content {
  gap: 18px;
}

.image-card,
.video-card,
.audio-card,
.file-card {
  border: 1px solid var(--admin-line) !important;
  border-radius: 18px !important;
  box-shadow: 0 10px 24px rgba(20, 32, 51, 0.12);
}

.image-card {
  background: var(--admin-surface) !important;
}

.image-card:hover,
.video-card:hover,
.audio-card:hover,
.file-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 30px rgba(20, 32, 51, 0.18);
}

.video-card,
.audio-card,
.file-card {
  background: linear-gradient(155deg, rgba(11, 79, 74, 0.92), rgba(15, 118, 110, 0.82)) !important;
}

.control-btn {
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.26);
}

.control-btn:hover {
  background: rgba(255, 255, 255, 0.36);
}

.collect-icon .liked {
  color: #f59e0b;
}

.pagination-container .el-pager li,
.pagination-container .btn-prev,
.pagination-container .btn-next {
  border-radius: 10px !important;
}

.load-more-end {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid rgba(15, 118, 110, 0.25);
  border-radius: 999px;
  color: var(--admin-brand-deep);
  background: rgba(15, 118, 110, 0.1);
  font-size: 13px;
  font-weight: 600;
}

.batch-toolbar {
  border: 1px solid rgba(15, 118, 110, 0.3);
  box-shadow: 0 14px 32px rgba(15, 118, 110, 0.2);
}

@media (max-width: 768px) {
  .header-content {
    border-radius: 14px;
  }

  .stats {
    padding: 6px 10px;
  }

  .stats-loaded {
    display: none;
  }

  .header-content .actions > i,
  .header-content .actions > .el-dropdown > .el-dropdown-link,
  .header-content .actions > .theme-admin-toggle {
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 900px) {
  .header-content .actions {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    row-gap: 8px !important;
  }

  .header-content .actions > .status-panel {
    order: 120 !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    margin: 6px 0 0 !important;
  }
}

/* Admin Console Refresh v2 */
:root {
  --admin-shell: rgba(255, 255, 255, 0.72);
  --admin-shell-strong: rgba(255, 255, 255, 0.9);
  --admin-shell-soft: rgba(246, 249, 252, 0.82);
  --admin-shadow-lg: 0 26px 60px rgba(15, 23, 42, 0.14);
  --admin-shadow-md: 0 16px 32px rgba(15, 23, 42, 0.1);
  --nav-height: 188px;
  --nav-offset: 204px;
}

html[data-theme="dark"] {
  --admin-ink: #edf4ff;
  --admin-muted: #9caecc;
  --admin-line: rgba(148, 163, 184, 0.2);
  --admin-brand: #49c5bb;
  --admin-brand-deep: #d9fffb;
  --admin-surface: rgba(17, 24, 39, 0.82);
  --admin-shell: rgba(8, 13, 24, 0.72);
  --admin-shell-strong: rgba(13, 19, 34, 0.9);
  --admin-shell-soft: rgba(16, 24, 40, 0.84);
  --admin-shadow-lg: 0 26px 60px rgba(0, 0, 0, 0.42);
  --admin-shadow-md: 0 16px 32px rgba(0, 0, 0, 0.26);
}

body {
  background:
    radial-gradient(circle at 8% 14%, rgba(56, 189, 248, 0.16), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(245, 158, 11, 0.18), transparent 22%),
    linear-gradient(155deg, #f4f1e8 0%, #e7f0f6 44%, #f8fafc 100%);
}

html[data-theme="dark"] body {
  background:
    radial-gradient(circle at 12% 12%, rgba(56, 189, 248, 0.14), transparent 24%),
    radial-gradient(circle at 86% 8%, rgba(34, 197, 94, 0.12), transparent 20%),
    linear-gradient(155deg, #08101c 0%, #101a2f 46%, #0d1424 100%);
}

.el-header {
  height: auto !important;
  padding: 0 !important;
}

.header-content {
  top: 16px;
  left: 16px;
  right: 16px;
  height: auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(280px, 1fr) auto;
  grid-template-areas:
    "brand search stats"
    "actions actions actions";
  gap: 14px 16px;
  padding: 18px 20px;
  border-radius: 26px;
  border: 1px solid var(--admin-line);
  background: linear-gradient(180deg, var(--admin-shell-strong), var(--admin-shell));
  box-shadow: var(--admin-shadow-lg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-brand {
  grid-area: brand;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--admin-muted);
}

.title {
  margin-right: 0;
  font-size: clamp(1.22rem, 1.65vw, 1.72rem);
  font-weight: 700;
  line-height: 1.08;
  white-space: nowrap;
}

.header-subtitle {
  font-size: 13px;
  color: var(--admin-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-search {
  grid-area: search;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 18px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  background: rgba(255, 255, 255, 0.54);
}

html[data-theme="dark"] .header-search {
  border-color: rgba(148, 163, 184, 0.14);
  background: rgba(13, 20, 35, 0.72);
}

.header-chip-label {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  color: var(--admin-brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

html[data-theme="dark"] .header-chip-label {
  background: rgba(73, 197, 187, 0.16);
}

.search-card {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}

.search-card .el-input__inner {
  width: 100% !important;
  height: 44px;
  border-radius: 14px;
  padding: 0 14px;
  font-size: 14px;
}

.stats {
  grid-area: stats;
  min-width: 220px;
  margin-right: 0;
  padding: 12px 14px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  background: linear-gradient(145deg, rgba(15, 118, 110, 0.18), rgba(15, 118, 110, 0.08));
}

.stats-main {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.stats-text {
  font-weight: 700;
  white-space: nowrap;
  color: var(--admin-brand-deep);
}

.stats-loaded {
  margin-left: 0;
  padding-left: 12px;
  border-left: 1px solid rgba(15, 118, 110, 0.22);
  white-space: nowrap;
}

html[data-theme="dark"] .stats-text {
  color: var(--admin-ink);
}

html[data-theme="dark"] .header-content,
html[data-theme="dark"] .folder-sidebar,
html[data-theme="dark"] .folder-breadcrumb,
html[data-theme="dark"] .list-view-card {
  background: linear-gradient(180deg, var(--admin-shell-strong), var(--admin-shell));
}

html[data-theme="dark"] .header-search {
  background: rgba(13, 20, 35, 0.78);
}

html[data-theme="dark"] .search-card .el-input__inner {
  background: rgba(7, 12, 22, 0.92);
  color: var(--admin-ink);
  border-color: rgba(148, 163, 184, 0.16);
}

html[data-theme="dark"] .search-card .el-input__inner::placeholder {
  color: var(--admin-muted);
}

html[data-theme="dark"] .stats {
  background: linear-gradient(145deg, rgba(73, 197, 187, 0.2), rgba(73, 197, 187, 0.08));
}

.actions {
  grid-area: actions;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(15, 118, 110, 0.12);
}

html[data-theme="dark"] .actions {
  border-top-color: rgba(148, 163, 184, 0.14);
}

.action-group {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.action-group-primary {
  flex: 1 1 420px;
}

.action-group-secondary {
  flex: 1 1 220px;
}

.action-group-system {
  margin-left: auto;
}

.action-group-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(20, 32, 51, 0.06);
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[data-theme="dark"] .action-group-label {
  background: rgba(148, 163, 184, 0.12);
}

.header-content .action-group > .el-dropdown > .el-dropdown-link,
.header-content .action-group > i,
.header-content .action-group .el-tooltip {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--admin-line);
  background: var(--admin-shell-strong);
  box-shadow: var(--admin-shadow-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--admin-ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.header-content .action-group .el-tooltip {
  cursor: pointer;
}

.header-content .action-group > .el-dropdown > .el-dropdown-link:hover,
.header-content .action-group > i:hover,
.header-content .action-group .el-tooltip:hover {
  color: var(--admin-brand) !important;
  border-color: rgba(15, 118, 110, 0.32);
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.16);
  transform: translateY(-1px);
}

.header-content .action-group > i {
  margin: 0;
}

.status-panel {
  margin: 0;
  padding: 10px 14px;
  border-radius: 18px;
  border: 1px solid var(--admin-line);
  background: var(--admin-shell-soft);
  box-shadow: none;
  gap: 10px;
}

.status-panel:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.12);
}

.status-item {
  color: var(--admin-muted);
  font-size: 12px;
}

.main-container {
  margin-top: calc(var(--nav-offset, 204px) + 18px);
  padding: 16px 16px 36px;
  min-height: calc(100vh - 24px);
}

.admin-overview {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(340px, 1.2fr);
  gap: 16px;
  padding: 24px 26px;
  margin-bottom: 18px;
  border-radius: 28px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  background:
    radial-gradient(circle at 90% 18%, rgba(245, 158, 11, 0.15), transparent 24%),
    linear-gradient(140deg, rgba(255, 255, 255, 0.92), rgba(244, 250, 252, 0.78));
  box-shadow: var(--admin-shadow-lg);
}

.admin-overview-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.admin-overview-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--admin-brand);
}

.admin-overview-title {
  margin: 0;
  font-size: clamp(1.6rem, 2.5vw, 2.35rem);
  line-height: 1.05;
  color: var(--admin-ink);
}

.admin-overview-description {
  margin: 0;
  max-width: 52ch;
  color: var(--admin-muted);
  line-height: 1.65;
}

.admin-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-overview-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  min-height: 132px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  background: rgba(255, 255, 255, 0.72);
}

.admin-overview-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--admin-muted);
}

.admin-overview-card strong {
  font-size: 1.2rem;
  line-height: 1.2;
  color: var(--admin-ink);
}

.admin-overview-card small {
  color: var(--admin-muted);
  line-height: 1.5;
}

.disk-layout {
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
  margin-top: 0;
}

.folder-sidebar,
.folder-breadcrumb,
.list-view-card {
  border-radius: 24px;
  border: 1px solid var(--admin-line);
  background: linear-gradient(180deg, var(--admin-shell-strong), var(--admin-shell));
  box-shadow: var(--admin-shadow-md);
}

.folder-sidebar {
  top: calc(var(--nav-offset, 204px) + 10px);
  max-height: calc(100vh - var(--nav-offset, 204px) - 34px);
}

.folder-head {
  padding: 14px 16px;
  color: var(--admin-ink);
}

.folder-current {
  color: var(--admin-muted);
}

.folder-node {
  min-height: 42px;
  padding: 8px 10px;
  color: var(--admin-ink);
}

.folder-node:hover {
  background: rgba(15, 118, 110, 0.09);
}

.folder-node.is-active {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.16), rgba(15, 118, 110, 0.08));
  color: var(--admin-brand-deep);
}

.folder-node-count {
  background: rgba(15, 118, 110, 0.1);
  color: var(--admin-brand);
}

.folder-breadcrumb {
  min-height: 56px;
  padding: 14px 16px;
  margin-bottom: 16px;
  color: var(--admin-muted);
}

.list-view-card {
  padding: 10px;
}

.content {
  gap: 16px;
}

.empty-tip {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 1px dashed rgba(15, 118, 110, 0.26);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(243, 247, 251, 0.88));
  color: var(--admin-muted);
  text-align: center;
  font-size: 15px;
}

.pagination-container {
  margin-top: 18px;
}

.footer {
  padding: 24px 0 6px;
  gap: 14px;
  color: var(--admin-muted);
}

.footer-brand {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--admin-ink);
}

.footer-divider {
  width: 38px;
  height: 1px;
  background: rgba(15, 118, 110, 0.24);
}

.footer-note {
  color: var(--admin-muted);
}

html[data-theme="dark"] .footer-brand {
  color: var(--admin-ink);
}

html[data-theme="dark"] .footer-divider {
  background: rgba(73, 197, 187, 0.32);
}

html[data-theme="dark"] .admin-overview,
html[data-theme="dark"] .folder-sidebar,
html[data-theme="dark"] .folder-breadcrumb,
html[data-theme="dark"] .list-view-card,
html[data-theme="dark"] .empty-tip,
html[data-theme="dark"] .admin-overview-card,
html[data-theme="dark"] .status-panel {
  border-color: rgba(148, 163, 184, 0.18);
}

html[data-theme="dark"] .admin-overview {
  background:
    radial-gradient(circle at 88% 18%, rgba(56, 189, 248, 0.14), transparent 22%),
    linear-gradient(145deg, rgba(11, 18, 32, 0.92), rgba(18, 28, 46, 0.82));
}

html[data-theme="dark"] .admin-overview-card,
html[data-theme="dark"] .empty-tip {
  background: rgba(14, 22, 38, 0.82);
}

html[data-theme="dark"] .header-content .action-group > .el-dropdown > .el-dropdown-link,
html[data-theme="dark"] .header-content .action-group > i,
html[data-theme="dark"] .header-content .action-group .el-tooltip {
  background: rgba(16, 24, 40, 0.96);
}

html[data-theme="dark"] .el-dropdown-menu.el-popper {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(12, 19, 34, 0.98);
  box-shadow: 0 18px 44px rgba(4, 10, 22, 0.42);
}

html[data-theme="dark"] .el-dropdown-menu__item {
  color: #d7e2f6;
}

html[data-theme="dark"] .el-dropdown-menu__item i {
  color: #9eb0cd;
}

html[data-theme="dark"] .el-dropdown-menu__item:focus,
html[data-theme="dark"] .el-dropdown-menu__item:not(.is-disabled):hover {
  background: rgba(118, 140, 255, 0.16);
  color: #eef4ff;
}

html[data-theme="dark"] .el-dropdown-menu__item:focus i,
html[data-theme="dark"] .el-dropdown-menu__item:not(.is-disabled):hover i,
html[data-theme="dark"] .el-dropdown-menu__item--selected,
html[data-theme="dark"] .el-dropdown-menu__item--selected i {
  color: #eef4ff;
}

html[data-theme="dark"] .el-dropdown-menu__item--selected {
  background: rgba(118, 140, 255, 0.18);
}

html[data-theme="dark"] .el-dropdown-menu.el-popper[x-placement^="bottom"] .popper__arrow {
  border-bottom-color: rgba(148, 163, 184, 0.18);
}

html[data-theme="dark"] .el-dropdown-menu.el-popper[x-placement^="bottom"] .popper__arrow::after {
  border-bottom-color: rgba(12, 19, 34, 0.98);
}

html[data-theme="dark"] .list-view-card .el-table,
html[data-theme="dark"] .list-view-card .el-table__expanded-cell,
html[data-theme="dark"] .list-view-card .el-table tr,
html[data-theme="dark"] .list-view-card .el-table__header-wrapper,
html[data-theme="dark"] .list-view-card .el-table__body-wrapper,
html[data-theme="dark"] .list-view-card .el-table__fixed,
html[data-theme="dark"] .list-view-card .el-table__fixed-right {
  background: rgba(12, 19, 34, 0.96);
  color: #dce7ff;
}

html[data-theme="dark"] .list-view-card .el-table th,
html[data-theme="dark"] .list-view-card .el-table td,
html[data-theme="dark"] .list-view-card .el-table__expanded-cell {
  border-bottom-color: rgba(148, 163, 184, 0.16);
  background: rgba(12, 19, 34, 0.96);
  color: #dce7ff;
}

html[data-theme="dark"] .list-view-card .el-table th {
  background: rgba(32, 44, 72, 0.92);
  color: #e3edff;
  font-weight: 600;
}

html[data-theme="dark"] .list-view-card .el-table th.is-leaf,
html[data-theme="dark"] .list-view-card .el-table--border th,
html[data-theme="dark"] .list-view-card .el-table--border td {
  border-right-color: rgba(148, 163, 184, 0.16);
}

html[data-theme="dark"] .list-view-card .el-table--striped .el-table__body tr.el-table__row--striped td {
  background: rgba(18, 28, 46, 0.98);
}

html[data-theme="dark"] .list-view-card .el-table--enable-row-hover .el-table__body tr:hover > td,
html[data-theme="dark"] .list-view-card .el-table__body tr.hover-row > td {
  background: rgba(41, 58, 91, 0.92);
}

html[data-theme="dark"] .list-view-card .el-table__empty-block {
  background: rgba(12, 19, 34, 0.96);
}

html[data-theme="dark"] .list-view-card .el-table__empty-text {
  color: #8fa3c6;
}

html[data-theme="dark"] .list-view-card .el-table::before,
html[data-theme="dark"] .list-view-card .el-table--group::after,
html[data-theme="dark"] .list-view-card .el-table--border::after,
html[data-theme="dark"] .list-view-card .el-table__fixed::before,
html[data-theme="dark"] .list-view-card .el-table__fixed-right::before {
  background-color: rgba(148, 163, 184, 0.16);
}

html[data-theme="dark"] .list-view-card .el-table__fixed,
html[data-theme="dark"] .list-view-card .el-table__fixed-right {
  box-shadow: none;
}

@media (max-width: 1280px) {
  .header-content {
    grid-template-columns: minmax(240px, 300px) minmax(240px, 1fr);
    grid-template-areas:
      "brand stats"
      "search search"
      "actions actions";
  }

  .stats {
    justify-self: end;
  }

  .admin-overview {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .header-content {
    top: 10px;
    left: 10px;
    right: 10px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "brand"
      "search"
      "stats"
      "actions";
    gap: 12px;
    padding: 14px;
    border-radius: 20px;
  }

  .header-brand,
  .header-search,
  .stats {
    width: 100%;
  }

  .header-subtitle,
  .stats-text {
    white-space: normal;
  }

  .stats {
    min-width: 0;
  }

  .actions {
    gap: 10px;
    padding-top: 12px;
  }

  .action-group {
    width: 100%;
  }

  .action-group-system {
    margin-left: 0;
  }

  .status-panel {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .main-container {
    margin-top: calc(var(--nav-offset, 204px) + 12px);
    padding: 10px 10px 28px;
  }

  .admin-overview {
    padding: 18px;
    border-radius: 22px;
  }

  .admin-overview-grid {
    grid-template-columns: 1fr;
  }

  .disk-layout {
    grid-template-columns: 1fr;
  }

  .folder-sidebar {
    position: static;
    max-height: none;
  }

  .footer {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .header-chip-label {
    display: none;
  }

  .action-group-label {
    min-width: 74px;
  }

  .header-content .action-group > .el-dropdown > .el-dropdown-link,
  .header-content .action-group > i,
  .header-content .action-group .el-tooltip {
    width: 40px;
    height: 40px;
  }

  .title {
    white-space: normal;
  }

  .header-subtitle {
    display: none;
  }
}
