/* 政府监管端真实业务闭环样式。
   所有选择器均限制在 .gov-live，避免影响同一静态设计站内的其它身份与页面。 */
.gov-live {
  --gov-ink: #10231d;
  --gov-muted: #5d6d67;
  --gov-line: #dbe5e0;
  --gov-surface: #ffffff;
  --gov-soft: #f3f8f5;
  --gov-green: #126447;
  --gov-green-strong: #0a4b34;
  --gov-green-soft: #e5f4ed;
  --gov-amber: #9b5b09;
  --gov-amber-soft: #fff4dc;
  --gov-red: #a33b33;
  --gov-red-soft: #fff0ed;
  --gov-shadow: 0 18px 50px rgba(17, 60, 44, 0.11);
  position: relative;
  display: grid;
  gap: 18px;
  width: min(100%, 1560px);
  margin: 0 auto;
  padding: clamp(16px, 2vw, 30px);
  color: var(--gov-ink);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

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

.gov-live button,
.gov-live select,
.gov-live input,
.gov-live textarea {
  min-height: 44px;
  border: 1px solid var(--gov-line);
  border-radius: 10px;
  background: var(--gov-surface);
  color: var(--gov-ink);
  font: inherit;
}

.gov-live button {
  padding: 10px 16px;
  border-color: var(--gov-green);
  background: var(--gov-green);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.gov-live button:hover {
  border-color: var(--gov-green-strong);
  background: var(--gov-green-strong);
  transform: translateY(-1px);
}

.gov-live button:disabled {
  cursor: wait;
  opacity: 0.58;
  transform: none;
}

.gov-live a:focus-visible,
.gov-live button:focus-visible,
.gov-live select:focus-visible,
.gov-live input:focus-visible,
.gov-live textarea:focus-visible {
  outline: 3px solid rgba(18, 100, 71, 0.3);
  outline-offset: 3px;
}

.gov-live svg {
  width: 20px;
  height: 20px;
}

.gov-live__header {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  background:
    radial-gradient(circle at 92% 5%, rgba(230, 197, 116, 0.2), transparent 34%),
    linear-gradient(126deg, #073927 0%, #0e5a40 58%, #147151 100%);
  box-shadow: var(--gov-shadow);
  color: #fff;
}

.gov-live__header > div {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: clamp(22px, 3vw, 40px);
}

.gov-live__header > div > span {
  display: grid;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.11);
}

.gov-live__header small,
.gov-live-section header small,
.gov-live__drawer header small,
.gov-live-modal header small {
  display: block;
  margin-bottom: 5px;
  color: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  opacity: 0.76;
}

.gov-live__header h1 {
  margin: 0;
  font-size: clamp(25px, 3vw, 42px);
  line-height: 1.2;
}

.gov-live__header p {
  max-width: 820px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  line-height: 1.75;
}

.gov-live__screen-entry {
  display: grid;
  flex: 0 0 min(330px, 31%);
  align-self: stretch;
  align-content: center;
  gap: 5px;
  min-height: 104px;
  margin-left: auto;
  padding: 16px 18px;
  border: 1px solid rgba(248, 211, 122, 0.5);
  border-radius: 15px;
  background:
    linear-gradient(135deg, rgba(245, 202, 103, 0.18), rgba(255, 255, 255, 0.08)),
    rgba(3, 35, 25, 0.35);
  color: #fff;
  text-decoration: none;
  box-shadow: inset 0 0 24px rgba(246, 207, 116, 0.08);
}

.gov-live__screen-entry:hover {
  border-color: rgba(255, 226, 157, 0.85);
  background:
    linear-gradient(135deg, rgba(245, 202, 103, 0.26), rgba(255, 255, 255, 0.11)),
    rgba(3, 35, 25, 0.42);
}

.gov-live__screen-entry small {
  margin: 0;
  color: #f3d890;
  font-size: 11px;
  opacity: 1;
}

.gov-live__screen-entry strong {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  line-height: 1.45;
}

.gov-live__screen-entry strong svg {
  width: 18px;
  height: 18px;
}

.gov-live__screen-entry em {
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-style: normal;
}

.gov-live__header nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 0 16px 16px;
  gap: 8px;
}

.gov-live__header nav a {
  min-height: 44px;
  padding: 12px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.gov-live__header nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.gov-live__header nav a[aria-current="page"] {
  border-color: rgba(255, 255, 255, 0.2);
  background: #fff;
  color: var(--gov-green-strong);
}

.gov-live-identity-card {
  display: grid;
  grid-template-columns: minmax(180px, 1.35fr) minmax(180px, 1.2fr) minmax(180px, 1.35fr) minmax(100px, 0.7fr) auto;
  align-items: end;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--gov-line);
  border-radius: 15px;
  background: var(--gov-surface);
  box-shadow: 0 8px 24px rgba(17, 60, 44, 0.06);
}

.gov-live-identity-card > span,
.gov-live-identity-card > label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.gov-live-identity-card small,
.gov-live-identity-card label {
  color: var(--gov-muted);
  font-size: 12px;
  font-weight: 700;
}

.gov-live-identity-card strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gov-live-identity-card select {
  width: 100%;
  padding: 8px 34px 8px 11px;
  font-size: 14px;
}

.gov-live__content {
  min-height: 300px;
}

.gov-live-section {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 2.5vw, 30px);
  border: 1px solid var(--gov-line);
  border-radius: 18px;
  background: var(--gov-surface);
  box-shadow: 0 10px 34px rgba(17, 60, 44, 0.07);
}

