/* ===== 起点网盘（files.html 专用 · 浅色科技风） ===== */

/* 页内 tab：文件 / 我的分享 */

.app-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 11px;
  background: rgba(241, 245, 249, 0.85);
  border: 1px solid var(--line);
  margin-bottom: 18px;
}

.app-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 7px 16px;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  transition: all 0.18s ease;
}

.app-tab .icon { width: 16px; height: 16px; }

.app-tab.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(139, 92, 246, 0.13));
  color: var(--primary-deep);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(8, 145, 178, 0.28), 0 0 12px rgba(56, 189, 248, 0.14);
}

/* 面包屑 */

.crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  min-height: 32px;
  margin-bottom: 12px;
  font-size: 13px;
}

.crumb {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 4px 9px;
  border-radius: 7px;
  cursor: pointer;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.crumb:hover {
  background: rgba(56, 189, 248, 0.12);
  color: var(--primary);
}

.crumb.current {
  color: var(--text);
  font-weight: 600;
  cursor: default;
}

.crumb.current:hover { background: transparent; color: var(--text); }

.crumb-sep { color: var(--faint); font-size: 12px; padding: 0 1px; }

/* 工具栏 */

.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

/* 表格列宽 */

.col-size { width: 110px; color: var(--muted); font-family: var(--font-num); font-size: 12.5px; }

.col-time { width: 176px; color: var(--muted); font-size: 12.5px; font-family: var(--font-num); }

.col-actions { width: 210px; text-align: right !important; }

/* 拖拽提示 */

.drop-hint {
  position: fixed;
  inset: 12px;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed rgba(8, 145, 178, 0.55);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  color: var(--primary);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  box-shadow: inset 0 0 60px rgba(56, 189, 248, 0.1);
  pointer-events: none;
}

/* 上传托盘 */

.upload-tray {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  width: 360px;
  max-width: calc(100vw - 32px);
  max-height: 52vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 255, 0.97));
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: var(--shadow-lg), 0 0 30px rgba(56, 189, 248, 0.12);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.tray-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
}

.upload-list { overflow: auto; padding: 8px 12px 12px; }

.upload-item { padding: 10px 2px; border-bottom: 1px solid rgba(100, 116, 139, 0.1); }

.upload-item:last-child { border-bottom: 0; }

.upload-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
  font-size: 13px;
}

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

.upload-pct { color: var(--primary); font-size: 12px; flex: none; font-family: var(--font-num); }

.bar {
  height: 6px;
  border-radius: 99px;
  background: rgba(100, 116, 139, 0.16);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #06b6d4, #3b82f6);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.45);
  transition: width 0.2s ease;
}

.upload-item.done .bar-fill {
  background: linear-gradient(90deg, #10b981, #059669);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.45);
}

.upload-item.error .bar-fill {
  background: linear-gradient(90deg, #f43f5e, #e11d48);
  box-shadow: 0 0 8px rgba(225, 29, 72, 0.4);
}

.upload-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

/* 分享下载明细 */

.share-dl-sub {
  margin-top: 2px;
  color: var(--faint);
  font-size: 11.5px;
  font-family: var(--font-num);
}

.share-dl-table th, .share-dl-table td { padding: 0 10px; }

.share-dl-table td { height: 38px; font-size: 13px; }

.share-dl-ip { font-family: var(--font-num); font-size: 12.5px; }

.share-dl-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding-top: 12px;
}

.share-dl-pager .btn { height: 32px; padding: 0 12px; font-size: 13px; }

/* 分享弹窗 */

.share-file {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin-bottom: 16px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(8, 145, 178, 0.2);
  border-radius: 10px;
}

.share-file-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(8, 145, 178, 0.28);
  color: var(--primary);
}

.share-file-name { font-weight: 600; word-break: break-all; }

@media (max-width: 980px) {
  .col-time { display: none; }
  .col-actions { width: 160px; }
}

@media (max-width: 720px) {
  .col-size, .col-actions { width: 92px; }
  .upload-tray { right: 10px; bottom: 10px; }
}
