* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #f8f9fa;
  color: #333;
  line-height: 1.6;
  padding: 16px;
  max-width: 600px;
  margin: 0 auto;
}

/* 折叠面板 */
.coupon-panel {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.coupon-panel-header {
  padding: 16px;
  background-color: #007bff;
  color: white;
  font-weight: 600;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.coupon-panel-header::after {
  content: "▼";
  font-size: 12px;
}

.coupon-panel-header.collapsed::after {
  content: "▶";
}

.coupon-panel-content {
  padding: 16px;
}

.coupon-panel-content.hidden {
  display: none;
}

/* 按钮样式：100% 宽度 */
.btn.full {
  display: block;
  width: 100%;
  margin: 8px 0;
  padding: 14px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s;
  text-align: center;
}

.btn.full:hover {
  background-color: #218838;
}

.btn.full:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* 图片预留位 */
.image-placeholder {
  margin-top: 16px;
  padding: 20px;
  background-color: #f1f3f5;
  border: 2px dashed #ccc;
  border-radius: 8px;
  text-align: center;
  color: #666;
  font-size: 14px;
  font-style: italic;
}

/* Toast 提示 */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 14px;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s;
  max-width: 80%;
  text-align: center;
}

.toast.show {
  opacity: 1;
}


/* 图片预留位 - 基础样式 */
.image-placeholder {
  margin-top: 16px;
  padding: 20px;
  background-color: #f1f3f5;
  border: 2px dashed #ccc;
  border-radius: 8px;
  text-align: center;
  color: #666;
  font-size: 14px;
  font-style: italic;
}

/* 可点击图片样式 */
.clickable-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 12px auto;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 放大状态 */
.clickable-image.zoomed {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) scale(1.5) !important;
  max-width: 95vw !important;
  max-height: 90vh !important;
  z-index: 9999 !important;
  border: 3px solid #007bff !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
  cursor: zoom-out;
}

/* 小屏优化 */
@media (max-width: 480px) {
  .clickable-image.zoomed {
    transform: translate(-50%, -50%) scale(1.8);
  }
}


/* 移动端适配 */
@media (max-width: 480px) {
  .coupon-panel-header {
    font-size: 16px;
  }
  .btn.full {
    padding: 12px;
    font-size: 15px;
  }
}