/* ===========================================
   封神摄影棚 GodStudio · 样式表
   =========================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #0a0a0a;
  color: #f5f5f5;
  min-height: 100vh;
  overflow-x: hidden;
}

body.app-ios {
  min-height: 100dvh;
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
}

body.app-ios header {
  display: none;
}

body.app-ios main {
  min-height: 100dvh;
}

body.app-ios .controls {
  max-height: none;
}

.app-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1500;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 7px 10px max(7px, env(safe-area-inset-bottom));
  background: #050505;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -12px 28px rgba(0, 0, 0, 0.45);
}

.app-bottom-nav button,
.app-bottom-nav a {
  appearance: none;
  border: 0;
  border-radius: 16px;
  min-width: 0;
  height: 52px;
  background: transparent;
  color: rgba(255, 255, 255, 0.58);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
}

.app-bottom-nav .active {
  color: #fff;
  background: rgba(255, 58, 58, 0.22);
}

.app-bottom-nav .icon {
  font-size: 20px;
  line-height: 1;
}

/* 顶部导航 */
header {
  padding: 20px 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.logo {
  font-family: "Playfair Display", serif;
  font-weight: 900;
  font-size: 26px;
  letter-spacing: -1px;
}
.logo span { color: #ff3a3a; }
.tagline {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.5px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-link {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  transition: all 0.2s;
}
.nav-button {
  font-family: inherit;
  cursor: pointer;
}
.nav-link:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}
.account-link {
  color: #fff;
  border-color: rgba(255,58,58,0.35);
  background: rgba(255,58,58,0.12);
  font-weight: 800;
}
.server-key-note {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.78);
  font-size: 12px;
  line-height: 1.6;
}
.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.icon-btn:hover { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.04); }

main {
  display: grid;
  grid-template-columns: 400px 1fr;
  min-height: calc(100vh - 70px);
}
@media (max-width: 960px) {
  main { grid-template-columns: 1fr; }
  .controls {
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
    border-right: none;
  }
}

/* 左侧控制面板 */
.controls {
  padding: 24px;
  background: #111;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  overflow-y: auto;
  max-height: calc(100vh - 70px);
}
.section { margin-bottom: 24px; }
.section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 10px;
  font-weight: 600;
}
.field-label {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}
.row-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.field-block {
  margin-top: 12px;
}
.choice-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.choice-chip {
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.76);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  transition: all 0.18s ease;
}
.choice-chip:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.08);
}
.choice-chip.active {
  color: #fff;
  border-color: #ff3a3a;
  background: rgba(255,58,58,0.2);
  box-shadow: inset 0 0 0 1px rgba(255,58,58,0.16);
}
.choice-chip--color {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.choice-chip__swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.45);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.25);
}

/* ===========================================
   上传区 — 最朴素的实现，零中间层
   =========================================== */
.upload-zone {
  position: relative;
  border: 2px dashed rgba(255,255,255,0.18);
  border-radius: 12px;
  padding: 28px 16px;
  text-align: center;
  background: rgba(255,255,255,0.02);
  transition: border-color 0.2s, background 0.2s;
}
.upload-zone:hover {
  border-color: rgba(255, 58, 58, 0.5);
  background: rgba(255, 58, 58, 0.05);
}
.upload-zone.drag-active {
  border-color: #ff3a3a;
  background: rgba(255, 58, 58, 0.08);
}
/* 真正的 input：覆盖整个 upload-zone，透明，但能接收点击和 drop */
.upload-zone__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
/* 显示用的提示文字层，不接收任何鼠标事件 */
.upload-zone__placeholder {
  pointer-events: none;
  user-select: none;
}
.upload-zone__icon {
  font-size: 32px;
  margin-bottom: 8px;
  opacity: 0.6;
}
.upload-zone__text {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}
.upload-zone__hint {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  margin-top: 6px;
}
/* 已上传预览 */
.uploaded-preview {
  margin-top: 12px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}
.uploaded-preview img {
  width: 100%;
  display: block;
}
.uploaded-preview__remove {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
}

