:root {
  color-scheme: light;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  background: #f4f7f8;
  color: #1c2529;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.login-body {
  min-height: 100vh;
  background: #061116;
}

.admin-body {
  min-height: 100vh;
  background: #eef7f9;
}

.login-body .shell {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.admin-body .shell {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 40px 0;
}

.login-panel {
  min-height: calc(100vh - 80px);
  display: grid;
  align-content: center;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
}

.login-screen {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 0;
  padding: 24px;
  background: #061116;
}

.login-bg,
.login-screen::before,
.login-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.login-screen::before {
  background:
    linear-gradient(120deg, transparent 0 9%, rgba(52, 245, 223, 0.2) 9% 9.35%, transparent 9.35% 100%),
    linear-gradient(62deg, transparent 0 60%, rgba(197, 255, 85, 0.18) 60% 60.35%, transparent 60.35% 100%),
    linear-gradient(155deg, transparent 0 78%, rgba(139, 124, 255, 0.2) 78% 78.4%, transparent 78.4% 100%);
  opacity: 0.9;
}

.login-screen::after {
  box-shadow: inset 0 0 84px rgba(42, 237, 218, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 18%),
    radial-gradient(ellipse at center, transparent 0 54%, rgba(0, 0, 0, 0.56) 100%);
}

.login-bg {
  background:
    linear-gradient(135deg, rgba(5, 14, 20, 0.98), rgba(7, 48, 53, 0.95) 43%, rgba(22, 21, 52, 0.98)),
    #061116;
}

.login-bg::before,
.login-bg::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.login-bg::before {
  width: 72vw;
  height: 72vw;
  left: -25vw;
  top: -24vw;
  background:
    linear-gradient(135deg, rgba(52, 245, 223, 0.28), transparent 58%),
    linear-gradient(45deg, transparent 0 42%, rgba(197, 255, 85, 0.2) 42% 44%, transparent 44% 100%);
  clip-path: polygon(0 0, 100% 18%, 72% 100%, 0 76%);
}

.login-bg::after {
  width: 58vw;
  height: 58vw;
  right: -22vw;
  bottom: -22vw;
  background:
    linear-gradient(135deg, transparent 0 28%, rgba(139, 124, 255, 0.24) 28% 70%, transparent 70%),
    linear-gradient(45deg, rgba(52, 245, 223, 0.16), transparent 64%);
  clip-path: polygon(24% 0, 100% 18%, 82% 100%, 0 70%);
}

.login-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(143, 255, 245, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 255, 245, 0.1) 1px, transparent 1px),
    linear-gradient(rgba(197, 255, 85, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(197, 255, 85, 0.08) 1px, transparent 1px);
  background-position: center;
  background-size: 34px 34px, 34px 34px, 136px 136px, 136px 136px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 94%);
}

.login-scan {
  position: absolute;
  inset: -20%;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06) 0,
    rgba(255, 255, 255, 0.06) 1px,
    transparent 1px,
    transparent 8px
  );
  opacity: 0.18;
}

.login-beams {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, transparent 0 29%, rgba(52, 245, 223, 0.18) 29% 30%, transparent 30% 100%),
    linear-gradient(75deg, transparent 0 44%, rgba(139, 124, 255, 0.22) 44% 45%, transparent 45% 100%),
    linear-gradient(132deg, transparent 0 57%, rgba(197, 255, 85, 0.13) 57% 58%, transparent 58% 100%);
  filter: drop-shadow(0 0 22px rgba(52, 245, 223, 0.22));
}

.login-card {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  padding: 24px;
  border: 1px solid rgba(151, 255, 245, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(12, 34, 41, 0.9), rgba(7, 18, 24, 0.88)),
    rgba(8, 22, 27, 0.86);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 0 1px rgba(52, 245, 223, 0.05);
  backdrop-filter: blur(18px);
}

.login-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(52, 245, 223, 0.12);
  border-radius: 6px;
  pointer-events: none;
}

.login-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.brand-mark {
  width: 54px;
  height: 54px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  flex: 0 0 auto;
  margin-bottom: 0;
  padding: 9px;
  border: 1px solid rgba(88, 242, 224, 0.34);
  border-radius: 8px;
  background: rgba(11, 40, 44, 0.72);
}

