body {
  margin: 0;
  font-family: sans-serif;
}

.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1000;
}

.popup {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 16px;
  width: 400px;
  max-width: 95%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  overflow: hidden;
  animation: fadeIn 0.3s ease;
}

/* 图片容器，确保能放置绝对定位的 header */
.popup-img-wrapper {
  position: relative;
}

.popup img {
  width: 100%;
  display: block;
}

/* 覆盖在图片上的 header */
.popup-header {
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 倒计时文字 */
.popup-timer {
  font-size: 13px;
  color: #fff;
  background: rgba(0,0,0,0.5);
  padding: 2px 6px;
  border-radius: 4px;
}

/* 关闭按钮 */
.popup-close {
  display: none;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
}

.popup-close:hover {
  background: rgba(0,0,0,0.8);
}

.popup-content {
  padding: 12px;
  text-align: center;
}

/* 描述文字 */
.popup-desc {
  font-size: 15px;
  line-height: 1.5;
  color: #333;
  max-height: 500px;
  overflow-y: auto;
  text-align: left;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, -40%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}
