#reno-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow-y: auto;
  padding: 20px;
}

.reno-popup-inner {
  background: #fff;
  border-radius: 8px;
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 20px;
  position: relative;
  box-sizing: border-box;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.6;
}

.rcs-popup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: #333;
  z-index: 10;
}

.rcs-popup-close:hover {
  color: #000;
}

/* 图片画廊样式 */
.reno-image-gallery {
  position: relative;
  margin-bottom: 20px;
  background: #f5f5f5;
  border-radius: 8px;
  overflow: hidden;
}

.reno-main-image-container {
  position: relative;
  text-align: center;
  padding: 20px;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.reno-image-wrapper {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.reno-main-image {
  max-width: 100%;
  max-height: 60vh;
  border-radius: 4px;
  object-fit: contain;
  object-position: center;
  display: block;
  cursor: pointer;
}

.reno-main-image:hover {
  transform: scale(1.02);
  transition: transform 0.3s ease;
}

.reno-nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.reno-nav-button.prev {
  left: 15px;
}

.reno-nav-button.next {
  right: 15px;
}

.reno-nav-button:hover {
  background: rgba(255, 255, 255, 1);
}

.reno-thumbnails-container {
  padding: 10px 20px 20px;
  overflow-x: auto;
}

.reno-thumbnails {
  display: flex;
  gap: 10px;
  padding: 5px 0;
}

.reno-thumbnail {
  width: 80px;
  height: 80px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 4px;
  transition: border-color 0.2s;
  flex-shrink: 0;
  background-color: #ddd;
}

.reno-thumbnail:hover {
  border-color: #ccc;
}

.reno-thumbnail.active {
  border-color: #0073aa;
}

/* 弹窗内容样式 */
.reno-popup-inner h2 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #333;
}

.reno-popup-inner h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: #333;
}

.reno-popup-inner p {
  margin-bottom: 15px;
  font-size: 16px;
  color: #333;
  padding: 0 10px;
}

.reno-popup-inner>p:first-of-type {
  font-size: 16px;
  color: #666;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.reno-section-description,
.reno-section-material,
.reno-section-comments {
  margin-bottom: 40px;
}

.reno-section {
  padding: 0 10px;
}

.reno-section-description h3,
.reno-section-material h3,
.reno-section-comments h3 {
  margin-bottom: 12px;
  color: #333;
}

.reno-section-contact {
  text-align: center;
  padding: 40px 0;
}

.reno-contact-btn {
  margin-right: 40px;
}

.reno-contact-btn a {
  background-color: #9FD86B;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  width: 100%;
  font-weight: 700;
}

.reno-contact-btn.btn2 a {
  background-color: #215197
}

.reno-contact-btn a:hover {
  background-color: #215197;
  color: white;
}

.reno-contact-btn.btn2 a:hover {
  background-color: #9FD86B
}

/* 响应式优化 */
@media (max-width: 768px) {
  .reno-popup-inner {
    width: 95%;
    padding: 15px;
    max-height: 100vh;
    border-radius: 0;
  }

  .reno-main-image-container {
    min-height: 250px;
    padding: 15px;
  }

  .reno-main-image {
    max-height: 50vh;
  }

  .reno-nav-button {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }

  .reno-thumbnails-container {
    padding: 5px 10px 15px;
  }

  .reno-thumbnail {
    width: 60px;
    height: 60px;
  }

  .rcs-popup-close {
    top: 10px;
    right: 10px;
    font-size: 24px;
  }

  .reno-popup-inner h2 {
    font-size: 22px;
  }

  .reno-popup-inner h3 {
    font-size: 18px;
  }

  .reno-popup-inner p,
  .reno-popup-inner>p:first-of-type {
    font-size: 15px;
  }

  .reno-contact-btn {
    font-size: 15px;
    padding: 10px 18px;
    margin-bottom: 16px;
    background: #fff;
  }
}

/* iPad优化 */
@media (min-width: 768px) and (max-width: 1024px) {
  .reno-main-image-container {
    min-height: 350px;
  }

  .reno-thumbnail {
    width: 70px;
    height: 70px;
  }
}

/* 移动端全屏优化 */
@media (max-width: 480px) {
  #reno-popup {
    padding: 0;
  }

  .reno-popup-inner {
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    padding: 10px;
  }

  .reno-main-image-container {
    min-height: 50vh;
    padding: 10px;
  }

  .reno-main-image {
    max-width: 100%;
    max-height: 50vh;
  }

  .reno-nav-button {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  .reno-thumbnails-container {
    padding: 5px 5px 10px;
  }

  .reno-thumbnail {
    width: 50px;
    height: 50px;
  }

  .rcs-popup-close {
    top: 10px;
    right: 10px;
    font-size: 24px;
  }

  .reno-popup-inner h2 {
    font-size: 20px;
  }

  .reno-popup-inner h3 {
    font-size: 17px;
  }

  .reno-popup-inner p,
  .reno-popup-inner>p:first-of-type {
    font-size: 14px;
  }

  .reno-contact-btn {
    font-size: 14px;
    padding: 10px 16px;
    margin-bottom: 16px;
    background: #fff;
  }
}