.signal-bars {
  display: flex;
  align-items: end;
  gap: 5px;
  height: 28px;
}

.signal-bars span {
  width: 6px;
  border-radius: 4px;
  background: rgba(52, 245, 223, 0.36);
  box-shadow: 0 0 14px rgba(52, 245, 223, 0.28);
}

.signal-bars span:nth-child(1) {
  height: 10px;
}

.signal-bars span:nth-child(2) {
  height: 16px;
  background: rgba(197, 255, 85, 0.45);
}

.signal-bars span:nth-child(3) {
  height: 22px;
}

.signal-bars span:nth-child(4) {
  height: 28px;
  background: rgba(139, 124, 255, 0.48);
}

.brand-mark span {
  border-radius: 3px;
  background: #34f5df;
  box-shadow: 0 0 16px rgba(52, 245, 223, 0.72);
}

.brand-mark span:nth-child(2) {
  background: #c5ff55;
  box-shadow: 0 0 16px rgba(197, 255, 85, 0.64);
}

.brand-mark span:nth-child(3) {
  background: #8b7cff;
  box-shadow: 0 0 16px rgba(139, 124, 255, 0.6);
}

.login-kicker {
  margin: 0 0 10px;
  color: #34f5df;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.login-card h1 {
  color: #f5fffd;
  font-size: 32px;
  line-height: 1.12;
}

.login-copy {
  margin: 14px 0 26px;
  color: #aac2c4;
  font-size: 16px;
  line-height: 1.65;
}

h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.08;
}

.eyebrow {
  margin: 0 0 12px;
  color: #16776c;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.muted {
  color: #5b6b73;
  font-size: 18px;
  line-height: 1.7;
}

.login-form,
.form-grid,
.filters,
.table-wrap {
  background: #ffffff;
  border: 1px solid #dce5e8;
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(28, 37, 41, 0.07);
}

.login-form {
  padding: 28px;
  display: grid;
  gap: 18px;
}

