/* store-entry-modal.css - 通讯零售门店免费入驻弹窗 */

.store-modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  box-sizing: border-box;
}

.store-modal {
  position: relative;
  width: 920px;
  max-width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 16px;
  padding: 40px 48px 36px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
}

.store-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  transition: background 0.2s ease;
  z-index: 2;
}

.store-close:hover {
  background: rgba(0, 0, 0, 0.05);
}

.store-title {
  color: #333;
  font-family: "Noto Sans SC";
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 32px;
  padding-left: 14px;
  border-left: 6px solid #e53935;
}

.store-body {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.store-form {
  flex: 1;
  min-width: 0;
}

.store-side {
  width: 260px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.store-field {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.store-field-upload {
  align-items: flex-start;
}

.store-label {
  width: 110px;
  font-family: "Noto Sans SC";
  font-style: SemiBold;
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
   margin: auto 0;
}

.store-required {
  color: #e53935;
  margin-right: 2px;
}

.store-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.store-input-icon {
  position: absolute;
  left: 14px;
  pointer-events: none;
}

.store-input-wrap input {
  width: 100%;
  height: 44px;
  padding: 0 14px 0 42px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  color: #333;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}

.store-input-wrap input::placeholder {
  color: #bbb;
}

.store-input-wrap input:focus {
  outline: none;
  border-color: #e53935;
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

/* 单选按钮组 */
.store-radio-group {
  flex: 1;
  display: flex;
  gap: 40px;
}

.store-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  user-select: none;
}

.store-radio input {
  display: none;
}

.store-radio-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #ccc;
  background: #fff;
  position: relative;
  transition: border-color 0.2s ease;
  flex-shrink: 0;
}

.store-radio.active .store-radio-dot {
  border-color: #e53935;
}

.store-radio.active .store-radio-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e53935;
  transform: translate(-50%, -50%);
}

/* 上传区域 */
.store-upload {
  position: relative;
  width: 110px;
  height: 110px;
  border: 1.5px dashed #d0d0d0;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  background: #fafafa;
  overflow: hidden;
}

.store-upload:hover {
  border-color: #e53935;
  background: rgba(229, 57, 53, 0.02);
}

.store-upload.is-uploading {
  cursor: progress;
  border-style: solid;
  border-color: #e53935;
}

.store-upload.has-preview {
  border-style: solid;
  border-color: #e0e0e0;
  background: #fff;
  padding: 0;
}

.store-file-input {
  display: none;
}

.store-upload-text {
  font-size: 13px;
  color: #666;
}

.store-upload-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.store-upload-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.2s ease;
  color: #fff;
}

.store-upload.has-preview:hover .store-upload-mask,
.store-upload.is-uploading .store-upload-mask {
  opacity: 1;
}

.store-upload.is-uploading .store-upload-mask {
  background: rgba(0, 0, 0, 0.45);
}

.store-upload-mask-text {
  font-size: 12px;
  color: #fff;
}

.store-upload-spinner {
  animation: store-upload-spin 0.8s linear infinite;
}

@keyframes store-upload-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.store-upload-name {
  position: absolute;
  bottom: 4px;
  left: 4px;
  right: 4px;
  font-size: 11px;
  color: #333;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.85);
  padding: 2px 4px;
  border-radius: 3px;
  pointer-events: none;
}

/* 提交按钮 */
.store-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 280px;
  height: 50px;
  margin: 28px 0 0 50%;
  background: linear-gradient(135deg, #e53935, #c62828);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  font-family: inherit;
}

.store-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(229, 57, 53, 0.3);
}

.store-submit:active:not(:disabled) {
  transform: translateY(0);
}

.store-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.store-spinner {
  animation: store-spin 0.8s linear infinite;
}

@keyframes store-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 右侧二维码 */
.store-qr {
  text-align: center;
}

.store-qr img {
  width: 180px;
  height: 180px;
  display: block;
  margin: 0 auto 12px;
}

.store-qr p {
  margin: 0;
  font-size: 15px;
  color: #333;
  font-weight: 500;
}

/* 注意事项 */
.store-notice {
  background: #fafafa;
  border-radius: 8px;
  padding: 16px 18px;
}

.store-notice-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

.store-notice-text {
  margin: 0 0 8px;
  font-size: 13px;
  color: #666;
  line-height: 1.7;
}

.store-notice-text:last-child {
  margin-bottom: 0;
}

/* 过渡动画 */
.store-fade-enter-active,
.store-fade-leave-active {
  transition: opacity 0.25s ease;
}
.store-fade-enter-active .store-modal,
.store-fade-leave-active .store-modal {
  transition: transform 0.25s ease;
}
.store-fade-enter,
.store-fade-leave-to {
  opacity: 0;
}
.store-fade-enter .store-modal,
.store-fade-leave-to .store-modal {
  transform: scale(0.94) translateY(10px);
}

/* 响应式 */
@media (max-width: 860px) {
  .store-modal {
    padding: 32px 24px 28px;
  }
  .store-body {
    flex-direction: column;
    gap: 28px;
  }
  .store-side {
    width: 100%;
    flex-direction: row;
    align-items: flex-start;
    gap: 80px;
  }
  .store-qr img {
    width: 140px;
    height: 140px;
  }
  .store-notice {
    flex: 1;
  }
}

@media (max-width: 560px) {
  .store-modal {
    padding: 28px 18px 24px;
    border-radius: 12px;
  }
  .store-title {
    font-size: 19px;
    margin-bottom: 24px;
    padding-left: 10px;
    border-left-width: 4px;
  }
  .store-field {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-bottom: 16px;
  }
  .store-label {
    width: auto;
    text-align: left;
    text-align-last: left;
    font-size: 13px;
   
  }
  .store-side {
    flex-direction: column;
  }
  .store-qr img {
    width: 160px;
    height: 160px;
  }
  .store-submit {
    width: 100%;
  }
  .store-upload {
    width: 100%;
  }
}
