html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background: #c3c571;
  overflow: hidden;
}

.container {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-svg {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
}

.image-clickable {
  cursor: pointer;
}

.image-clickable:hover {
  transform: scale(1.001);
}

.control-bar {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(255, 255, 255, 0.8);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-family: Arial, sans-serif;
  z-index: 20;
  display: flex;
  gap: 15px;
  align-items: center;
}

.debug-toggle {
  background: rgba(0,0,0,0.7);
  color: white;
  border: none;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
}

/* 错误提示样式 */
.error-message {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ff4444;
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  z-index: 100;
  max-width: 80%;
  text-align: center;
}


/* 滚动条样式 */
.modal-body::-webkit-scrollbar {
  width: 4px;
}

.modal-body::-webkit-scrollbar-track {
  background: #e8f5e9;
  border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}
/* 弹出层样式 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.45);
  backdrop-filter: blur(2px);
  z-index: 200;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #fdfde6; /* 更浅的绿色背景 */
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  border: 1px solid rgba(0,0,0,0.06);
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  overflow: hidden; /* 禁用整体滚动 */
  animation: modalIn 200ms ease-out;
  /* 使弹框在移动端缩放时可用 JS 进行逆向缩放补偿 */
  transform-origin: center center;
  will-change: transform;
  font-size: 14px;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  color: #555;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 20;
}

.close-btn:hover {
  color: #000;
}


.modal-title {
  margin: 0;
  color: #333;
  font-size: 18px;
}

.modal-header {
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, #f3f686 0%, #f8f9a9 100%);
  z-index: 10;
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid #ddd;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.modal-body {
  padding: 20px;
  overflow-y: auto; /* 仅内容区域可滚动 */
  max-height: calc(90vh - 80px); /* 减去标题栏高度 */
  padding-bottom: 40px; /* 为最后的卡片预留底部空间 */
}

/* 确保最后一个内容块与底部保持间距 */
.modal-body > :last-child {
  margin-bottom: 32px;
}

.product-info,
.location-info,
.contact-info,
.product-images,
.combined-card {
  background: #fff;
  //border: 1px solid rgba(0,0,0,0.06);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
  //box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.product-title {
  font-size: 18px;
  color: #2f5d3e;
  margin: 0 0 12px 0;
  border-left: 4px solid #8bc34a;
  padding-left: 10px;
}

.product-description {
  line-height: 1.6;
  color: #4c4c4c;
}

/* 产品图片样式优化 */
.product-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.product-images .product-title {
  grid-column: 1 / -1;
}

.product-image {
  /*border-radius: 5px;*/
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  /* aspect-ratio: 1 / 1; 保持图片比例 */
}

.product-image img {
  width: 100%;
  height: 100%;
}

/* 地点标题和内容不换行 */
.location-info {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.location-title {
  margin: 0 10px 0 0;
  font-size: 18px;
  color: #333;
  white-space: nowrap;
}

.location-details {
  color: #555;
  margin: 0;
}


.contact-info {
  text-align: center;
  padding-bottom: 20px;
}

.contact-title {
  font-size: 18px;
  color: #333;
  margin-bottom: 10px;
}

.qr-code {
  width: 150px;
  height: 150px;
  margin: 0 auto 10px;
  background-color: #fff;
  border-radius: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  border: 1px solid rgba(0,0,0,0.06);
}

.qr-code img {
  max-width: 100%;
  max-height: 100%;
  padding: 10px;
}

.qr-note {
  color: #666;
  font-size: 14px;
  text-align: center;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(6px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.combined-title {
  margin-bottom: 12px;
}

.combined-location {
  margin-bottom: 10px;
}

.combined-images {
  display: flex;
  gap: 8px;
  padding-bottom: 8px;
}

.combined-images .product-image {
  flex: 0 0 auto;
  max-width: 70vw;
  height: 200px;
  aspect-ratio: unset;
}

.combined-contact {
  margin-top: 0;
  text-align: center;
}

.combined-contact .contact-list {
  margin-top: 8px;
  padding: 0;
  list-style: none;
  text-align: left;
}

.combined-contact .contact-list li {
  display: flex;
  gap: 8px;
  font-size: 14px;
  color: #444;
  padding: 4px 0;
}

.combined-contact .contact-list .label {
  color: #666;
}

.combined-row {
  display: grid;
  /*grid-template-columns: 1fr 240px;*/
  gap: 12px;
  align-items: start;
}
/* 地址链接与定位图标样式增强 */
.combined-location { display: flex; align-items: center; }
.combined-location .location-link { display: flex; align-items: center; gap: 6px; color: #555; text-decoration: none; }
.combined-location .location-link:hover { color: #2f5d3e; }
.location-icon { flex: 0 0 auto; width: 18px; height: 18px; margin-right: 0; margin-top: 3px; }
.location-details { font-size: 14px;}