.login-card .login-form {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.login-card label {
  color: #d9eeef;
}

.login-card input {
  height: 52px;
  border-color: rgba(136, 247, 236, 0.34);
  background: rgba(3, 16, 20, 0.82);
  color: #f7fffe;
  outline: none;
}

.login-card input::placeholder {
  color: #78969a;
}

.login-card input:focus {
  border-color: #34f5df;
  box-shadow: 0 0 0 3px rgba(52, 245, 223, 0.16);
}

.login-submit {
  min-height: 52px;
  background: linear-gradient(135deg, #34f5df, #c5ff55);
  color: #071115;
  box-shadow: 0 14px 36px rgba(52, 245, 223, 0.22);
}

.login-card .error {
  padding: 10px 12px;
  border: 1px solid rgba(255, 134, 114, 0.28);
  border-radius: 6px;
  background: rgba(180, 35, 24, 0.14);
  color: #ffb4a8;
}

label {
  display: grid;
  gap: 8px;
  color: #334247;
  font-size: 14px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cbd7db;
  border-radius: 6px;
  padding: 11px 12px;
  color: #1c2529;
  font: inherit;
  background: #fff;
}

textarea {
  resize: vertical;
}

button,
.link-button {
  border: 0;
  border-radius: 6px;
  padding: 12px 16px;
  background: #16776c;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.link-button {
  background: #e6eef0;
  color: #1c2529;
}

.link-button.primary {
  background: #16776c;
  color: #fff;
}

/* 固定右上角的退出登录按钮（填表页/提交完成页，浅色主题） */
.exit-fixed {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 60;
  padding: 7px 16px;
  border: 1px solid rgba(22, 60, 70, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
  color: #1c3b42;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(10, 40, 50, 0.08);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.exit-fixed:hover {
  border-color: rgba(22, 96, 88, 0.45);
  background: #ffffff;
}

.small {
  padding: 8px 10px;
  font-size: 13px;
}

.error {
  color: #b42318;
  margin: 0;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
}

.form-grid {
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.wide {
  grid-column: 1 / -1;
}

.actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
  margin-top: 18px;
}

.filters {
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.admin-panel {
  margin-bottom: 18px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid #dce5e8;
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(28, 37, 41, 0.07);
}

.admin-panel h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

.password-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 12px;
  align-items: end;
}

.notice {
  margin: 12px 0 0;
  color: #16776c;
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1000px;
}

th,
td {
  border-bottom: 1px solid #e8eef0;
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

th {
  background: #eef5f3;
  font-size: 13px;
  color: #44545a;
}

.status {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 10px;
  background: #e6f3ef;
  color: #16776c;
  font-size: 12px;
  font-weight: 700;
}

.edit-row td {
  background: #fbfcfc;
}

.edit-grid {
  display: grid;
  grid-template-columns: 160px 140px 1fr;
  gap: 12px;
}

.empty {
  text-align: center;
  color: #6c7b80;
  padding: 32px;
}




/* ===== 管理员后台（深色科技风，与登录页统一） ===== */

.admin-screen {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: 48px;
  background: #030b12;
}

.admin-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(46% 60% at 12% 4%, rgba(68, 244, 229, 0.18), transparent 70%),
    radial-gradient(34% 44% at 88% 0%, rgba(198, 255, 70, 0.08), transparent 70%),
    radial-gradient(52% 62% at 88% 96%, rgba(143, 124, 255, 0.14), transparent 70%),
    linear-gradient(135deg, #030b12 0%, #08242f 48%, #120f2c 100%);
}

.admin-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(143, 255, 245, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 255, 245, 0.045) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 60%);
}

.admin-topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 40px;
  padding-right: 140px;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-logo {
  display: inline-flex;
}

.admin-logo svg {
  display: block;
}

.admin-brand-name {
  color: #eaf9f8;
  font-size: 16px;
  font-weight: 600;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(68, 244, 229, 0.3);
  border-radius: 999px;
  background: rgba(68, 244, 229, 0.1);
  color: #7fe9de;
  font-size: 12px;
  font-weight: 600;
}

.admin-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #44f4e5;
}

.admin-exit-button {
  position: fixed !important;
  top: 16px;
  right: 16px;
  z-index: 60;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 7px 16px;
  background: rgba(255, 255, 255, 0.06);
  color: #cfe7e9;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transform: translateZ(0);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.admin-exit-button:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.1);
}

.admin-back-top {
  position: fixed;
  right: 16px;
  bottom: 30px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(68, 244, 229, 0.4);
  border-radius: 999px;
  background: rgba(8, 26, 34, 0.88);
  color: #44f4e5;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transform: translateZ(0);
  transition: opacity 0.2s ease, background 0.15s ease, transform 0.15s ease;
}

.admin-back-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.admin-back-top:hover {
  background: rgba(68, 244, 229, 0.18);
  transform: translateY(-2px);
}

.admin-back-top svg {
  width: 24px;
  height: 24px;
  display: block;
}

.admin-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  width: min(1880px, 100%);
  margin: 0 auto;
  padding: 6px 40px 0;
}

.admin-page-head h1 {
  margin: 0;
  color: #f5fefe;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
}

.admin-subtitle {
  margin: 6px 0 0;
  color: #9fbec6;
  font-size: 14px;
  line-height: 1.7;
}

.admin-page-head-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: center;
  justify-content: space-between;
}

.admin-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.admin-page-head-row h1 {
  font-size: 26px;
}

.admin-crumb {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border: 1px solid rgba(68, 244, 229, 0.28);
  border-radius: 8px;
  background: rgba(68, 244, 229, 0.1);
  color: #7fe9de;
  font-size: 13px;
  font-weight: 600;
}

.admin-head-meta {
  color: #6e8b93;
  font-size: 12px;
  font-weight: 500;
}

.admin-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  justify-content: flex-end;
}

.admin-management-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.admin-section-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-section-tag {
  color: #44f4e5;
  font-size: 13px;
  font-weight: 700;
}

.admin-section-line {
  flex: 1;
  height: 1px;
  background: rgba(68, 244, 229, 0.16);
}