.gov-live-section > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gov-line);
}

.gov-live-section > header small {
  color: var(--gov-green);
}

.gov-live-section h2,
.gov-live-section h3,
.gov-live__drawer h2,
.gov-live-modal h2 {
  margin: 0;
  line-height: 1.3;
}

.gov-live-section > header > p {
  max-width: 600px;
  margin: 0;
  color: var(--gov-muted);
  font-size: 14px;
  line-height: 1.7;
  text-align: right;
}

.gov-live-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.gov-live-summary {
  display: grid;
  align-content: start;
  min-height: 178px;
  padding: 20px;
  border: 1px solid var(--gov-line);
  border-radius: 14px;
  background: linear-gradient(145deg, #fff, var(--gov-soft));
}

.gov-live-summary > small {
  color: var(--gov-muted);
  font-weight: 700;
}

.gov-live-summary > strong {
  margin-top: 10px;
  color: var(--gov-green-strong);
  font-size: 40px;
  line-height: 1;
}

.gov-live-summary > p {
  margin: 12px 0;
  color: var(--gov-muted);
  font-size: 13px;
}

.gov-live-summary > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  color: var(--gov-green);
  font-weight: 800;
  text-decoration: none;
}

.gov-live-summary.is-error,
.gov-live-summary-grid > article.is-error {
  border-color: #f0c8c2;
  background: var(--gov-red-soft);
}

.gov-live-summary.is-error > strong {
  color: var(--gov-red);
  font-size: 22px;
}

.gov-live-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.gov-live-steps li {
  display: flex;
  gap: 12px;
  padding: 16px;
  border-radius: 12px;
  background: var(--gov-soft);
}

.gov-live-steps li > b {
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--gov-green);
  color: #fff;
}

.gov-live-steps span {
  display: grid;
  gap: 5px;
}

.gov-live-steps small {
  color: var(--gov-muted);
  line-height: 1.55;
}

.gov-live-list,
.gov-live-mini-list,
.gov-live-dual-list {
  display: grid;
  gap: 12px;
}

.gov-live-list > article {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) minmax(210px, auto) auto;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--gov-line);
  border-radius: 14px;
  background: #fff;
}

.gov-live-list article h3 {
  margin: 4px 0 6px;
  font-size: 17px;
}

.gov-live-list article p,
.gov-live-mini-list article p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--gov-muted);
  font-size: 13px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.gov-live-list article small,
.gov-live-mini-list article small {
  color: var(--gov-muted);
}

.gov-live-list dl {
  display: grid;
  grid-template-columns: auto auto;
  gap: 3px 9px;
  margin: 0;
  font-size: 12px;
}

.gov-live-list dt {
  color: var(--gov-muted);
}

.gov-live-list dd {
  margin: 0;
  font-weight: 700;
}

.gov-live-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 30px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--gov-green-soft);
  color: var(--gov-green-strong);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.gov-live-badge.is-risk {
  background: var(--gov-amber-soft);
  color: var(--gov-amber);
}

.gov-live-dual-list > article {
  overflow: hidden;
  border: 1px solid var(--gov-line);
  border-radius: 15px;
  background: #fff;
}

.gov-live-dual-list article > header {
  display: grid;
  grid-template-columns: auto minmax(200px, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: var(--gov-soft);
}

.gov-live-dual-list header small,
.gov-live-dual-list header time {
  color: var(--gov-muted);
  font-size: 12px;
}

.gov-live-dual-list article > dl,
.gov-live-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
}

