/* ============ 登录页 ============ */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f2d33 0%, #14494f 55%, #0e7c86 100%);
  padding: 20px;
}

.login-card {
  background: #fff;
  border-radius: 14px;
  padding: 38px 34px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.login-logo {
  text-align: center;
  margin-bottom: 14px;
}

.login-card h2 {
  text-align: center;
  font-size: 20px;
  margin-bottom: 8px;
}

.login-sub {
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 26px;
}

/* ============ 后台布局 ============ */
.admin-body {
  display: flex;
  min-height: calc(100vh - 60px);
}

.sidebar {
  width: 200px;
  background: #fff;
  border-right: 1px solid var(--border);
  padding: 16px 12px;
  flex-shrink: 0;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  margin-bottom: 4px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
  user-select: none;
}

.menu-item:hover {
  background: var(--bg);
  color: var(--text);
}

.menu-item.active {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.menu-group-title {
  font-size: 12px;
  font-weight: 700;
  color: #93a1ab;
  letter-spacing: 1px;
  padding: 14px 14px 7px;
  user-select: none;
}

.menu-group-title:first-child {
  padding-top: 4px;
}

.content {
  flex: 1;
  padding: 26px 30px;
  min-width: 0;
}

.content-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 22px;
}

.content-header h1 {
  font-size: 21px;
}

.count-badge {
  font-size: 13px;
  color: var(--text-secondary);
  background: #fff;
  border: 1px solid var(--border);
  padding: 2px 10px;
  border-radius: 20px;
}

/* ============ 上传区 ============ */
.upload-zone {
  border: 2px dashed #b9c9cb;
  border-radius: var(--radius);
  background: #fbfdfd;
  padding: 34px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  margin-bottom: 24px;
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.upload-text {
  font-weight: 500;
  margin: 10px 0 4px;
}

.upload-hint {
  font-size: 12px;
  color: var(--text-secondary);
}

/* 进度条 */
.progress-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 24px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 8px;
  min-width: 0;
  gap: 12px;
}

.progress-info span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.progress-bar {
  height: 8px;
  background: #e8edf0;
  border-radius: 4px;
  overflow: hidden;
}

.progress-inner {
  height: 100%;
  width: 0;
  background: var(--primary);
  border-radius: 4px;
  transition: width 0.2s;
}

/* ============ 文件列表 ============ */
.file-table {
  width: 100%;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  border-collapse: collapse;
  table-layout: fixed;
}

.file-table th {
  background: #f7f9fa;
  text-align: left;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

.file-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #eef1f4;
  vertical-align: middle;
}

.file-table tr:last-child td {
  border-bottom: none;
}

.file-table tr:hover td {
  background: #fafcfc;
}

.col-name { width: 46%; }
.col-size { width: 14%; }
.col-time { width: 22%; }
.col-action { width: 18%; }

.file-cell {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.file-thumb {
  width: 52px;
  height: 38px;
  border-radius: 6px;
  background: #eef1f4;
  object-fit: cover;
  flex-shrink: 0;
}

.file-thumb-icon {
  width: 52px;
  height: 38px;
  border-radius: 6px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.file-name-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action-cell {
  display: flex;
  gap: 8px;
}

.time-text {
  color: var(--text-secondary);
  font-size: 13px;
}

/* 响应式 */
@media (max-width: 760px) {
  .sidebar {
    width: 64px;
    padding: 12px 8px;
  }
  .menu-item {
    justify-content: center;
    padding: 12px 8px;
  }
  .menu-item {
    font-size: 0;
  }
  .menu-group-title {
    font-size: 10px;
    text-align: center;
    padding: 10px 0 6px;
  }
  .content {
    padding: 18px 14px;
  }
  .col-time {
    display: none;
  }
  .col-name { width: 56%; }
  .col-size { width: 18%; }
  .col-action { width: 26%; }
  .topbar {
    padding: 0 14px;
  }
  .user-info {
    display: none;
  }
}