.admin-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.admin-code-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 230px;
  padding: 26px;
  border: 1px solid rgba(68, 244, 229, 0.28);
  border-radius: 16px;
  background: rgba(8, 26, 34, 0.72);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-code-card:hover {
  border-color: rgba(68, 244, 229, 0.55);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.45),
    0 0 30px rgba(68, 244, 229, 0.15);
  transform: translateY(-3px);
}

.admin-code-card-top {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.admin-code-title {
  color: #44f4e5;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.admin-type-badge {
  display: inline-flex;
  padding: 5px 14px;
  border: 1px solid rgba(68, 244, 229, 0.32);
  border-radius: 999px;
  background: rgba(68, 244, 229, 0.12);
  color: #7fe9de;
  font-size: 12px;
  font-weight: 600;
}

.admin-code-mid {
  display: flex;
  flex: 1;
  gap: 10px;
  align-items: flex-end;
}

.admin-code-num {
  color: #f5fefe;
  font-size: 60px;
  font-weight: 700;
  line-height: 1;
}

.admin-code-unit {
  padding-bottom: 8px;
  color: #9fbec6;
  font-size: 14px;
  font-weight: 500;
}

.admin-code-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.admin-code-meta {
  color: #6e8b93;
  font-size: 12px;
}

.admin-code-action {
  color: #44f4e5;
  font-size: 13px;
  font-weight: 600;
  transition: color 0.15s ease;
}

.admin-code-card:hover .admin-code-action {
  color: #c6ff46;
}

.admin-query {
  display: grid;
  gap: 12px;
  padding: 18px 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(8, 26, 34, 0.6);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
}

.admin-query-title {
  margin: 0;
  color: #7fd9d3;
  font-size: 12px;
  font-weight: 600;
}

.admin-query-fields {
  display: grid;
  grid-template-columns: 220px 1fr 130px 1fr auto auto;
  gap: 14px;
  align-items: end;
}

.admin-field {
  display: grid;
  gap: 6px;
  color: #9fbec6;
  font-size: 11px;
  font-weight: 600;
}

.admin-field input,
.admin-field select {
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  padding: 0 14px;
  background: rgba(1, 11, 18, 0.85);
  color: #f0fafa;
  font: inherit;
  font-size: 13px;
  width: 100%;
  box-sizing: border-box;
}

.admin-field select {
  border-color: rgba(68, 244, 229, 0.32);
  color: #7fe9de;
  font-weight: 600;
}

.admin-field input:disabled {
  background: rgba(255, 255, 255, 0.03);
  color: #5e7a81;
  cursor: not-allowed;
}

.admin-field input:focus,
.admin-field select:focus {
  outline: none;
  border-color: #44f4e5;
  box-shadow: 0 0 0 3px rgba(68, 244, 229, 0.16);
}

.admin-field input::placeholder {
  color: #5e7a81;
}

.admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 9px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
}

.admin-btn-primary {
  background: linear-gradient(135deg, #44f4e5, #c6ff46);
  color: #061116;
  box-shadow: 0 6px 18px rgba(68, 244, 229, 0.28);
}

.admin-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(68, 244, 229, 0.36);
}

.admin-btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: #cfe7e9;
  font-weight: 600;
}

.admin-btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.09);
}

.admin-btn-sm {
  height: 36px;
  padding: 0 14px;
  font-size: 12px;
}

.admin-btn-next {
  border-color: rgba(68, 244, 229, 0.3);
  color: #7fe9de;
}

.admin-btn-export {
  height: 36px;
  padding: 0 18px;
  border: 1px solid rgba(198, 255, 70, 0.45);
  background: rgba(198, 255, 70, 0.14);
  color: #d8f88a;
  font-size: 13px;
}

.admin-btn-export:hover:not(:disabled) {
  background: rgba(198, 255, 70, 0.22);
}

.admin-btn-danger {
  border: 1px solid rgba(255, 138, 120, 0.45);
  background: rgba(180, 35, 24, 0.14);
  color: #ff8a78;
}

.admin-btn-danger:hover:not(:disabled) {
  background: rgba(180, 35, 24, 0.24);
  border-color: rgba(255, 138, 120, 0.65);
}

.admin-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  box-shadow: none;
  transform: none;
}

.admin-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.admin-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #8fa9ae;
  font-size: 12px;
}