/* 下拉框 */
select, input[type="text"], input[type="number"], input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  background: #1a1a1a;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}
select:focus-visible, input:focus-visible {
  border-color: rgba(255,58,58,0.6);
}
select option { background: #1a1a1a; }
select optgroup { color: #ff3a3a; font-weight: 600; }

/* 摄影师风格简介 */
.photographer-bio {
  margin-top: 10px;
  padding: 10px 12px;
  background: linear-gradient(135deg, rgba(255,58,58,0.04) 0%, rgba(255,87,34,0.04) 100%);
  border: 1px solid rgba(255,58,58,0.15);
  border-radius: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.78);
  line-height: 1.65;
  letter-spacing: 0.2px;
}
.photographer-bio:empty { display: none; }

/* 奢侈品牌 chip 多选（折叠式） */
.brand-category {
  margin-bottom: 6px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
}
.brand-category-title {
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.3px;
  font-weight: 600;
  padding: 9px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  user-select: none;
  transition: background 0.15s;
}
.brand-category-title:hover {
  background: rgba(255,255,255,0.04);
}
.brand-category.has-selected .brand-category-title {
  color: #fff;
}
.brand-category-name {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
}
.brand-category-count {
  font-size: 10px;
  background: linear-gradient(135deg, #ff3a3a 0%, #ff5722 100%);
  color: #fff;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  min-width: 18px;
  text-align: center;
}
.brand-category-count.hidden { display: none; }
.brand-category-arrow {
  color: rgba(255,255,255,0.4);
  font-size: 11px;
  transition: transform 0.2s;
}
.brand-category.open .brand-category-arrow {
  transform: rotate(90deg);
}
.brand-chips {
  display: none;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px 12px 12px 12px;
}
.brand-category.open .brand-chips {
  display: flex;
}
.brand-chip {
  padding: 6px 10px;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
  white-space: nowrap;
}
.brand-chip:hover {
  border-color: rgba(255,255,255,0.3);
  color: #fff;
}
.brand-chip.active {
  background: linear-gradient(135deg, rgba(255,58,58,0.18) 0%, rgba(255,87,34,0.18) 100%);
  border-color: #ff3a3a;
  color: #ff7777;
  font-weight: 600;
}
.brand-counter {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  margin-top: 8px;
}
.brand-counter strong { color: #ff7777; }
.brand-clear-btn {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.4);
  font-size: 11px;
  cursor: pointer;
  padding: 2px 6px;
  margin-left: 6px;
}
.brand-clear-btn:hover { color: #ff5555; }

/* 主按钮 */
.btn-primary {
  width: 100%;
  padding: 14px 18px;
  background: linear-gradient(135deg, #ff3a3a 0%, #ff5722 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(255,58,58,0.3); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-secondary {
  padding: 10px 14px;
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.4); color: #fff; }

/* 右侧预览/结果区 */
.preview {
  padding: 32px 36px;
  overflow-y: auto;
  max-height: calc(100vh - 70px);
}
.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.preview-title {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  font-weight: 700;
}
.preview-meta {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

/* 空状态 */
.empty-state {
  padding: 80px 20px;
  text-align: center;
  color: rgba(255,255,255,0.4);
}
.empty-state .icon { font-size: 64px; margin-bottom: 16px; }
.empty-state .title { font-size: 18px; color: rgba(255,255,255,0.7); margin-bottom: 8px; }
.empty-state .desc { font-size: 13px; line-height: 1.6; }

/* 套图网格 */
.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.album-batch {
  grid-column: 1 / -1;
  display: block;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  background: rgba(255,255,255,0.025);
}
.album-batch.latest {
  border-color: rgba(255,58,58,0.22);
}
.album-batch-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.album-batch-title {
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}
.album-batch-meta,
.album-batch-status {
  margin-top: 4px;
  color: rgba(255,255,255,0.48);
  font-size: 11px;
}
.album-batch-status {
  flex-shrink: 0;
  text-align: right;
}
.album-batch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.photo-card {
  background: #161616;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 2/3;
  position: relative;
  border: 1px solid rgba(255,255,255,0.06);
}
.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-card .placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: rgba(255,255,255,0.35);
  font-size: 12px;
  padding: 16px;
  text-align: center;
}
.photo-card .placeholder .index {
  font-family: "Playfair Display", serif;
  font-size: 32px;
  font-weight: 900;
  color: rgba(255,255,255,0.15);
  margin-bottom: 6px;
}
.photo-card .status-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.photo-card .status-tag.pending { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); }
.photo-card .status-tag.running { background: rgba(255,165,0,0.3); color: #ffcc66; }
.photo-card .status-tag.done { background: rgba(60,200,80,0.2); color: #6cff8c; }
.photo-card .status-tag.error { background: rgba(255,80,80,0.3); color: #ff8585; }
.photo-card .download-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.2s;
}
/* 试拍模式：底部组合标签 + 锁定按钮 */
.photo-card .combo-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.6) 70%, transparent 100%);
  font-size: 11px;
  color: rgba(255,255,255,0.95);
  line-height: 1.5;
  pointer-events: none;
}
.photo-card .combo-label .combo-line {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.photo-card .combo-label .combo-photographer {
  font-weight: 700;
  color: #fff;
}
.photo-card .combo-label .combo-equipment {
  color: rgba(255,255,255,0.7);
  font-size: 10px;
}
.photo-card .lock-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  background: linear-gradient(135deg, #ff3a3a 0%, #ff5722 100%);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 22px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(255,58,58,0.45);
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 5;
  white-space: nowrap;
}
.photo-card:hover .lock-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.photo-card .lock-btn:hover {
  background: linear-gradient(135deg, #ff5555 0%, #ff7733 100%);
  box-shadow: 0 12px 32px rgba(255,58,58,0.6);
}
.photo-card:hover .download-btn { opacity: 1; }
.photo-card .error-msg {
  padding: 12px;
  font-size: 11px;
  color: #ff8585;
  line-height: 1.5;
  word-break: break-word;
}

/* 进度条 */
.album-progress {
  background: #1a1a1a;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.06);
}
.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
}
.progress-bar {
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff3a3a, #ff5722);
  transition: width 0.3s;
  width: 0%;
}

/* 套图信息卡 */
.album-info-card {
  background: linear-gradient(135deg, #1a1a1a 0%, #161616 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 20px;
}
.album-info-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
}
.album-info-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.album-info-label {
  color: rgba(255,255,255,0.4);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.album-info-value {
  color: #fff;
  font-weight: 600;
}

/* 设置弹窗 */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #161616;
  border-radius: 14px;
  width: 100%;
  max-width: 480px;
  padding: 28px;
  border: 1px solid rgba(255,255,255,0.08);
}
.modal-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-close {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 22px;
  cursor: pointer;
}
.modal-field { margin-bottom: 14px; }
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}
.saved-indicator {
  display: none;
  font-size: 12px;
  color: #6cff8c;
  margin-right: auto;
  align-self: center;
}
.saved-indicator.show { display: block; }
.modal small {
  color: rgba(255,255,255,0.45);
  font-size: 11px;
  line-height: 1.5;
  display: block;
  margin-top: 4px;
}
.modal a { color: #ff7777; }

/* 套图历史侧栏 */
.album-history {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.album-history h3 {
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.album-history-item {
  background: #161616;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.album-history-item:hover {
  border-color: rgba(255,58,58,0.4);
  background: #1a1a1a;
}
.album-history-info {
  flex: 1;
  min-width: 0;
}
.album-history-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.album-history-meta {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
}
.album-history-thumbs {
  display: flex;
  gap: 2px;
}
.album-history-thumbs img {
  width: 22px;
  height: 22px;
  object-fit: cover;
  border-radius: 3px;
}
.album-history-del {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.3);
  cursor: pointer;
  font-size: 16px;
  padding: 4px 8px;
}
.album-history-del:hover { color: #ff5555; }

/* Lightbox 大图查看 */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 40px;
  animation: lightboxFadeIn 0.18s ease-out;
}
.lightbox-overlay.open { display: flex; }
@keyframes lightboxFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  object-fit: contain;
  user-select: none;
}
.lightbox-close {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  transition: all 0.15s;
}
.lightbox-close:hover {
  background: rgba(255,255,255,0.18);
  transform: scale(1.05);
}
.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  transition: all 0.15s;
  z-index: 10;
}
.lightbox-nav:hover {
  background: rgba(255,255,255,0.18);
}
.lightbox-nav.prev { left: 24px; }
.lightbox-nav.next { right: 24px; }
.lightbox-nav:disabled {
  opacity: 0.25;
  cursor: default;
}
.lightbox-meta {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(12px);
  padding: 10px 16px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.85);
  font-size: 13px;
}
.lightbox-counter {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.lightbox-counter .total {
  color: rgba(255,255,255,0.5);
  margin-left: 4px;
}
.lightbox-meta-divider {
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,0.2);
}
.lightbox-meta-text {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  max-width: 360px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lightbox-download {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  padding: 6px 12px;
  border-radius: 14px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
}
.lightbox-download:hover {
  background: rgba(255,58,58,0.4);
  border-color: rgba(255,58,58,0.6);
}

/* photo card 可点 */
.photo-card.clickable { cursor: zoom-in; }
.photo-card.clickable:hover img { opacity: 0.92; transform: scale(1.01); }
.photo-card img { transition: opacity 0.15s, transform 0.2s; }

/* 浮动状态 */
.task-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 13px;
  max-width: 300px;
  display: none;
  z-index: 999;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.task-toast.show { display: block; }
.task-toast.success { border-color: rgba(100,255,140,0.4); }
.task-toast.error { border-color: rgba(255,80,80,0.4); }
.task-toast-time {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}
/* 拍摄进度条 */
.task-toast-bar {
  display: none;
  margin-top: 8px;
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}
.task-toast-bar.show { display: block; }
.task-toast-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff3a3a, #ff5722);
  width: 0%;
  transition: width 0.2s linear;
}
.task-toast-bar-fill.finishing {
  background: linear-gradient(90deg, #6cff8c, #2ed863);
  transition: width 0.4s ease-out;
}
