.mg-page {
  min-height: 100vh;
  min-height: 100dvh;
  background: #f0f6ff;
}

.mg-navbar {
  height: 44px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 120;
}

.mg-back {
  position: absolute;
  left: 16px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #12151a;
  font-size: 20px;
  line-height: 1;
}

.mg-title {
  font-family: "Alibaba PuHuiTi 2.0", "PingFang SC", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #12151a;
}

.mg-body {
  padding: 12px 16px 88px;
}

.mg-search {
  height: 40px;
  border-radius: 8px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f2f3f5;
}

.mg-search input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  color: #12151a;
  font-size: 14px;
}

.mg-tabs {
  margin-top: 10px;
  border-radius: 10px;
  background: #ffffff;
  padding: 6px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.mg-tab {
  height: 32px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: #4b535c;
}

.mg-tab.active {
  background: #e6f0ff;
  color: #1f69ff;
  font-weight: 600;
}

.mg-list {
  margin-top: 12px;
  display: grid;
  gap: 12px;
}

.mg-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(31, 105, 255, 0.08);
  padding: 12px 16px;
}

.mg-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mg-kicker {
  font-size: 11px;
  color: #7b838c;
}

.mg-h3 {
  margin-top: 6px;
  font-size: 15px;
  font-weight: 700;
  color: #12151a;
  line-height: 22px;
}

.mg-desc {
  margin-top: 6px;
  color: #4b535c;
  font-size: 12px;
  line-height: 18px;
}

.mg-meta {
  margin-top: 8px;
  color: #7b838c;
  font-size: 11px;
}

.mg-tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 11px;
  line-height: 17px;
}

.mg-tag.blue {
  color: #1f69ff;
  background: #e6f0ff;
}

.mg-tag.green {
  color: #52c41a;
  background: #f6ffed;
}

.mg-tag.red {
  color: #f53b3b;
  background: #fff2f0;
}

.mg-tag.orange {
  color: #faad14;
  background: #fffbe6;
}

.mg-amount {
  font-family: "DingTalk JinBuTi", "PingFang SC", sans-serif;
  font-size: 22px;
  color: #12151a;
}

.mg-status-hero {
  text-align: center;
  padding: 16px 12px;
}

.mg-status-title {
  margin-top: 8px;
  font-size: 16px;
  color: #12151a;
  font-weight: 700;
}

.mg-status-sub {
  margin-top: 4px;
  font-size: 12px;
  color: #7b838c;
}

.mg-section-title {
  margin-bottom: 10px;
  font-family: "Alibaba PuHuiTi 2.0", "PingFang SC", sans-serif;
  font-size: 16px;
  color: #12151a;
  font-weight: 700;
}

.mg-kv {
  border-top: 1px solid rgba(18, 21, 26, 0.06);
  margin-top: 8px;
  padding-top: 6px;
}

.mg-kv-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
}

.mg-kv-k {
  font-size: 12px;
  color: #7b838c;
}

.mg-kv-v {
  font-size: 12px;
  color: #12151a;
  text-align: right;
}

.mg-kv-v--arrow {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0;
  line-height: 0;
  color: transparent;
}

.mg-kv-v--arrow::before {
  content: "";
  width: 16px;
  height: 16px;
  display: block;
  background: var(--icon-chevron-right-16) no-repeat center / 16px 16px;
}

.mg-form {
  display: grid;
  gap: 12px;
}

.mg-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  color: #4b535c;
}

.mg-input,
.mg-select,
.mg-textarea {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #f5f7fa;
  color: #12151a;
  padding: 11px 12px;
  outline: none;
  font-size: 14px;
}

.mg-textarea {
  min-height: 90px;
  resize: vertical;
}

.mg-input:focus,
.mg-select:focus,
.mg-textarea:focus {
  border-color: #1f69ff;
  background: #ffffff;
}

.mg-upload {
  display: flex;
  gap: 10px;
}

.mg-upload-box {
  width: 88px;
  height: 88px;
  border-radius: 8px;
  border: 1px dashed #d9d9d9;
  background: #fafafa;
  display: grid;
  place-items: center;
  color: #7b838c;
  font-size: 12px;
}

.mg-bottom {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 375px;
  background: #ffffff;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
}

.mg-btn {
  width: 100%;
  height: 44px;
  border: none;
  border-radius: 24px;
  background: #1f69ff;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(31, 105, 255, 0.3);
}

.mg-list-link {
  text-decoration: none;
  color: inherit;
}