.admin-hint i {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(68, 244, 229, 0.8);
}

.admin-hint .dot-lime {
  background: rgba(198, 255, 70, 0.8);
}

.admin-hint .dot-purple {
  background: rgba(143, 124, 255, 0.8);
}

.admin-notice {
  margin: 0;
  padding: 12px 20px;
  border-top: 1px solid rgba(255, 134, 114, 0.3);
  background: rgba(180, 35, 24, 0.12);
  color: #ffb4a8;
  font-weight: 600;
}

.admin-results {
  display: flex;
  flex-direction: column;
  min-height: 460px;
  overflow: hidden;
  border: 1px solid rgba(68, 244, 229, 0.2);
  border-radius: 14px;
  background: rgba(5, 18, 26, 0.78);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(14px);
}

.admin-results-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(68, 244, 229, 0.05);
}

.admin-result-summary {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: #b9cfd4;
  font-size: 13px;
  font-weight: 500;
}

.admin-result-summary strong {
  color: #44f4e5;
  font-size: 20px;
  font-weight: 700;
}

.admin-results-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.admin-tabulator {
  flex: 1;
  min-height: 240px;
  font-size: 13px;
}

.admin-tabulator.tabulator {
  border: 0;
  background: transparent;
}

.admin-tabulator .tabulator-tableholder .tabulator-table {
  background: transparent;
}

.admin-tabulator.tabulator .tabulator-header {
  border-bottom: 1px solid rgba(68, 244, 229, 0.3);
  background: #0e2a33;
}

.admin-tabulator.tabulator .tabulator-col {
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  background: transparent;
}

.admin-tabulator.tabulator .tabulator-col-title {
  color: #7fd9d3;
  font-size: 13px;
  font-weight: 700;
}

.admin-tabulator.tabulator .tabulator-col {
  color: #7fd9d3;
  font-size: 13px;
  font-weight: 700;
}

.admin-tabulator.tabulator .tabulator-header .tabulator-col.tabulator-sortable.tabulator-col-sorter-element:hover,
.admin-tabulator.tabulator .tabulator-header .tabulator-col:hover {
  background-color: rgba(68, 244, 229, 0.12);
}

.admin-tabulator .tabulator-col-row-handle:hover {
  background: rgba(68, 244, 229, 0.12);
}

.admin-tabulator .tabulator-row {
  min-height: 38px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: transparent;
}

.admin-tabulator .tabulator-row:hover {
  background: rgba(255, 255, 255, 0.05) !important;
}

.admin-tabulator .tabulator-row:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.admin-tabulator .tabulator-row.tabulator-selected {
  background: rgba(68, 244, 229, 0.1) !important;
}

.admin-tabulator .tabulator-row.tabulator-selected:hover {
  background: rgba(68, 244, 229, 0.16) !important;
}

.admin-tabulator .tabulator-cell {
  min-height: 38px;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  padding: 6px 12px;
  color: #dcefef;
  line-height: 20px;
  white-space: nowrap;
}

.admin-tabulator .tabulator-cell.tabulator-editing {
  padding: 2px 4px;
}

.admin-tabulator .tabulator-editing input {
  min-height: 26px;
  padding: 2px 8px;
  border: 1px solid #44f4e5;
  border-radius: 5px;
  background: rgba(1, 11, 18, 0.95);
  color: #f0fafa;
  font: inherit;
}

.admin-tabulator .tabulator-placeholder {
  color: #7c979d;
  font-size: 14px;
  font-weight: 600;
}

.admin-results-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.03);
}

.admin-results-tip {
  margin: 0;
  color: #7c979d;
  font-size: 12px;
}

.admin-pagination {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-page-indicator {
  color: #b9cfd4;
  font-size: 12px;
  font-weight: 600;
}

.admin-pagination a {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.05);
  color: #cfe7e9;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.admin-pagination a:hover {
  border-color: rgba(68, 244, 229, 0.4);
  background: rgba(255, 255, 255, 0.09);
}

.admin-hidden-forms {
  display: none;
}

.admin-modal[hidden] {
  display: none;
}

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}

.admin-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(8px);
}

