h2.page-header {
  margin: 10px 0 25px 0;
  padding-bottom: 15px;
}
.user-baseinfo {
  margin-bottom: 25px;
}
.user-baseinfo table tr td {
  color: #999;
}
@media (min-width: 992px) {
  .user-center .avatar-text,
  .user-center .avatar-img {
    height: 150px;
    width: 150px;
    border-radius: 150px;
    line-height: 150px;
    font-size: 70px;
  }
  .user-center .avatar-img {
    font-size: 0;
  }
  .user-center .avatar-img img {
    height: 150px;
    width: 150px;
    border-radius: 150px;
  }
}
.sidebar-toggle {
  display: none;
}
@media (max-width: 991px) {
  .sidenav {
    position: fixed;
    top: 50px;
    z-index: 1029;
    height: calc(100vh - 50px);
    padding: 20px 0 20px 0;
    min-width: 250px;
    overflow-y: auto;
    overflow-x: hidden;
    width: 250px;
    left: -250px;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
  }
  .sidebar-toggle {
    display: block;
    position: fixed;
    right: 20px;
    bottom: 70px;
    border-radius: 50%;
    background: #eee;
    font-size: 22px;
    padding: 10px;
    line-height: 30px;
    height: 50px;
    width: 50px;
    text-align: center;
    z-index: 999999;
  }
}
body.sidebar-open .sidenav {
  left: 0;
  width: 250px;
  box-shadow: 0 6px 27px rgba(0, 0, 0, 0.075);
}
body.sidebar-open .sidebar-toggle i:before {
  content: "\f00d";
}

