:root {
  --gov-primary: #1565c0;
  --gov-primary-dark: #0d47a1;
  --gov-primary-light: #1976d2;
  --gov-primary-lighter: #42a5f5;
  --gov-primary-pale: #e8f2fc;
  --gov-primary-soft: #f0f6fd;
  --gov-gradient: linear-gradient(135deg, #0d47a1 0%, #1976d2 55%, #2196f3 100%);
  --gov-gradient-soft: linear-gradient(160deg, #1565c0, #42a5f5);
  --gov-page-bg: #f0f4f8;
  --gov-card-bg: #ffffff;
  --gov-border: #dce6f2;
  --gov-border-light: #eef3f9;
  --gov-text: #333333;
  --gov-text-secondary: #666666;
  --gov-text-muted: #999999;
  --gov-danger: #e53935;
  --gov-warning: #f57c00;
  --gov-warning-bg: #fff8e1;
  --gov-success: #2e7d32;
  --gov-success-bg: #e8f5e9;
  --gov-btn-hover: #1256a8;
  --gov-btn-active: #0d47a1;
  --gov-radius: 6px;
  --gov-shadow: 0 2px 10px rgba(21, 101, 192, 0.12);
}

html,
body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--gov-page-bg);
  color: var(--gov-text);
  font-family: "微软雅黑", "PingFang SC", "Helvetica Neue", helvetica, arial,
    sans-serif;
}
ul {
  list-style: none; /* 隐藏小点 */
}
.dis-no {
  display: none;
}

.bottom-back-div {
  width: 100%;
  position: fixed;
  z-index: 2;
  bottom: 0;
  text-align: center;
  vertical-align: middle;
}

.bottom-bakc-btn {
  width: 200px;
  height: 35px;
  color: #ffffff;
  border: 0;
  border-radius: var(--gov-radius);
  outline-style: none;
  background: var(--gov-gradient);
  box-shadow: var(--gov-shadow);
}

.bottom-bakc-btn:active {
  background: var(--gov-btn-active);
}

/* 移动端表单 - 响应式输入框 */
.input-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 0 12px;
  box-sizing: border-box;
  width: 100%;
}

.input-label {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 118px;
  max-width: 132px;
  text-align: right;
  font-size: 16px !important;
  font-weight: 500;
  color: var(--gov-text);
  line-height: 1.4;
}

.input-label::before {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background: no-repeat center / contain;
}

.input-label--phone::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231565c0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.12.86.3 1.7.54 2.5a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.8.24 1.64.42 2.5.54A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
}

.input-label--idcard::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231565c0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='8.5' cy='11' r='1.5' fill='%231565c0' stroke='none'/%3E%3Cpath d='M12 10h6M12 14h4'/%3E%3C/svg%3E");
}

.user-info-input,
.user-info-text {
  flex: 1 1 160px;
  min-width: 0;
  max-width: min(280px, calc(100vw - 140px));
  width: auto;
  height: 44px;
  font-size: 16px;
  border-radius: var(--gov-radius);
  border: 1px solid var(--gov-border);
  font-family: "微软雅黑", helvetica, arial;
  text-indent: 1em;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  background: var(--gov-card-bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.user-info-input:focus,
.user-info-text:focus,
.code-input:focus {
  border-color: var(--gov-primary-light);
  outline: none;
  box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.15);
}

.user-info-text {
  height: 150px;
  padding: 8px;
  text-indent: 0;
  resize: vertical;
}

.code-group {
  flex: 1 1 160px;
  min-width: 0;
  max-width: min(280px, calc(100vw - 140px));
  display: flex;
  align-items: center;
  gap: 8px;
}

.code-input {
  flex: 1;
  min-width: 0;
  height: 44px;
  font-size: 16px;
  border-radius: var(--gov-radius);
  border: 1px solid var(--gov-border);
  font-family: "微软雅黑", helvetica, arial;
  text-indent: 1em;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  background: var(--gov-card-bg);
}

.code-img {
  flex-shrink: 0;
  width: 92px;
  height: 44px;
  display: block;
  object-fit: contain;
}

.query-btn {
  width: min(280px, calc(100% - 24px));
  max-width: 100%;
  height: 44px;
  box-sizing: border-box;
  font-size: 16px;
  border: 0;
  border-radius: var(--gov-radius);
  background: var(--gov-gradient);
  color: #fff;
  box-shadow: var(--gov-shadow);
}

.query-btn:active {
  background: var(--gov-btn-active);
}

.user-info-input.input-error,
.user-info-text.input-error,
.code-input.input-error {
  border-color: var(--gov-danger);
  background-color: #fff7f7;
}

/* 提示框 - 白底卡片 + 遮罩，更易辨认 */
#warnToast,
#loadingToast {
  position: fixed;
  z-index: 5000;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  pointer-events: auto;
  animation: appToastFadeIn 0.22s ease;
}