.admin-modal-card {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  border: 1px solid rgba(68, 244, 229, 0.26);
  border-radius: 12px;
  background: rgba(8, 26, 34, 0.96);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.admin-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-modal-head h2 {
  margin: 0;
  color: #f5fefe;
  font-size: 18px;
}

.admin-modal-close {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #cfe7e9;
  font-size: 22px;
  line-height: 1;
}

.admin-modal-form {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.admin-modal-field {
  display: grid;
  gap: 7px;
  color: #9fbec6;
  font-size: 12px;
  font-weight: 700;
}

.admin-modal-field > input,
.admin-password-box {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  background: rgba(1, 11, 18, 0.85);
}

.admin-modal-field > input {
  color: #f0fafa;
}

.admin-password-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  overflow: hidden;
}

.admin-password-box input {
  height: 44px;
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #f0fafa;
}

.admin-password-eye {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
  background: rgba(68, 244, 229, 0.08);
  color: #c6fffb;
}

.admin-password-eye svg {
  width: 19px;
  height: 19px;
  display: block;
  margin: 0 auto;
  stroke: currentColor;
}

.admin-password-eye .eye-off {
  display: none;
}

.admin-password-eye.is-visible .eye-on {
  display: none;
}

.admin-password-eye.is-visible .eye-off {
  display: block;
}

.admin-import-warning {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 138, 120, 0.34);
  border-radius: 9px;
  background: rgba(180, 35, 24, 0.12);
  color: #ffb4a8;
  font-size: 12px;
  line-height: 1.6;
}

.admin-modal-message {
  min-height: 18px;
  margin: 0;
  color: #c6ff46;
  font-size: 12px;
  line-height: 1.5;
}

.admin-modal-message.is-error {
  color: #ff8a78;
}

.admin-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.text-action {
  appearance: none;
  min-height: auto;
  min-width: 0;
  border: 0;
  border-radius: 0;
  padding: 0 2px;
  background: transparent;
  box-shadow: none;
  color: #44f4e5;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
  cursor: pointer;
}

.text-action:hover {
  color: #c6ff46;
}

.row-actions-nowrap {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  white-space: nowrap;
}

.danger-link {
  color: #ff8a78;
}

.danger-link:hover {
  color: #ffb4a8;
}