.hm-auth-body {
  overflow: hidden;
}
.hm-auth-shell {
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.hm-auth-shell-scroll {
  overflow: hidden;
}
.hm-auth-body-locked {
  overflow: hidden;
}
.hm-auth-page {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 24px 16px 36px;
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 226, 150, 0.65), transparent 28%),
    linear-gradient(150deg, #2f6f3e 0%, #5c8f36 42%, #d8a84a 100%);
  color: #fff;
}
.hm-plain-body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding-top: 0 !important;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #2f6f3e;
}
.hm-auth-body-locked {
  overflow: hidden;
}
.hm-auth-shell {
  min-height: 100vh;
  min-height: 100svh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.hm-auth-shell-scroll {
  overflow-y: auto;
}
.hm-plain-body > header,
.hm-plain-body > footer,
.hm-plain-body .navbar,
.hm-plain-body .navbar-fixed-top,
.hm-plain-body .footer {
  display: none !important;
}
.hm-plain-body .hm-auth-page {
  margin: 0;
}
.hm-auth-hero {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
  padding: 18px 4px 16px;
  text-align: center;
}
.hm-auth-hero:before {
  content: "";
  display: block;
  width: 96px;
  height: 96px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(31, 95, 56, 0.28)),
    url("../img/hm/agri-photo-home-banner.webp") center/cover no-repeat;
  border: 4px solid rgba(255, 248, 220, 0.92);
  box-shadow:
    0 16px 34px rgba(24, 77, 45, 0.26),
    inset 0 0 0 2px rgba(255, 255, 255, 0.22);
}
.hm-auth-hero:after {
  content: "助农";
  position: absolute;
  top: 82px;
  left: 50%;
  transform: translateX(18px);
  padding: 4px 8px;
  border: 2px solid rgba(255, 248, 220, 0.95);
  border-radius: 999px;
  background: linear-gradient(135deg, #2f7c45, #d8a84a);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  box-shadow: 0 8px 18px rgba(24, 77, 45, 0.24);
}
.hm-badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 233, 178, 0.86);
  border-radius: 999px;
  background: #397845;
  color: #fff8e8;
  font-size: 13px;
  line-height: 1.3;
}
.hm-auth-hero h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.18;
  font-weight: 700;
}
.hm-auth-hero p {
  margin: 12px auto 0;
  max-width: 330px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  line-height: 1.7;
}
.hm-auth-card {
  max-width: 520px;
  margin: 0 auto;
  padding: 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 48px rgba(103, 0, 0, 0.22);
  color: #333;
}
.hm-keyboard-open .hm-auth-page {
  min-height: auto;
  padding-top: 12px;
  padding-bottom: calc(260px + env(safe-area-inset-bottom, 0px));
}
.hm-keyboard-open .hm-auth-hero {
  max-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  opacity: 0;
}
.hm-keyboard-open .hm-auth-card {
  margin-top: 0;
}
.hm-keyboard-open .hm-auth-tabs {
  position: sticky;
  top: 0;
  z-index: 2;
}
.hm-keyboard-open .hm-tabbar {
  opacity: 0;
  pointer-events: none;
  transform: translateY(calc(100% + 24px));
}
.hm-keyboard-open .hm-page-with-tabbar {
  padding-bottom: 24px;
}
.hm-auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 18px;
  padding: 4px;
  border-radius: 8px;
  background: #fff2dc;
}
.hm-auth-tabs a {
  display: block;
  padding: 10px 8px;
  border-radius: 6px;
  color: #2f6f3e;
  text-align: center;
  font-weight: 600;
}
.hm-auth-tabs a.active {
  background: #2f7c45;
  color: #fff;
}
.hm-form label {
  display: block;
  margin: 14px 0 7px;
  color: #285d36;
  font-size: 14px;
  font-weight: 600;
}
.hm-form input,
.hm-form select,
.hm-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #ead3bf;
  border-radius: 8px;
  background: #fffaf4;
  color: #2f2522;
  font-size: 16px;
  outline: none;
}
.hm-form textarea {
  min-height: 86px;
  resize: vertical;
}
.hm-form input:focus,
.hm-form select:focus,
.hm-form textarea:focus {
  border-color: #5c8f36;
  box-shadow: 0 0 0 3px rgba(217, 39, 47, 0.12);
}
.hm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.hm-submit {
  width: 100%;
  min-height: 48px;
  margin-top: 20px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #2f7c45, #f29b28);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(199, 22, 43, 0.28);
}
.hm-link {
  display: block;
  margin-top: 14px;
  color: #a82020;
  text-align: center;
  font-weight: 600;
}
.hm-captcha .input-group {
  width: 100%;
}
.hm-captcha-row {
  display: flex;
  align-items: stretch;
  width: 100%;
}
.hm-captcha-row input.form-control {
  flex: 1 1 auto;
  width: 1%;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.hm-captcha-row .input-group-btn {
  display: flex;
  width: 112px;
  padding: 0;
  border: 0;
}
.hm-captcha-row img {
  width: 112px;
  height: 46px;
  border: 1px solid #ead3bf;
  border-left: 0;
  border-radius: 0 8px 8px 0;
  background: #fffaf4;
  object-fit: cover;
  cursor: pointer;
}
.hm-dashboard {
  position: relative;
  z-index: 0;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  padding: 18px 14px 34px;
  background-color: #2f6f3e;
  color: #fff;
}
.hm-dashboard:before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  min-height: 100vh;
  min-height: 100svh;
  background:
    radial-gradient(circle at 78% 0%, rgba(246, 205, 103, 0.48), transparent 28%),
    linear-gradient(155deg, #2f6f3e 0%, #5c8f36 45%, #d8a84a 100%);
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  transform: translateZ(0);
}
.hm-dashboard > * {
  position: relative;
  z-index: 1;
}
.hm-page-with-tabbar {
  padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
}
.hm-home-dashboard,
.hm-report-dashboard,
.hm-invite-dashboard,
.hm-mine-dashboard {
  background: transparent;
}
.hm-home-dashboard:before,
.hm-report-dashboard:before {
  background-image:
    linear-gradient(180deg, rgba(28, 86, 48, 0.18), rgba(39, 96, 55, 0.74)),
    url("../img/hm/agri-photo-home-banner.webp"),
    linear-gradient(155deg, #2f6f3e 0%, #5c8f36 45%, #d8a84a 100%);
}
.hm-mine-dashboard:before {
  background-image:
    linear-gradient(180deg, rgba(28, 86, 48, 0.18), rgba(39, 96, 55, 0.74)),
    url("../img/hm/agri-photo-field-card.webp"),
    linear-gradient(155deg, #1f5f38 0%, #5c8f36 45%, #d8a84a 100%);
}
.hm-dash-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  max-width: 760px;
  margin: 0 auto 14px;
  padding: 14px 0 8px;
}
.hm-dash-hero h1 {
  margin: 10px 0 8px;
  font-size: 28px;
  line-height: 1.18;
}
.hm-dash-hero p,
.hm-section-copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  line-height: 1.7;
}
.hm-logout,
.hm-mini-btn {
  flex: 0 0 auto;
  padding: 7px 12px;
  border-radius: 999px;
  background: #397845;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.hm-section {
  position: relative;
  max-width: 760px;
  margin: 14px auto 0;
  padding: 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: #3a2520;
  box-shadow: 0 18px 38px rgba(26, 76, 43, 0.18);
}
.hm-luxe-panel:before,
.hm-home-card:before,
.hm-report-card:before,
.hm-invite-card:before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(246, 196, 102, 0.42);
  border-radius: 8px;
  pointer-events: none;
}
.hm-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.hm-title-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.hm-section-title h2 {
  margin: 0;
  color: #285d36;
  font-size: 20px;
  line-height: 1.25;
}
.hm-section-title span {
  color: #be7c20;
  font-size: 13px;
  font-weight: 700;
}
.hm-profile-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 225, 0.96));
}
.hm-user-line {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hm-edit-profile-btn {
  margin-left: auto;
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff0d7;
  color: #2f6f3e;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.hm-profile-brief {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 246, 228, 0.8);
  color: #8d7169;
  font-size: 13px;
  line-height: 1.5;
}
.hm-profile-brief span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hm-profile-edit-page {
  margin-top: 18px;
}
.hm-profile-edit-copy {
  margin: -4px 0 12px;
  color: #8d7169;
}
.hm-profile-form {
  margin-top: 2px;
}
.hm-profile-form .hm-submit {
  margin-top: 18px;
}
.hm-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2f7c45, #f2b23f);
  color: #fff;
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  line-height: 54px;
}
.hm-user-line strong,
.hm-user-line span {
  display: block;
}
.hm-user-line span {
  margin-top: 5px;
  color: #8d7169;
  font-size: 13px;
}
.hm-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}
.hm-stat-grid a,
.hm-stat-grid div {
  min-width: 0;
  padding: 12px 8px;
  border-radius: 8px;
  background: #fff5e3;
  color: #6f2b22;
}
.hm-stat-grid span {
  display: block;
  color: #9c7f73;
  font-size: 12px;
}
.hm-stat-grid strong {
  display: block;
  margin-top: 6px;
  font-size: 18px;
  line-height: 1.2;
  word-break: break-all;
}
.hm-benefit-table {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid #76574f;
  border-radius: 8px;
  background: #fffaf4;
  color: #35231f;
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
}
.hm-benefit-table > div {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 7px 5px;
  border-right: 1px solid #76574f;
  border-bottom: 1px solid #76574f;
  word-break: break-all;
}
.hm-benefit-table > div:nth-child(3n) {
  border-right: 0;
}
.hm-benefit-table > div:nth-last-child(-n+3) {
  border-bottom: 0;
}
.hm-benefit-table > div:nth-child(-n+3),
.hm-benefit-table > div:nth-child(n+7):nth-child(-n+9) {
  font-weight: 700;
}
.hm-home-card,
.hm-report-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 250, 240, 0.98)),
    url("../img/success.svg") right 18px top 18px/72px 72px no-repeat;
}
.hm-life-visual {
  overflow: hidden;
  margin: -6px -6px 16px;
  border-radius: 8px;
  aspect-ratio: 16 / 9;
  background: #2f6f3e;
}
.hm-life-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hm-home-card .hm-section-copy,
.hm-report-card .hm-section-copy,
.hm-invite-card .hm-section-copy {
  color: #725047;
}
.hm-select-label {
  display: block;
  margin: 14px 0 8px;
  color: #285d36;
  font-size: 14px;
  font-weight: 700;
}
.hm-premium-select {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #e6bf82;
  border-radius: 8px;
  background: linear-gradient(180deg, #fffdf8, #fff3dc);
  color: #6f2b22;
  font-size: 16px;
  font-weight: 700;
}
.hm-amount-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 16px;
}
.hm-amount {
  min-height: 38px;
  border: 1px solid #eed2aa;
  border-radius: 8px;
  background: #fff7e8;
  color: #8c2a22;
  font-weight: 700;
}
.hm-amount.active {
  border-color: #2f7c45;
  background: #2f7c45;
  color: #fff;
}
.hm-report-form label {
  display: block;
  margin: 12px 0 7px;
  color: #285d36;
  font-size: 14px;
  font-weight: 700;
}
.hm-report-form input,
.hm-report-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #ead3bf;
  border-radius: 8px;
  background: #fffaf4;
  color: #2f2522;
  font-size: 16px;
}
.hm-report-form textarea {
  min-height: 210px;
  line-height: 1.6;
  resize: vertical;
}
.hm-paste-field {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.hm-paste-field input {
  flex: 1;
  min-width: 0;
}
.hm-paste-btn {
  flex: 0 0 68px;
  border: 0;
  border-radius: 8px;
  background: #2f7c45;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.hm-report-form-collapsed {
  display: none;
}
.hm-report-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px 12px calc(18px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: rgba(15, 52, 30, 0.68);
}
.hm-report-modal.show {
  display: flex;
}
.hm-report-dialog {
  position: relative;
  width: min(100%, 350px);
  margin: 0;
  padding: 24px 18px 18px;
  border: 1px solid rgba(255, 220, 148, 0.84);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 225, 142, 0.5), transparent 36%),
    linear-gradient(180deg, #fffaf1, #ffe6b4);
  color: #3a2520;
  box-shadow: 0 22px 48px rgba(26, 76, 43, 0.34);
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.hm-report-dialog strong,
.hm-report-dialog .hm-modal-summary {
  display: block;
}
.hm-report-dialog strong {
  color: #285d36;
  font-size: 20px;
  line-height: 1.3;
}
.hm-report-dialog .hm-modal-summary {
  margin-top: 8px;
  padding: 9px 10px;
  border-radius: 8px;
  background: #fff5de;
  color: #8d4b36;
  font-size: 13px;
  font-weight: 800;
}
.hm-modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #397845;
  color: #fff;
  font-size: 24px;
  line-height: 28px;
}
.hm-form-tip {
  margin-top: 12px;
  padding: 9px 10px;
  border-radius: 8px;
  background: #fff5de;
  color: #8b5a44;
  font-size: 13px;
  line-height: 1.45;
}
.hm-form-tip.error {
  background: #ffe4e1;
  color: #2f7c45;
}
.hm-form-tip.success {
  background: #fff0c3;
  color: #8b4a12;
}
.hm-benefit-preview,
.hm-muted-panel,
.hm-invite-code {
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  background: #fff5e3;
  color: #754035;
  line-height: 1.6;
}
.hm-benefit-preview strong {
  color: #2f7c45;
}
.hm-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.hm-feature-grid div {
  padding: 12px;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff8e8, #fff1d8);
  color: #733229;
}
.hm-feature-grid strong,
.hm-feature-grid span {
  display: block;
}
.hm-feature-grid span {
  margin-top: 5px;
  color: #917064;
  font-size: 12px;
  line-height: 1.45;
}
.hm-strategy-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.hm-strategy-strip div {
  min-width: 0;
  padding: 11px 9px;
  border-radius: 8px;
  background: linear-gradient(180deg, #eef7e4, #fff3d4);
  color: #285d36;
  box-shadow: inset 0 0 0 1px rgba(47, 124, 69, 0.16);
}
.hm-strategy-strip strong,
.hm-strategy-strip span {
  display: block;
}
.hm-strategy-strip strong {
  font-size: 13px;
  line-height: 1.25;
}
.hm-strategy-strip span {
  margin-top: 5px;
  color: #7f6d50;
  font-size: 11px;
  line-height: 1.4;
}
.hm-material-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.hm-material-card {
  overflow: hidden;
  min-width: 0;
  border-radius: 8px;
  background: #fff8e8;
  color: #285d36;
  box-shadow: inset 0 0 0 1px rgba(236, 207, 156, 0.7);
}
.hm-material-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1.6 / 1;
  object-fit: cover;
}
.hm-material-card strong,
.hm-material-card span {
  display: block;
  padding: 0 10px;
}
.hm-material-card strong {
  padding-top: 9px;
  font-size: 15px;
  line-height: 1.25;
}
.hm-material-card span {
  padding-bottom: 10px;
  margin-top: 4px;
  color: #8f736a;
  font-size: 12px;
  line-height: 1.35;
}
.hm-material-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.hm-material-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px;
  border-radius: 8px;
  background: #fff8e8;
  color: #285d36;
  box-shadow: inset 0 0 0 1px rgba(236, 207, 156, 0.7);
}
.hm-material-row img {
  width: 96px;
  height: 78px;
  border-radius: 8px;
  object-fit: cover;
}
.hm-material-row strong,
.hm-material-row span {
  display: block;
}
.hm-material-row strong {
  font-size: 16px;
  line-height: 1.25;
}
.hm-material-row span {
  margin-top: 6px;
  color: #8f736a;
  font-size: 12px;
  line-height: 1.5;
}
.hm-material-detail {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.hm-material-detail article {
  padding: 13px 14px;
  border-radius: 8px;
  background: #fff8e8;
  box-shadow: inset 0 0 0 1px rgba(236, 207, 156, 0.7);
}
.hm-material-detail strong {
  display: block;
  color: #285d36;
  font-size: 16px;
}
.hm-material-detail p {
  margin: 7px 0 0;
  color: #725047;
  font-size: 14px;
  line-height: 1.75;
}
.hm-action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.hm-action-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #e7f1dc;
  color: #2f7c45;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(47, 124, 69, 0.14);
}
.hm-action-link:nth-child(2) {
  background: #fff2cd;
  color: #7a5a16;
  box-shadow: inset 0 0 0 1px rgba(216, 168, 74, 0.2);
}
.hm-submit-secondary {
  background: linear-gradient(135deg, #d8a84a, #2f7c45);
}
.hm-image-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.hm-image-pair figure {
  position: relative;
  overflow: hidden;
  min-width: 0;
  margin: 0;
  border-radius: 8px;
  background: #2f6f3e;
  box-shadow: inset 0 0 0 1px rgba(247, 202, 116, 0.42);
}
.hm-image-pair img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.1;
  object-fit: cover;
}
.hm-image-pair figcaption {
  position: absolute;
  right: 8px;
  bottom: 8px;
  left: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(28, 86, 48, 0.72);
  color: #fff8e6;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}
.hm-invite-card {
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 14%, rgba(251, 188, 64, 0.32), transparent 24%),
    rgba(255, 255, 255, 0.96);
}
.hm-invite-dashboard {
  background: transparent;
}
.hm-invite-dashboard:before {
  background-image:
    linear-gradient(180deg, rgba(28, 86, 48, 0.18), rgba(39, 96, 55, 0.74)),
    url("../img/hm/agri-photo-harvest-card.webp"),
    linear-gradient(155deg, #1f5f38 0%, #5c8f36 45%, #d8a84a 100%);
}
.hm-lottery-stage {
  position: relative;
  display: grid;
  justify-items: center;
  margin: 2px -4px 16px;
  padding: 16px 10px 20px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 246, 205, 0.92), rgba(249, 190, 82, 0.28) 43%, rgba(47, 124, 69, 0.1) 70%),
    linear-gradient(180deg, rgba(47, 124, 69, 0.1), rgba(255, 239, 196, 0.52));
}
.hm-lottery-ribbon {
  position: relative;
  z-index: 2;
  margin-bottom: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2f7c45, #f0a838);
  color: #fff8e6;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(47, 124, 69, 0.22);
}
.hm-wheel-wrap {
  position: relative;
  width: min(76vw, 286px);
  height: min(76vw, 286px);
}
.hm-wheel {
  position: absolute;
  inset: 0;
  --wheel-rotation: 0deg;
  border: 12px solid #f7cc65;
  border-radius: 50%;
  background:
    radial-gradient(circle, #fff8d8 0 20%, transparent 21%),
    conic-gradient(#2f7c45 0 45deg, #fff2bf 45deg 90deg, #d93631 90deg 135deg, #ffe0a2 135deg 180deg, #2f7c45 180deg 225deg, #fff2bf 225deg 270deg, #d93631 270deg 315deg, #ffe0a2 315deg 360deg);
  box-shadow: 0 18px 34px rgba(158, 57, 0, 0.34), inset 0 0 0 5px rgba(255, 255, 255, 0.4);
  transform: rotate(var(--wheel-rotation));
  transition: transform 3.5s cubic-bezier(0.12, 0.72, 0.08, 1);
}
.hm-wheel span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46px;
  margin: -10px 0 0 -23px;
  color: #8e171f;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  transform: rotate(var(--angle)) translateY(calc(min(76vw, 286px) / -2 + 48px)) rotate(calc((var(--angle) + var(--wheel-rotation)) * -1));
}
.hm-wheel span:nth-child(1) { --angle: 22.5deg; }
.hm-wheel span:nth-child(2) { --angle: 67.5deg; }
.hm-wheel span:nth-child(3) { --angle: 112.5deg; }
.hm-wheel span:nth-child(4) { --angle: 157.5deg; }
.hm-wheel span:nth-child(5) { --angle: 202.5deg; }
.hm-wheel span:nth-child(6) { --angle: 247.5deg; }
.hm-wheel span:nth-child(7) { --angle: 292.5deg; }
.hm-wheel span:nth-child(8) { --angle: 337.5deg; }
.hm-wheel-pointer {
  position: absolute;
  top: 40px;
  left: 50%;
  z-index: 4;
  width: 0;
  height: 0;
  margin-left: -12px;
  border-right: 12px solid transparent;
  border-left: 12px solid transparent;
  border-top: 24px solid #2f7c45;
  filter: drop-shadow(0 4px 3px rgba(91, 0, 0, 0.25));
}
.hm-wheel-core {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 5;
  width: 78px;
  height: 78px;
  margin: -39px 0 0 -39px;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #fffce9, #ffd36f 44%, #d0202c 100%);
  color: #b81925;
  text-align: center;
  font-size: 17px;
  font-weight: 800;
  line-height: 78px;
  box-shadow: 0 9px 18px rgba(100, 0, 0, 0.24), inset 0 0 0 4px rgba(255, 255, 255, 0.35);
}
.hm-prize-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 4px 0 14px;
}
.hm-prize-grid div {
  min-width: 0;
  padding: 10px;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff9e9, #ffe8b7);
  color: #793026;
}
.hm-prize-grid strong,
.hm-prize-grid span {
  display: block;
}
.hm-prize-grid strong {
  font-size: 13px;
}
.hm-prize-grid span {
  margin-top: 4px;
  color: #9a6d57;
  font-size: 12px;
  line-height: 1.35;
}
.hm-invite-code {
  font-weight: 800;
  text-align: center;
}
.hm-agent-card {
  display: block;
  gap: 12px;
  margin-top: 12px;
  padding: 16px 14px 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, #eaf5df, #fff2cd);
  color: #285d36;
  box-shadow: inset 0 0 0 1px rgba(105, 150, 73, 0.22);
}
.hm-agent-title span,
.hm-agent-title strong {
  display: block;
}
.hm-agent-title {
  margin-bottom: 14px;
}
.hm-agent-title span {
  color: #7b8a60;
  font-size: 12px;
}
.hm-agent-title strong {
  margin-top: 3px;
  font-size: 18px;
  line-height: 1.25;
}
.hm-agent-counts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.hm-agent-counts em {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(47, 124, 69, 0.1);
  color: #285d36;
  font-style: normal;
}
.hm-agent-counts em span {
  color: #72845f;
  font-size: 12px;
  line-height: 1.2;
}
.hm-agent-counts em strong {
  flex: 0 0 auto;
  color: #2f7c45;
  font-size: 18px;
  line-height: 1;
  white-space: nowrap;
}
.hm-copy-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.hm-copy-row input {
  min-width: 0;
  flex: 1 1 auto;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #ead3bf;
  border-radius: 8px;
  background: #fffaf4;
  color: #63312b;
}
.hm-copy-row button {
  flex: 0 0 72px;
  border: 0;
  border-radius: 8px;
  background: #2f7c45;
  color: #fff;
  font-weight: 800;
}
.hm-qr-box {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 16px;
  border-radius: 8px;
  background: linear-gradient(180deg, #fffaf0, #fff1d8);
  color: #8b4a38;
  font-size: 13px;
}
.hm-qr-box img {
  width: 180px;
  height: 180px;
  border-radius: 8px;
  background: #fff;
}
.hm-friend-list {
  display: grid;
  gap: 10px;
}
.hm-friend-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 10px;
  padding: 12px;
  border-radius: 8px;
  background: #fff7e8;
}
.hm-friend-item strong,
.hm-friend-item span,
.hm-friend-item em {
  display: block;
}
.hm-friend-item strong {
  color: #753329;
}
.hm-friend-item span {
  color: #8f736a;
  font-size: 12px;
}
.hm-friend-item em {
  grid-row: span 2;
  align-self: center;
  color: #2f7c45;
  font-style: normal;
  font-weight: 700;
  font-size: 12px;
}
.hm-lottery-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 52, 30, 0.62);
}
.hm-lottery-modal.show {
  display: flex;
}
.hm-lottery-dialog {
  width: min(100%, 320px);
  padding: 28px 20px 20px;
  border: 1px solid rgba(255, 220, 148, 0.82);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 222, 128, 0.54), transparent 38%),
    linear-gradient(180deg, #fffaf0, #ffe2aa);
  color: #285d36;
  text-align: center;
  box-shadow: 0 22px 46px rgba(15, 52, 30, 0.34);
}
.hm-lottery-dialog strong,
.hm-lottery-dialog span {
  display: block;
}
.hm-lottery-dialog strong {
  font-size: 22px;
}
.hm-lottery-dialog span {
  margin-top: 10px;
  color: #2f7c45;
  font-size: 18px;
  font-weight: 900;
}
.hm-lottery-dialog button {
  width: 100%;
  min-height: 44px;
  margin-top: 18px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #2f7c45, #f0a838);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}
.hm-lottery-token {
  display: none;
}
.hm-lottery-record-list {
  display: grid;
  gap: 10px;
}
.hm-lottery-record-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff8e8, #fff0d1);
}
.hm-lottery-record-item strong {
  color: #2f7c45;
}
.hm-lottery-record-item span {
  min-width: 0;
  color: #704239;
  font-size: 13px;
  font-weight: 800;
}
.hm-lottery-record-item em {
  color: #9a6d57;
  font-size: 12px;
  font-style: normal;
}
.hm-agent-tree-wrap {
  overflow-x: auto;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
}
.hm-tree-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: -2px 0 12px;
}
.hm-tree-actions button {
  min-height: 34px;
  padding: 6px 12px;
  border: 0;
  border-radius: 8px;
  background: #e7f1dc;
  color: #2f7c45;
  font-size: 13px;
  font-weight: 800;
}
.hm-agent-tree {
  min-width: 100%;
}
.hm-agent-tree ul {
  position: relative;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0 0 0 18px;
  list-style: none;
}
.hm-agent-tree > ul {
  padding-left: 0;
}
.hm-agent-tree ul ul {
  margin-top: 10px;
  margin-left: 8px;
  border-left: 2px solid rgba(47, 124, 69, 0.22);
}
.hm-agent-tree li {
  position: relative;
  min-width: 0;
}
.hm-agent-tree li.is-collapsed > ul {
  display: none;
}
.hm-agent-tree ul ul > li:before {
  content: "";
  position: absolute;
  top: 26px;
  left: -18px;
  width: 16px;
  height: 2px;
  background: rgba(47, 124, 69, 0.22);
}
.hm-agent-node {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  min-width: 220px;
  padding: 11px 12px;
  border-radius: 8px;
  background: #fff8e8;
  color: #4d3b2f;
  box-shadow: inset 0 0 0 1px rgba(236, 207, 156, 0.82);
}
.hm-agent-node strong,
.hm-agent-node span,
.hm-agent-node em,
.hm-agent-node small {
  display: block;
}
.hm-agent-node strong {
  color: #285d36;
  font-size: 15px;
  line-height: 1.25;
}
.hm-agent-node span {
  color: #8f736a;
  font-size: 12px;
  line-height: 1.35;
}
.hm-agent-node em {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: start;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e7f1dc;
  color: #2f7c45;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}
.hm-agent-node small {
  grid-column: 1 / -1;
  color: #a06e1d;
  font-size: 12px;
  font-weight: 700;
}
.hm-agent-toggle {
  grid-column: 2;
  grid-row: 3 / span 2;
  align-self: end;
  min-height: 30px;
  padding: 4px 9px;
  border: 0;
  border-radius: 8px;
  background: #2f7c45;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.hm-record-list {
  display: grid;
  gap: 10px;
}
.hm-record-visual {
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  padding: 10px;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff8e8, #fff0d3);
}
.hm-record-visual img {
  width: 92px;
  height: 92px;
  border-radius: 8px;
  object-fit: cover;
}
.hm-record-visual strong,
.hm-record-visual span {
  display: block;
}
.hm-record-visual strong {
  color: #285d36;
  font-size: 16px;
}
.hm-record-visual span {
  margin-top: 6px;
  color: #8f736a;
  font-size: 12px;
  line-height: 1.55;
}
.hm-record-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  background: #fff7e8;
}
.hm-record-item strong,
.hm-record-item span,
.hm-record-item em {
  display: block;
}
.hm-record-item span {
  margin-top: 5px;
  color: #8f736a;
  font-size: 12px;
}
.hm-record-item em {
  color: #2f7c45;
  font-style: normal;
  font-weight: 700;
  text-align: right;
}
.hm-tabbar {
  position: fixed;
  right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom, 0px));
  left: 12px;
  z-index: 20;
  display: flex;
  flex-wrap: nowrap;
  max-width: 760px;
  margin: 0 auto;
  padding: 8px;
  border: 1px solid rgba(255, 214, 152, 0.75);
  border-radius: 8px;
  background: #fffaf0;
  box-shadow: 0 16px 34px rgba(26, 76, 43, 0.24);
}
.hm-tabbar a {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 52px;
  padding: 0 2px;
  border-radius: 8px;
  color: #8e3129;
  font-size: 10px;
  font-weight: 700;
}
.hm-tabbar a i {
  display: block;
  width: 24px;
  height: 24px;
  margin-bottom: 3px;
  border-radius: 50%;
  background: #fff1d2;
  color: #2f7c45;
  font-style: normal;
  line-height: 24px;
  text-align: center;
}
.hm-tabbar a span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
}
.hm-tabbar a.active {
  background: linear-gradient(135deg, #2f7c45, #f2a335);
  color: #fff;
}
.hm-tabbar a.active i {
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
}
.hm-benefit-summary {
  margin-top: 16px;
  padding: 14px;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff8e8, #fff0d2);
  box-shadow: inset 0 0 0 1px rgba(221, 170, 86, 0.42);
}
.hm-summary-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.hm-summary-head strong,
.hm-summary-head span {
  display: block;
}
.hm-summary-head strong {
  color: #285d36;
  font-size: 17px;
  line-height: 1.25;
}
.hm-summary-head span {
  max-width: 150px;
  color: #9a6d57;
  font-size: 12px;
  line-height: 1.45;
  text-align: right;
}
.hm-summary-metrics-table {
  overflow: hidden;
  margin-top: 12px;
  border: 1px solid rgba(236, 207, 156, 0.8);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}
.hm-summary-metrics-row {
  display: grid;
}
.hm-summary-metrics-triple {
  grid-template-columns: repeat(3, 1fr);
}
.hm-summary-metrics-row > div {
  min-width: 0;
  padding: 11px 10px;
  border-right: 1px solid rgba(236, 207, 156, 0.8);
  border-bottom: 1px solid rgba(236, 207, 156, 0.8);
  color: #793026;
  font-size: 13px;
  line-height: 1.35;
  word-break: break-all;
  text-align: center;
}
.hm-summary-metrics-row > div:last-child {
  border-right: 0;
}
.hm-summary-metrics-head > div {
  background: #fff4da;
  color: #285d36;
  font-weight: 700;
}
.hm-summary-metrics-values > div {
  color: #2f7c45;
  font-weight: 800;
}
.hm-summary-metrics-row:last-child > div {
  border-bottom: 0;
}
.hm-reward-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.hm-reward-item {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 211, 111, 0.5), transparent 34%),
    #fffaf0;
  box-shadow: inset 0 0 0 1px rgba(236, 207, 156, 0.7);
}
.hm-reward-item:before {
  content: "";
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(31, 95, 56, 0.30)),
    url("../img/hm/agri-photo-field-card.webp") center/cover no-repeat;
  border: 3px solid rgba(255, 248, 220, 0.95);
  box-shadow:
    0 8px 18px rgba(47, 124, 69, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.26);
}
.hm-reward-item:nth-child(2):before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(31, 95, 56, 0.30)),
    url("../img/hm/agri-photo-harvest-card.webp") center/cover no-repeat;
}
.hm-reward-item:after {
  content: "基";
  position: absolute;
  left: 45px;
  top: 16px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2f7c45;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 22px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(47, 124, 69, 0.24);
}
.hm-reward-item:nth-child(2):after {
  content: "邀";
  background: #d8a84a;
  color: #285d36;
}
.hm-reward-item div {
  min-width: 0;
  flex: 1;
}
.hm-reward-item strong,
.hm-reward-item span,
.hm-reward-item em {
  display: block;
}
.hm-reward-item strong {
  color: #733229;
  font-size: 15px;
}
.hm-reward-item span {
  margin-top: 4px;
  color: #9a6d57;
  font-size: 12px;
  line-height: 1.35;
}
.hm-reward-item em {
  flex: 0 0 112px;
  color: #2f7c45;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.35;
  text-align: right;
}
.hm-benefit-muted {
  background: #f3f3f3;
  border-radius: 8px;
  padding: 10px;
}
.hm-benefit-active {
  background: linear-gradient(135deg, #ffeb9f, #ffd04f);
  border-radius: 8px;
  padding: 10px;
}
@media (max-width: 380px) {
  .hm-dashboard {
    padding-left: 10px;
    padding-right: 10px;
  }
  .hm-section {
    padding: 15px;
  }
  .hm-stat-grid,
  .hm-amount-strip,
  .hm-strategy-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 768px) {
  .hm-auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 36px;
    padding: 48px 24px;
  }
  .hm-register-page {
    align-items: flex-start;
  }
  .hm-auth-hero,
  .hm-auth-card {
    margin: 0;
  }
  .hm-keyboard-open .hm-auth-page {
    padding-bottom: 48px;
  }
}
@media (max-width: 360px) {
  .hm-auth-card {
    padding: 16px;
  }
  .hm-auth-hero h1 {
    font-size: 26px;
  }
  .hm-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .hm-summary-metrics {
    grid-template-columns: 1fr;
  }
  .hm-reward-item {
    align-items: flex-start;
  }
  .hm-reward-item em {
    flex-basis: 92px;
  }
}
/*# sourceMappingURL=user.css.map */
