/* 保存场景对话框样式 */
.save-scene-dialog {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
  /* 屏幕正中央（水平居中，垂直偏上 10%） */
  position: fixed !important;
  top: 10% !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  z-index: 3000;
  margin-top: 0 !important;
}

.save-scene-dialog .el-dialog__header {
  padding: 16px 20px;
  background: #2c3e50;
  border-bottom: none;
  margin-right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.save-scene-dialog .el-dialog__headerbtn {
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
}

.save-scene-dialog .el-dialog__headerbtn .el-dialog__close {
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
}

.save-scene-dialog .el-dialog__headerbtn:hover .el-dialog__close {
  color: #fff;
}

.save-scene-dialog .el-dialog__title {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.5px;
  margin-right: 16px;
}

/* 标题栏右侧的套内面积 */
.save-scene-dialog .header-area-info {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
}

.save-scene-dialog .header-area-info .area-icon-small {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c8a46e 0%, #a67c52 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 10px;
}

.save-scene-dialog .header-area-info .area-value {
  font-weight: 600;
  color: #fff;
}

.save-scene-dialog .header-area-info .area-unit {
  font-size: 12px;
  opacity: 0.8;
}

.save-scene-dialog .el-dialog__body {
  padding: 24px 28px 20px;
  background: #fff;
  overflow-y: auto;
  flex: 1;
}

/* 隐藏所有滚动条 */
.save-scene-dialog ::-webkit-scrollbar {
  display: none !important;
}
.save-scene-dialog {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.save-scene-dialog .el-dialog__footer {
  padding: 16px 28px 20px;
  border-top: 1px solid #f0f0f0;
  background: #fafbfc;
}

/* 内容区域 */
.save-scene-content {
  width: 100%;
}

/* 顶部预览图区域 - 新布局：套内面积显示在右上角 */
.save-scene-preview {
  position: relative;
  width: 100%;
  /*height: 160px;*/
  border-radius: 12px;
  overflow: hidden;
  background: #f0f4f8;
  margin-bottom: 16px;
  border: 1px solid #e8ecf0;
}

.save-scene-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.save-scene-preview-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #a0aec0;
}

.save-scene-preview-placeholder i {
  font-size: 48px;
  margin-bottom: 12px;
  color: #cbd5e0;
}

.save-scene-preview-placeholder span {
  font-size: 14px;
}

/* 预览图上的加载提示 */
.save-scene-preview .preview-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #2ea0e6;
  font-size: 14px;
}

/* 套内面积显示 */
.save-scene-area {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%);
  border-radius: 10px;
  border: 1px solid #d0e8f7;
}

.save-scene-area .area-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2ea0e6 0%, #1a7cc8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  flex-shrink: 0;
}

.save-scene-area .area-info {
  flex: 1;
}

.save-scene-area .area-label {
  font-size: 12px;
  color: #6b7c93;
  margin-bottom: 2px;
}

.save-scene-area .area-value {
  font-size: 20px;
  font-weight: 700;
  color: #1a3a5c;
  font-family: 'Segoe UI', 'PingFang SC', -apple-system, sans-serif;
}

.save-scene-area .area-unit {
  font-size: 14px;
  font-weight: 400;
  color: #6b7c93;
  margin-left: 2px;
}

/* 表单区域 */
.save-scene-form {
  width: 100%;
}

/* 表单行 - 同一行放两个表单项 */
.form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.form-item {
  margin-bottom: 16px;
  flex: 1;
}

.form-item.form-item-half {
  flex: 1;
}

.form-item:last-child {
  margin-bottom: 0;
}

.form-label {
  display: block;
  font-size: 13px;
  color: #4a5568;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-label .required {
  color: #fc5a5a;
  margin-left: 2px;
}

.save-scene-form .el-input__inner,
.save-scene-form .el-textarea__inner {
  border-radius: 0;
  border: 1.5px solid #e2e8f0;
  font-size: 14px;
  transition: all 0.2s ease;
}

.save-scene-form .el-input__inner:hover,
.save-scene-form .el-textarea__inner:hover {
  border-color: #c0d4e8;
}

.save-scene-form .el-input__inner:focus,
.save-scene-form .el-textarea__inner:focus {
  border-color: #2ea0e6;
  box-shadow: 0 0 0 3px rgba(46, 160, 230, 0.12);
}

.save-scene-form .el-textarea__inner {
  resize: none;
}

/* 云端存储选项 - 改造成按钮组 */
.storage-options-new {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.storage-type-btn {
  flex: 1;
  height: 42px;
  border-radius: 0;
  border: 2px solid #e2e8f0;
  background: #fafbfc;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #5a6c7d;
  user-select: none;
}

.storage-type-btn:hover {
  border-color: #2ea0e6;
  background: #f0f7ff;
  color: #2ea0e6;
}

.storage-type-btn.active {
  border-color: #2ea0e6;
  background: linear-gradient(135deg, #e8f5fd 0%, #d5eefa 100%);
  color: #1a7cc8;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(46, 160, 230, 0.15);
}

.storage-type-btn i {
  font-size: 18px;
}

/* 底部按钮样式 - 棕色渐变大按钮 */
.dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
}

.dialog-footer .el-button {
  height: 44px;
  border-radius: 0;
  font-size: 15px;
  font-weight: 600;
  padding: 0 36px;
  transition: all 0.25s ease;
  border: none;
}

.dialog-footer .el-button--default {
  border: 1px solid #e2e8f0 !important;
  color: #5a6c7d;
  background: #fafbfc;
  box-shadow: none;
}

.dialog-footer .el-button--default:hover {
  border: 1px solid #2ea0e6 !important;
  color: #2ea0e6;
  background: rgba(46, 160, 230, 0.06);
  transform: none;
}

.dialog-footer .el-button--default:active {
  border: 1px solid #1a7cc8 !important;
  color: #1a7cc8;
  background: rgba(46, 160, 230, 0.12);
  transform: none;
}

.dialog-footer .el-button--primary {
  background: linear-gradient(135deg, #d5eefa 0%, #b8d9f5 100%);
  color: #1a7cc8;
  box-shadow: 0 4px 16px rgba(46, 160, 230, 0.35);
  min-width: 120px;
  border: 2px solid #2ea0e6;
}

.dialog-footer .el-button--primary:hover {
  background: linear-gradient(135deg, #c2e2f8 0%, #a8d4f5 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46, 160, 230, 0.4);
  border-color: #1a7cc8;
}

.dialog-footer .el-button--primary:active {
  background: linear-gradient(135deg, #a8d4f5 0%, #8ac4ef 100%);
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(46, 160, 230, 0.3);
  border-color: #1a5fa8;
}

/* 响应式调整 */
@media (max-width: 600px) {
  .save-scene-preview {
    height: 160px;
  }

  .cloud-type-options {
    flex-direction: column;
  }

  .dialog-footer {
    flex-direction: column-reverse;
  }

  .dialog-footer .el-button {
    width: 100%;
  }
}
