* {
  box-sizing: border-box;
}

body,
h1,
h2,
h3,
p,
ul,
ol,
li,
form label,
form input,
form select,
button {
  margin: 0;
  padding: 0;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: #f0f2f5;
  color: #1a1a1a;
  min-height: 100vh;
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px 24px;
}

.header {
  margin-bottom: 16px;
}

.header h1 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 6px;
}

.header p {
  color: #666;
  font-size: 14px;
}

.layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 860px) {
  .layout {
    grid-template-columns: 1fr;
  }
}

.panel {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  padding: 24px;
}

form label {
  display: block;
  margin-bottom: 18px;
}

form label span {
  display: block;
  font-size: 13px;
  color: #666;
  margin-bottom: 6px;
}

form label .hint {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #999;
}

form input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #dcdfe6;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

form input:focus {
  border-color: #1677ff;
}

#top-time-root {
  width: 100%;
  min-height: 40px;
}

#top-time-root .n-time-picker {
  width: 100%;
}

#top-time-root .n-input {
  width: 100%;
  --n-height: 40px;
}

#top-time-root .n-input-wrapper {
  align-items: center;
  min-height: 40px;
}

#top-time-root .n-input__input-el {
  height: 40px;
  line-height: 40px;
  padding-top: 0;
  padding-bottom: 0;
}

#top-time-root .n-input__placeholder {
  top: 0;
  bottom: 0;
  height: 40px;
  line-height: 40px;
  display: flex;
  align-items: center;
  padding-top: 0;
  padding-bottom: 0;
}
.n-input__placeholder span{
  margin-bottom: 0px !important;
}

#top-time-root .n-input__suffix,
#top-time-root .n-input__prefix {
  align-items: center;
}

.top-time-native {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #dcdfe6;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  background: #fff;
}

.top-time-native:focus {
  border-color: #1677ff;
}

#amount-root {
  width: 100%;
  min-height: 32px;
}

#amount-root .n-tag--checked,
#amount-root .n-tag--checked .n-tag__content {
  color: #fff !important;
  margin-bottom: 0px !important;
}

.amount-fallback {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.amount-fallback-tag {
  height: 32px;
  padding: 0 14px;
  border: 1px solid #dcdfe6;
  border-radius: 6px;
  background: #f5f5f5;
  color: #333;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.amount-fallback-tag:hover {
  border-color: #1677ff;
  color: #1677ff;
}

.amount-fallback-tag.is-active {
  background: #1677ff;
  border-color: #1677ff;
  color: #fff;
}

#datetime-fields-root {
  width: 100%;
}

#datetime-fields-root .n-date-picker {
  width: 100%;
}

.datetime-fallback label {
  display: block;
  margin-bottom: 18px;
}

.datetime-fallback label span {
  display: block;
  font-size: 13px;
  color: #666;
  margin-bottom: 6px;
}

.datetime-native {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #dcdfe6;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  background: #fff;
}

.datetime-native:focus {
  border-color: #1677ff;
}

#datetime-fields-root .n-input {
  width: 100%;
  --n-height: 40px;
}

#datetime-fields-root .n-input-wrapper {
  align-items: center;
  min-height: 40px;
}

#datetime-fields-root .n-input__input-el {
  height: 40px;
  line-height: 40px;
}

#datetime-fields-root .n-input__placeholder {
  top: 0;
  bottom: 0;
  height: 40px;
  line-height: 40px;
  display: flex;
  align-items: center;
}

#region-root {
  width: 100%;
}

#region-root .region-input {
  width: 100%;
  cursor: pointer;
}

.region-native {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #dcdfe6;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  background: #fff;
}

.region-native:focus {
  border-color: #1677ff;
}

#region-root .n-input {
  --n-height: 40px;
}

#region-root .n-input-wrapper {
  align-items: center;
  min-height: 40px;
}

#region-root .n-input__input-el {
  height: 40px;
  line-height: 40px;
  cursor: pointer;
}

#region-root .n-input__placeholder {
  top: 0;
  bottom: 0;
  height: 40px;
  line-height: 40px;
  display: flex;
  align-items: center;
}

.actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

button {
  height: 40px;
  padding: 0 20px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: #1677ff;
  color: #fff;
  flex: 1;
}

.btn-primary:hover {
  background: #4096ff;
}

.btn-primary:disabled {
  background: #a0cfff;
  cursor: not-allowed;
}

.btn-secondary {
  background: #f5f5f5;
  color: #333;
  border: 1px solid #dcdfe6;
}

.error {
  margin-top: 14px;
  color: #ff4d4f;
  font-size: 13px;
  line-height: 1.5;
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.preview-header h2 {
  font-size: 16px;
  font-weight: 600;
}

.btn-link {
  font-size: 14px;
  color: #1677ff;
  text-decoration: none;
}

.btn-link:hover {
  text-decoration: underline;
}

.preview-box {
  background: #fafafa;
  border: 1px dashed #dcdfe6;
  border-radius: 8px;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 16px;
}

.preview-box .placeholder {
  color: #999;
  font-size: 14px;
}

.preview-stage {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.preview-stage img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.phone-eye-hit {
  position: absolute;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 4px;
}

.phone-eye-hit:hover {
  background: rgba(22, 119, 255, 0.12);
  outline: 1px dashed rgba(22, 119, 255, 0.5);
}

.phone-eye-hit:disabled {
  cursor: wait;
}