@media (max-width: 760px) {
  .login-panel,
  .form-grid,
  .filters,
  .password-form,
  .edit-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .actions {
    justify-content: stretch;
    flex-direction: column;
  }

  .actions > * {
    width: 100%;
  }

  .admin-topbar {
    padding: 14px 16px;
    padding-right: 110px;
  }

  .admin-content {
    padding: 0 16px;
  }

  .admin-page-head h1 {
    font-size: 24px;
  }

  .admin-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .admin-code-card {
    min-height: 0;
    gap: 14px;
    padding: 20px;
  }

  .admin-code-num {
    font-size: 44px;
  }

  .admin-query {
    padding: 14px;
  }

  .admin-query-fields {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .admin-query-fields .admin-btn {
    height: 44px;
  }

  .admin-query-fields .admin-btn-primary {
    grid-column: 2;
  }

  .admin-query-fields .admin-btn-ghost {
    grid-column: 1;
  }

  .admin-hints {
    justify-content: flex-start;
  }

  .admin-results-toolbar,
  .admin-results-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-results-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .admin-results-actions .admin-btn-export {
    grid-column: 1 / -1;
    width: 100%;
    height: 42px;
  }

  .admin-page-actions {
    width: 100%;
    align-items: stretch;
    justify-content: flex-start;
  }

  .admin-management-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .admin-management-actions .admin-btn {
    width: 100%;
  }

  .admin-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .text-action {
    font-size: 14px;
  }
}

@media (max-width: 520px) {
  .login-screen {
    min-height: 100vh;
    min-height: 100svh;
    border-radius: 0;
    padding: 18px;
  }

  .login-grid {
    background-size: 26px 26px, 26px 26px, 104px 104px, 104px 104px;
  }

  .login-bg::before {
    width: 125vw;
    height: 125vw;
    left: -55vw;
    top: -38vw;
  }

  .login-bg::after {
    width: 108vw;
    height: 108vw;
    right: -52vw;
    bottom: -36vw;
  }

  .login-card {
    width: min(100%, 360px);
    padding: 22px 18px 18px;
  }

  .login-card h1 {
    font-size: 28px;
  }

  .login-copy {
    font-size: 15px;
  }
}

/* ==================== 用户填报页（深色科技风，uf- 前缀隔离） ==================== */
.uf-page {
  min-height: 100vh;
  color: #e8f6f8;
  background:
    radial-gradient(46% 34% at 12% 0%, rgba(68, 244, 229, 0.14), transparent 70%),
    radial-gradient(30% 26% at 90% 2%, rgba(198, 255, 70, 0.07), transparent 70%),
    radial-gradient(50% 40% at 85% 100%, rgba(143, 124, 255, 0.12), transparent 70%),
    linear-gradient(135deg, #030b12 0%, #08242f 55%, #0d1130 100%);
  padding-bottom: 70px;
}
.uf-page::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(143, 255, 245, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 255, 245, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 55%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 55%);
}
.uf-topbar {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 14px;
  padding: 16px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(3, 11, 18, 0.55);
  backdrop-filter: blur(8px);
}
.uf-brand { display: flex; align-items: center; gap: 10px; }
.uf-brand-name { font-size: 15px; font-weight: 700; letter-spacing: 1px; }
.uf-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; color: #44f4e5;
  border: 1px solid rgba(68, 244, 229, 0.35);
  background: rgba(68, 244, 229, 0.08);
  padding: 3px 10px; border-radius: 999px; letter-spacing: 1px;
}
.uf-badge i { width: 5px; height: 5px; border-radius: 50%; background: #44f4e5; }

.uf-head { position: relative; z-index: 2; padding: 28px 28px 4px; }
.uf-crumb { font-size: 12px; color: #56747c; letter-spacing: 1px; margin-bottom: 10px; }
.uf-crumb b { color: #44f4e5; font-weight: 600; }
.uf-head h2 { font-size: 26px; font-weight: 800; letter-spacing: 2px; }
.uf-head h2 span { color: #44f4e5; }
.uf-sub { color: #8fb0b8; font-size: 13px; margin-top: 8px; line-height: 1.7; max-width: 720px; }
.uf-lime { color: #c6ff46; }
.uf-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.uf-center { justify-content: center; }
.uf-chips .chip {
  font-size: 11px; color: #8fb0b8;
  border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 999px; padding: 4px 11px;
  background: rgba(255, 255, 255, 0.03);
}
.uf-chips .chip b { color: #c6ff46; font-weight: 600; }
.uf-chips .chip.t b { color: #44f4e5; }
.uf-chips .chip.p b { color: #8f7cff; }

.uf-error {
  position: relative; z-index: 2;
  margin: 18px 28px 0;
  border: 1px solid rgba(255, 99, 99, 0.45);
  background: rgba(255, 99, 99, 0.1);
  color: #ffb3b3;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.6;
}

.uf-card {
  position: relative; z-index: 2;
  margin: 20px 28px 30px;
  border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 12px;
  background: rgba(10, 32, 42, 0.66); backdrop-filter: blur(14px);
  padding: 24px 26px 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.uf-result { max-width: 640px; margin: 60px auto 30px; text-align: center; }
.uf-result-icon { margin-bottom: 10px; }
.uf-eyebrow { font-size: 12px; color: #56747c; letter-spacing: 3px; }
.uf-result h1 { font-size: 26px; font-weight: 800; letter-spacing: 2px; margin-top: 8px; }
.uf-result h1 span { color: #c6ff46; font-size: 18px; }
.uf-result .uf-sub { margin: 10px auto 0; }
.uf-result .uf-actions { justify-content: center; margin-top: 22px; }

.uf-sec-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 700; letter-spacing: 2px;
  margin: 4px 0 16px;
}
.uf-sec-title::before { content: ""; width: 4px; height: 15px; border-radius: 2px; background: #44f4e5; }
.uf-sec-title .en { font-size: 10px; color: #56747c; letter-spacing: 2px; font-weight: 500; }
.uf-sec-gap { height: 26px; }
.uf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.uf-field label {
  display: flex; align-items: baseline; gap: 6px;
  font-size: 12.5px; color: #8fb0b8; margin-bottom: 7px;
}
.uf-field label .req { color: #c6ff46; font-size: 12px; }
.uf-field label .tag {
  margin-left: auto; font-size: 10px; color: #56747c;
  border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 4px; padding: 1px 6px; letter-spacing: 0.5px;
  white-space: nowrap;
}
.uf-control { position: relative; }
.uf-page input[type="text"], .uf-page input[type="date"], .uf-page select {
  width: 100%; appearance: none; -webkit-appearance: none;
  background: rgba(6, 22, 30, 0.72);
  border: 1px solid rgba(120, 200, 210, 0.16);
  border-radius: 8px;
  color: #e8f6f8;
  font-size: 13.5px; font-family: inherit;
  padding: 11px 13px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.uf-page input::placeholder { color: #3f5a62; }
.uf-page input:focus, .uf-page select:focus {
  border-color: rgba(68, 244, 229, 0.6);
  box-shadow: 0 0 0 3px rgba(68, 244, 229, 0.12), 0 0 18px rgba(68, 244, 229, 0.08);
}
.uf-page select { cursor: pointer; padding-right: 34px; }
.uf-control::after {
  content: ""; position: absolute; right: 14px; top: 50%; margin-top: -3px;
  width: 7px; height: 7px; border-right: 1.6px solid #5f828c; border-bottom: 1.6px solid #5f828c;
  transform: rotate(45deg); pointer-events: none;
}
.uf-control.no-arrow::after { display: none; }
.uf-page input[readonly] { color: #9adfd8; cursor: default; }
.uf-hint { font-size: 11px; color: #56747c; margin-top: 6px; line-height: 1.5; }
.uf-hint em { color: #8f7cff; font-style: normal; }

.uf-segmented {
  display: flex; border: 1px solid rgba(120, 200, 210, 0.16); border-radius: 8px;
  overflow: hidden; background: rgba(6, 22, 30, 0.72);
}
.uf-segmented span {
  flex: 1; text-align: center; font-size: 13px; color: #8fb0b8;
  padding: 11px 0; cursor: pointer; transition: all .15s;
}
.uf-segmented span + span { border-left: 1px solid rgba(120, 200, 210, 0.16); }
.uf-segmented span.on { background: rgba(68, 244, 229, 0.14); color: #44f4e5; font-weight: 600; }

.uf-actions { display: flex; gap: 14px; margin-top: 24px; }
.uf-btn-primary {
  flex: 1.6; text-align: center; cursor: pointer;
  background: linear-gradient(135deg, #14c9b8, #0e8f9c);
  color: #032225; font-size: 14.5px; font-weight: 800; letter-spacing: 3px;
  border: 0; border-radius: 10px; padding: 13px 0;
  box-shadow: 0 10px 26px rgba(20, 201, 184, 0.28);
  font-family: inherit;
}
.uf-btn-primary:disabled,
.uf-btn-ghost:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}
.uf-btn-primary.uf-link { display: block; flex: 0 0 auto; padding: 13px 38px; text-decoration: none; }
.uf-btn-ghost {
  flex: 1; text-align: center; cursor: pointer;
  border: 1px solid rgba(120, 200, 210, 0.16); border-radius: 10px; padding: 13px 0;
  color: #8fb0b8; font-size: 13.5px; letter-spacing: 2px; background: transparent;
  font-family: inherit;
}
.uf-foot { margin-top: 16px; font-size: 11px; color: #56747c; text-align: center; letter-spacing: 1px; }

@media (max-width: 640px) {
  .uf-topbar { padding: 14px 16px; }
  .uf-head { padding: 22px 16px 4px; }
  .uf-head h2 { font-size: 21px; }
  .uf-card { margin: 16px 12px 22px; padding: 20px 14px; }
  .uf-grid { grid-template-columns: 1fr; gap: 14px; }
  .uf-error { margin: 14px 12px 0; }
}

/* 填报页 body 暗色化（覆盖浅色 shell） */
body.uf-body { background: #05090f; }
body.uf-body .shell { width: 100%; max-width: none; margin: 0; padding: 0; }