@keyframes appToastFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes appToastSlideUp {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

#warnToast .weui-mask_transparent,
#loadingToast .weui-mask_transparent {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

#warnToast .weui-toast,
#loadingToast .weui-toast {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(320px, calc(100vw - 48px));
  height: auto;
  min-width: 0;
  max-width: min(320px, calc(100vw - 48px));
  padding: 24px 22px 20px;
  box-sizing: border-box;
  pointer-events: auto;
  background: #ffffff;
  color: var(--gov-text);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(13, 71, 161, 0.18), 0 4px 12px rgba(0, 0, 0, 0.08);
  animation: appToastSlideUp 0.28s ease;
}

#warnToast .weui-toast__content,
#loadingToast .weui-toast__content {
  font-size: 15px;
  line-height: 1.65;
  padding: 0;
  margin: 0;
  width: 100%;
  text-align: center;
  word-break: break-word;
  white-space: normal;
  color: var(--gov-text-secondary);
}

.app-toast__title {
  display: block;
  margin-bottom: 8px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--gov-text);
}

.app-toast__body {
  display: block;
  font-size: 15px;
  line-height: 1.65;
  color: var(--gov-text-secondary);
}

#warnToast .weui-icon_toast.weui-icon-warn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #ffebee;
  font-size: 0;
  line-height: 0;
  flex-shrink: 0;
}

#warnToast .weui-icon_toast.weui-icon-warn::before {
  content: "!";
  display: block;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  color: var(--gov-danger);
  font-style: normal;
}

#warnToast[data-toast-type="warn"] .weui-icon_toast.weui-icon-warn {
  background: var(--gov-warning-bg);
}

#warnToast[data-toast-type="warn"] .weui-icon_toast.weui-icon-warn::before {
  content: "!";
  color: var(--gov-warning);
}

#warnToast[data-toast-type="success"] .weui-icon_toast.weui-icon-warn {
  background: var(--gov-success-bg);
}

#warnToast[data-toast-type="success"] .weui-icon_toast.weui-icon-warn::before {
  content: "✓";
  font-size: 26px;
  color: var(--gov-success);
}

#warnToast[data-toast-type="info"] .weui-icon_toast.weui-icon-warn {
  background: var(--gov-primary-pale);
}

#warnToast[data-toast-type="info"] .weui-icon_toast.weui-icon-warn::before {
  content: "i";
  font-size: 26px;
  font-family: Georgia, serif;
  color: var(--gov-primary);
}

#loadingToast .weui-icon_toast {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  flex-shrink: 0;
}

#loadingToast .weui-primary-loading {
  width: 36px;
  height: 36px;
  color: var(--gov-primary);
}

#loadingToast .weui-toast__content {
  font-size: 16px;
  font-weight: 600;
  color: var(--gov-text);
}

.app-toast__hint {
  display: block;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--gov-border-light);
  font-size: 13px;
  color: var(--gov-text-muted);
}

/* 简洁提示：仅文字，无标题/图标 */
#warnToast[data-toast-simple="true"] .weui-icon_toast {
  display: none !important;
}

#warnToast[data-toast-simple="true"] .weui-toast {
  padding: 14px 20px;
  border-radius: 10px;
  max-width: min(280px, calc(100vw - 56px));
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
  animation: appToastFadeIn 0.2s ease;
}

#warnToast[data-toast-simple="true"] .app-toast__body {
  font-size: 15px;
  line-height: 1.55;
  color: var(--gov-text);
  font-weight: 500;
}

#warnToast[data-toast-simple="true"] .weui-mask_transparent {
  background: rgba(0, 0, 0, 0.32);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* 政务蓝 - 全局通用组件 */
.page {
  background: var(--gov-page-bg);
}

.weui-panel {
  background: var(--gov-card-bg);
}

.tip-content,
.choose-title {
  color: var(--gov-primary);
}

.weui-bar__item_on {
  color: var(--gov-primary) !important;
  border-bottom-color: var(--gov-primary) !important;
}

.weui-navbar__item.weui-bar__item_on,
.weui-navbar__item:active {
  background-color: #fff !important;
}

.bottom-btns,
.btn-back,
.query-btn {
  display: inline-block;
  min-width: 128px;
  height: 44px;
  line-height: 44px;
  padding: 0 20px;
  border-radius: var(--gov-radius);
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  vertical-align: middle;
}