.gov-live-dual-list dl > div,
.gov-live-detail-grid > div {
  min-width: 0;
  padding: 14px 18px;
  border-right: 1px solid var(--gov-line);
  border-bottom: 1px solid var(--gov-line);
}

.gov-live-dual-list dt,
.gov-live-detail-grid dt {
  margin-bottom: 5px;
  color: var(--gov-muted);
  font-size: 12px;
}

.gov-live-dual-list dd,
.gov-live-detail-grid dd {
  overflow-wrap: anywhere;
  margin: 0;
  font-weight: 700;
}

.gov-live-dual-list article > footer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  color: var(--gov-muted);
  font-size: 12px;
}

.gov-live-dual-list footer button {
  margin-left: auto;
}

.gov-live-dual-list footer small {
  margin-left: auto;
  color: var(--gov-amber);
}

.gov-live-transfer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.gov-live-transfer-grid > section {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--gov-line);
  border-radius: 14px;
  background: var(--gov-soft);
}

.gov-live-transfer-grid > section > h3 {
  margin-bottom: 14px;
}

.gov-live-mini-list article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--gov-line);
  border-radius: 12px;
  background: #fff;
}

.gov-live-mini-list article > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.gov-live-mini-list time {
  color: var(--gov-muted);
  font-size: 12px;
}

.gov-live-inline-empty {
  padding: 30px 15px;
  color: var(--gov-muted);
  text-align: center;
}

.gov-live-authority {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr);
  gap: 22px;
  padding: 22px;
  border-radius: 15px;
  background: linear-gradient(128deg, #0a4b34, #126447);
  color: #fff;
}

.gov-live-authority p {
  color: rgba(255, 255, 255, 0.75);
}

.gov-live-authority dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.gov-live-authority dl div {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
}

.gov-live-authority dt {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.gov-live-authority dd {
  margin: 6px 0 0;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.gov-live-admin-note,
.gov-live__boundary {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0;
  padding: 13px 15px;
  border: 1px solid #ead6ac;
  border-radius: 11px;
  background: var(--gov-amber-soft);
  color: #6d4a16;
  font-size: 13px;
  line-height: 1.65;
}

.gov-live-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 260px;
  padding: 30px;
  border: 1px dashed var(--gov-line);
  border-radius: 16px;
  background: var(--gov-soft);
  text-align: left;
}

.gov-live-state > span {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: var(--gov-green-soft);
  color: var(--gov-green);
}

.gov-live-state h2 {
  margin: 0 0 6px;
  font-size: 19px;
}

.gov-live-state p,
.gov-live-state small {
  display: block;
  max-width: 650px;
  margin: 0;
  color: var(--gov-muted);
  line-height: 1.65;
}

.gov-live-state button {
  margin-left: 16px;
}

.gov-live-state.is-error {
  border-color: #edc2bd;
  background: var(--gov-red-soft);
}

.gov-live-state.is-error > span {
  background: #f8d9d5;
  color: var(--gov-red);
}

.gov-live-state.is-warning {
  border-color: #ead6ac;
  background: var(--gov-amber-soft);
}

.gov-live-state.is-loading > i {
  width: 38px;
  height: 38px;
  border: 3px solid #c9ddd3;
  border-top-color: var(--gov-green);
  border-radius: 50%;
  animation: gov-live-spin 800ms linear infinite;
}

.gov-live__drawer {
  position: fixed;
  z-index: 1200;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(560px, 92vw);
  overflow: auto;
  padding: 28px;
  border-left: 1px solid var(--gov-line);
  background: #fff;
  box-shadow: -18px 0 48px rgba(5, 34, 24, 0.18);
}

.gov-live__drawer[hidden] {
  display: none;
}

.gov-live__drawer::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  right: min(560px, 92vw);
  background: rgba(4, 22, 16, 0.38);
}

.gov-live-drawer__close {
  float: right;
  width: 44px;
  padding: 0;
  border-color: var(--gov-line);
  background: #fff;
  color: var(--gov-ink);
  font-size: 24px;
}

.gov-live__drawer > header {
  clear: both;
  padding: 18px 0 22px;
  border-bottom: 1px solid var(--gov-line);
}

.gov-live__drawer > header p {
  color: var(--gov-muted);
  line-height: 1.7;
}

.gov-live-detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 20px 0;
  border-top: 1px solid var(--gov-line);
  border-left: 1px solid var(--gov-line);
}

.gov-live-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--gov-line);
}

.gov-live-modal-backdrop {
  position: fixed;
  z-index: 1300;
  display: grid;
  inset: 0;
  place-items: center;
  overflow: auto;
  padding: 24px;
  background: rgba(4, 22, 16, 0.55);
}

