*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body,
#app {
  margin: 0;
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: #fff;
  color: #1f2937;
}

button {
  font: inherit;
}

input,
textarea {
  font: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* 多页模拟器在 processed CSS 到达前避免全部 page-view 叠在一起 */
.page-view.hidden {
  display: none !important;
}

.kjcustomize-app .page-view.hidden {
  display: none !important;
}

.page-slide {
  position: fixed;
  inset: 0;
  overflow-y: auto;
  background: #fff;
  transition: left 0.3s ease;
}

.page-slide.is-hidden {
  left: 100%;
}

.page-slide.is-visible {
  left: 0;
}

.sim-search-bar {
  position: relative;
  padding: 12px 16px 0;
  background: #fff;
}

.sim-search-bar .back-btn {
  position: absolute;
  left: 16px;
  top: 18px;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #333;
}

.sim-search-bar .search-input {
  width: 100%;
  height: 40px;
  border: none;
  border-radius: 20px;
  background: #f2f3f5;
  padding: 0 48px 0 40px;
  outline: none;
}

.sim-search-bar .search-btn {
  position: absolute;
  right: 24px;
  top: 18px;
  width: 28px;
  height: 28px;
  border: none;
  background: #ff4906;
  border-radius: 50%;
  cursor: pointer;
}

.sim-banner {
  width: 100%;
  display: block;
}

.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-mask.show {
  display: flex;
}

.modal-card {
  width: min(320px, 90vw);
  background: #fff;
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
}

.modal-card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  margin: 0 auto 12px;
  border-radius: 12px;
}

.modal-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.modal-card .primary-btn {
  margin-top: 16px;
  width: 100%;
  border: none;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff6a00, #ff4906);
  color: #fff;
  padding: 12px;
  font-size: 16px;
  cursor: pointer;
}

.diy-form {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px;
}

.diy-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.diy-row label {
  flex: 0 0 88px;
  background: #4f8df5;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  padding: 8px 6px;
  font-size: 14px;
}

.diy-row input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
}

.diy-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.diy-actions button {
  border: none;
  border-radius: 999px;
  padding: 14px;
  font-size: 16px;
  cursor: pointer;
}

.diy-actions .primary {
  background: linear-gradient(90deg, #5b86e5, #36d1dc);
  color: #fff;
}

.diy-actions .secondary {
  background: #fff;
  color: #4f8df5;
  border: 1px solid #4f8df5;
}

.cover-preview {
  width: min(240px, 60vw);
  margin: 12px auto;
  border-radius: 12px;
  overflow: hidden;
  background: #f3f4f6;
}

.cover-preview img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.upload-btn {
  display: block;
  width: 100%;
  border: 1px dashed #4f8df5;
  background: #fff;
  color: #4f8df5;
  border-radius: 999px;
  padding: 10px;
  cursor: pointer;
}