/* 返回：镂空 */
.bottom-btns.btn-left {
  background: #fff !important;
  background-image: none !important;
  border: 1.5px solid var(--gov-primary) !important;
  color: var(--gov-primary) !important;
  box-shadow: none;
}

.bottom-btns.btn-left:active {
  background: var(--gov-primary-pale) !important;
  color: var(--gov-primary-dark) !important;
  opacity: 1;
}

/* 确认提交：实心 */
.bottom-btns.btn-right {
  background: var(--gov-primary) !important;
  background-image: none !important;
  border: 1.5px solid var(--gov-primary) !important;
  color: #fff !important;
  box-shadow: var(--gov-shadow);
}

.bottom-btns.btn-right:active {
  background: var(--gov-btn-active) !important;
  border-color: var(--gov-btn-active) !important;
  color: #fff !important;
  opacity: 1;
}

/* 其他返回/查询按钮：实心 */
.btn-back,
.query-btn {
  background: var(--gov-primary) !important;
  background-image: none !important;
  border: 1.5px solid var(--gov-primary) !important;
  color: #fff !important;
  box-shadow: var(--gov-shadow);
}

.bottom-btns:not(.btn-left):not(.btn-right),
.query-btn {
  background: var(--gov-primary) !important;
  background-image: none !important;
  border: 1.5px solid var(--gov-primary) !important;
  color: #fff !important;
}

.btn-div {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 0 12px 28px;
}

.btn-back:active,
.query-btn:active {
  background: var(--gov-btn-active) !important;
  border-color: var(--gov-btn-active) !important;
  color: #fff !important;
  opacity: 0.92;
}

.order-btn:not(.order-btn-dis):not(.none) {
  background: var(--gov-primary);
  border-radius: var(--gov-radius);
}

.order-btn:not(.order-btn-dis):not(.none):active {
  background: var(--gov-btn-active);
}

.classify {
  background: var(--gov-gradient);
  border-radius: var(--gov-radius);
  box-shadow: var(--gov-shadow);
}

.classify:active {
  background: var(--gov-btn-active);
}

.classify.sm {
  background: linear-gradient(135deg, #e65100 0%, #f9a825 55%, #ffb300 100%);
  box-shadow: 0 2px 10px rgba(245, 127, 23, 0.22);
}

.classify.sm:active {
  background: #e65100;
}

/* 顶部返回按钮：固定 + 毛玻璃圆底 + 政务蓝箭头 */
a[onclick*="history.back"] {
  position: fixed !important;
  top: max(12px, env(safe-area-inset-top, 0px));
  left: max(12px, env(safe-area-inset-left, 0px));
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(13, 71, 161, 0.12), 0 1px 3px rgba(0, 0, 0, 0.08);
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

a[onclick*="history.back"]::before {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  margin-left: 2px;
  border-left: 2px solid var(--gov-primary);
  border-bottom: 2px solid var(--gov-primary);
  transform: rotate(45deg);
  box-sizing: border-box;
}

a[onclick*="history.back"]:active {
  background: rgba(255, 255, 255, 0.92);
  transform: scale(0.94);
  box-shadow: 0 2px 8px rgba(13, 71, 161, 0.1);
}

.top-left-img {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-dialog {
  position: fixed;
  inset: 0;
  z-index: 6000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
}

.app-dialog__mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.app-dialog__panel {
  position: relative;
  width: min(320px, 100%);
  background: var(--gov-card-bg);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(13, 71, 161, 0.2), 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  animation: appToastSlideUp 0.28s ease;
}

.app-dialog__title {
  padding: 22px 22px 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--gov-text);
  line-height: 1.4;
}

.app-dialog__message {
  padding: 12px 22px 22px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--gov-text-secondary);
  word-break: break-word;
  text-align: center;
}

.app-dialog__actions {
  display: flex;
  border-top: 1px solid var(--gov-border-light);
}

.app-dialog__actions--single .app-dialog__btn--confirm {
  width: 100%;
}

.app-dialog__btn {
  flex: 1;
  height: 52px;
  border: 0;
  background: transparent;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease;
}

.app-dialog__btn + .app-dialog__btn {
  border-left: 1px solid var(--gov-border-light);
}

.app-dialog__btn--cancel {
  color: var(--gov-text-secondary);
}

.app-dialog__btn--confirm {
  color: var(--gov-primary);
}

.app-dialog__btn:active {
  background: var(--gov-primary-pale);
}