.gov-live-modal {
  width: min(680px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(4, 22, 16, 0.3);
}

.gov-live-modal > header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--gov-line);
}

.gov-live-modal > header p {
  margin: 8px 0 0;
  color: var(--gov-muted);
  line-height: 1.65;
}

.gov-live-modal > header button {
  flex: 0 0 44px;
  width: 44px;
  padding: 0;
  border-color: var(--gov-line);
  background: #fff;
  color: var(--gov-ink);
  font-size: 23px;
}

.gov-live-modal form {
  display: grid;
  gap: 15px;
  padding: 24px;
}

.gov-live-modal form > label {
  display: grid;
  gap: 7px;
}

.gov-live-modal form > label > span {
  font-size: 13px;
  font-weight: 800;
}

.gov-live-modal input,
.gov-live-modal textarea,
.gov-live-modal select {
  width: 100%;
  padding: 10px 12px;
}

.gov-live-modal textarea {
  min-height: 104px;
  resize: vertical;
}

.gov-live-modal form > footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 8px;
}

.gov-live-modal form > footer button:first-child {
  border-color: var(--gov-line);
  background: #fff;
  color: var(--gov-ink);
}

.gov-live-form-error {
  min-height: 22px;
  margin: 0;
  color: var(--gov-red);
  font-size: 13px;
  line-height: 1.6;
}

.gov-live-toast {
  position: fixed;
  z-index: 1400;
  right: 22px;
  bottom: 22px;
  max-width: min(420px, calc(100vw - 44px));
  padding: 14px 18px;
  border-radius: 11px;
  background: #073927;
  box-shadow: var(--gov-shadow);
  color: #fff;
  font-weight: 700;
}

@keyframes gov-live-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1180px) {
  .gov-live-identity-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gov-live-identity-card > button {
    width: max-content;
  }

  .gov-live-summary-grid,
  .gov-live-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gov-live-list > article {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .gov-live-list > article > dl {
    grid-column: 2;
  }

  .gov-live-list > article > button {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .gov-live-dual-list article > dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .gov-live {
    padding: 12px;
  }

  .gov-live__header > div {
    flex-wrap: wrap;
    padding: 22px 18px;
  }

  .gov-live__screen-entry {
    flex: 1 1 100%;
    min-height: 0;
    margin-left: 68px;
  }

  .gov-live__header nav {
    display: flex;
    overflow-x: auto;
    padding: 0 12px 12px;
    scroll-snap-type: x mandatory;
  }

  .gov-live__header nav a {
    flex: 0 0 max-content;
    min-width: 112px;
    scroll-snap-align: start;
  }

  .gov-live-section > header,
  .gov-live-authority {
    display: grid;
  }

  .gov-live-section > header > p {
    text-align: left;
  }

  .gov-live-transfer-grid {
    grid-template-columns: 1fr;
  }

  .gov-live-authority dl {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .gov-live__screen-entry {
    margin-left: 0;
  }

  .gov-live__header nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow-x: visible;
  }

  .gov-live__header nav a {
    min-width: 0;
  }

  .gov-live__header nav a:last-child {
    grid-column: 1 / -1;
  }

  .gov-live__header > div > span {
    display: none;
  }

  .gov-live-identity-card,
  .gov-live-summary-grid,
  .gov-live-steps,
  .gov-live-dual-list article > dl,
  .gov-live-detail-grid {
    grid-template-columns: 1fr;
  }

  .gov-live-list > article,
  .gov-live-mini-list article,
  .gov-live-dual-list article > header {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .gov-live-list > article > dl,
  .gov-live-list > article > button {
    grid-column: 1;
    grid-row: auto;
  }

  .gov-live-list > article > button,
  .gov-live-mini-list article > button {
    width: 100%;
  }

  .gov-live-dual-list article > footer {
    align-items: stretch;
    flex-direction: column;
  }

  .gov-live-dual-list footer button,
  .gov-live-dual-list footer small {
    width: 100%;
    margin-left: 0;
  }

  .gov-live-state {
    align-items: flex-start;
    flex-direction: column;
    min-height: 220px;
  }

  .gov-live-state button {
    width: 100%;
    margin-left: 0;
  }

  .gov-live-modal-backdrop {
    align-items: end;
    padding: 0;
  }

  .gov-live-modal {
    max-height: 92vh;
    border-radius: 18px 18px 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gov-live *,
  .gov-live *::before,
  .gov-live *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
