/* ==========================================================
   上传弹窗 / 大图预览
   ========================================================== */
.sheet-mask {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(46, 34, 20, 0.32);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.sheet-mask.open { opacity: 1; visibility: visible; }

.sheet {
  width: min(760px, 100%);
  max-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  background: rgba(255, 252, 246, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 50px 110px rgba(46, 30, 10, 0.4), inset 0 1px 0 #fff;
  -webkit-backdrop-filter: blur(30px) saturate(1.4);
  backdrop-filter: blur(30px) saturate(1.4);
  transform: translateY(18px) scale(0.97);
  transition: transform 0.45s var(--ease);
  overflow: hidden;
}
.sheet-mask.open .sheet { transform: none; }

.sheet-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 24px 14px;
}
.sheet-head h3 { margin: 0 0 4px; font-size: 17px; font-weight: 650; }
.sheet-head p { margin: 0; font-size: 12.5px; color: var(--brown-3); }
.sheet-head .close { margin-left: auto; }

.sheet-body {
  padding: 0 24px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}
.sheet-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  padding: 16px 24px 20px;
  border-top: 1px solid rgba(107, 84, 58, 0.1);
  margin-top: 14px;
}
.sheet-foot .tip { margin-right: auto; font-size: 12px; color: var(--brown-3); }

.drop {
  position: relative;
  display: block;
  border: 1.5px dashed rgba(201, 130, 42, 0.42);
  border-radius: 18px;
  background: rgba(255, 249, 236, 0.5);
  padding: 30px 20px;
  text-align: center;
  transition: all 0.25s var(--ease);
  cursor: pointer;
}
.drop:hover, .drop.over {
  border-color: rgba(201, 130, 42, 0.9);
  background: rgba(255, 244, 220, 0.8);
}
.drop.over { transform: scale(0.995); }
.drop .ic {
  width: 46px;
  height: 46px;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(246, 201, 111, 0.35), rgba(217, 139, 43, 0.2));
  color: var(--gold-deep);
}
.drop .ic svg { width: 22px; height: 22px; }
.drop b { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.drop span { font-size: 12px; color: var(--brown-3); }
.drop input[type="file"] { display: none; }

.pick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.pick {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(107, 84, 58, 0.1);
  box-shadow: 0 6px 16px rgba(72, 46, 14, 0.08);
  animation: cardIn 0.4s var(--ease) both;
}
.pick .ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: #eee; }
.pick .pick-body { padding: 10px; }
.pick input {
  width: 100%;
  height: 36px;
  border-radius: 9px;
  border: 1px solid rgba(107, 84, 58, 0.16);
  background: #fff;
  padding: 0 10px;
  font-family: inherit;
  font-size: 12.5px;
  color: var(--brown);
  outline: none;
}
.pick input:focus { border-color: rgba(227, 160, 51, 0.8); box-shadow: 0 0 0 3px rgba(227, 160, 51, 0.13); }
.pick .rm {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(34, 26, 16, 0.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background 0.2s;
}
.pick .rm:hover { background: rgba(180, 70, 50, 0.9); }
.pick .rm svg { width: 13px; height: 13px; }
.pick .stat {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 3px 8px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  background: rgba(34, 26, 16, 0.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* ---------------- 大图预览 ---------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3vh 4vw;
  background: rgba(30, 22, 12, 0.55);
  -webkit-backdrop-filter: blur(22px) saturate(1.1);
  backdrop-filter: blur(22px) saturate(1.1);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.lightbox.open { opacity: 1; visibility: visible; }

.lb-inner {
  position: relative;
  max-width: min(1080px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transform: scale(0.97);
  transition: transform 0.4s var(--ease);
}
.lightbox.open .lb-inner { transform: none; }

.lb-img {
  max-width: 100%;
  max-height: 74vh;
  border-radius: 18px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.16);
  display: block;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.06);
}

.lb-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px 12px 20px;
  border-radius: 16px;
  min-width: min(520px, 100%);
  background: rgba(255, 252, 244, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  color: #fff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}
.lb-desc {
  flex: 1;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  max-width: 58ch;
}
.lb-no {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
}
.lb-bar .vote-btn { height: 38px; padding: 0 16px; font-size: 13px; border-radius: 11px; }

.lb-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: background 0.2s;
}
.lb-close:hover { background: rgba(255, 255, 255, 0.3); }
.lb-close svg { width: 16px; height: 16px; }

@media (max-width: 640px) {
  .sheet-mask { padding: 12px; align-items: flex-end; }
  .sheet { max-height: 92vh; border-radius: 22px; }
  .sheet-head { padding: 16px 18px 10px; }
  .sheet-body { padding: 0 18px; }
  .sheet-foot { padding: 12px 18px 16px; }
  .pick-grid { gap: 9px; }
  .drop { padding: 22px 14px; }
  .lb-img { max-height: 64vh; }
  .lb-bar { min-width: 0; width: 100%; gap: 10px; padding: 10px 10px 10px 14px; }
  .lb-desc { font-size: 12px; }
  .lb-close { top: -46px; right: 0; }
}
