/* 我的记录专属样式 */
.tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}

.tab {
  height: 38px;
  padding: 0 16px;
  border-radius: 9px 9px 0 0;
  border: none;
  background: transparent;
  color: var(--sub);
  font-size: 13px;
  position: relative;
  transition: color 0.15s;
}

.tab:hover { color: var(--text-2); }

.tab.active {
  color: var(--purple-deep);
  font-weight: 500;
}

.tab.active::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(100deg, #6a58e8, #8272f2);
  border-radius: 2px;
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.fb-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.fb-count { font-size: 12.5px; color: var(--sub); }

.fb-search {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(var(--ink), 0.04);
}

.fb-search svg { width: 14px; height: 14px; color: var(--sub); }

.fb-search input {
  border: none;
  background: transparent;
  outline: none;
  height: 100%;
  color: var(--text);
  font-size: 12.5px;
  width: 140px;
}

.fb-select {
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 12.5px;
  background: rgba(var(--ink), 0.04);
  color: var(--text-2);
}

.fb-select option { background: var(--card-2); color: var(--text-2); }

/* 任务ID */
.tid {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--purple-deep);
  font-size: 12px;
}

.remark-err { color: #ff9d94; font-size: 11.5px; }

.detail-btn {
  height: 26px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid var(--purple-line);
  background: rgba(124, 92, 246, 0.12);
  color: var(--purple-deep);
  font-size: 11.5px;
}

.detail-btn:hover { background: rgba(124, 92, 246, 0.22); }

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.pg-info { font-size: 12px; color: var(--sub); }
.pg-actions { display: flex; align-items: center; gap: 10px; }

.pg-actions .btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* 每页条数选择器 */
.pg-size {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(var(--ink), 0.04);
  font-size: 12px;
  color: var(--sub);
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s, background 0.15s;
}

.pg-size:hover {
  border-color: var(--purple-line);
  background: rgba(124, 92, 246, 0.08);
}

.pg-size:focus-within { border-color: var(--purple-line); }

.pg-size select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 0;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238b8b8b' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  background-size: 9px 6px;
  padding: 0 15px 0 0;
  margin: 0;
  color: var(--text-2);
  font-size: 12px;
  font-family: inherit;
  line-height: 30px;
  height: 30px;
  cursor: pointer;
  outline: none;
}

.pg-size select option {
  background: var(--card-2);
  color: var(--text-2);
}

@media (max-width: 640px) {
  .pagination { gap: 8px; }
  .pg-size {
    height: 30px;
    padding: 0 8px;
    gap: 4px;
    font-size: 11.5px;
  }
  .pg-size select {
    height: 28px;
    line-height: 28px;
    font-size: 11.5px;
    padding-right: 13px;
    background-size: 8px 5px;
  }
  .pg-actions { gap: 6px; }
  .pg-actions .btn.sm { height: 30px; padding: 0 9px; font-size: 11.5px; border-radius: 7px; }
  .pg-info { font-size: 11.5px; }
}

/* ---------------- 图片记录大图弹层 ---------------- */
.imgp-mask {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(6, 4, 12, 0.9);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 28px 20px;
  overflow: auto;
}

.imgp-box {
  width: min(96vw, 1120px);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0a0a0b;
  padding: 16px 18px 18px;
}

.imgp-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.imgp-head b {
  display: block;
  font-size: 14px;
  color: var(--text, #ededed);
  font-weight: 600;
}

.imgp-head span {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--sub, #8b8b8b);
}

.imgp-close {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-2, #b9b9b9);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.imgp-close:hover { color: #fff; background: rgba(139, 116, 248, 0.6); border-color: transparent; }

.imgp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.imgp-cell { position: relative; }

.imgp-cell img {
  width: 100%;
  border-radius: 10px;
  display: block;
  background: #101012;
  max-height: 68vh;
  object-fit: contain;
}

.imgp-dl {
  position: absolute;
  right: 8px;
  top: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  color: #fff;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
}

.imgp-dl:hover { background: rgba(106, 88, 232, 0.78); border-color: transparent; }

@media (max-width: 640px) {
  .imgp-mask { padding: 14px 10px; }
  .imgp-grid { grid-template-columns: 1fr; }
}
