:root {
  --bg-deep: #070b18;
  --bg-mid: #0c1226;
  --text: #f4f7ff;
  --muted: #9aa6c2;
  --card: rgba(28, 35, 58, 0.72);
  --card-border: rgba(255, 255, 255, 0.06);
  --primary: #2f6bff;
  --primary-hover: #2558e0;
  --white: #ffffff;
  --ink: #1a2336;
  --line: #e6ebf4;
  --danger: #d64545;
  --ok: #1f9d6a;
  --info: #2f6bff;
  --radius: 14px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: radial-gradient(1200px 700px at 20% 15%, #152045 0%, transparent 55%),
    radial-gradient(900px 600px at 85% 80%, #101a38 0%, transparent 50%),
    linear-gradient(160deg, var(--bg-deep), var(--bg-mid) 55%, #080d1c);
  overflow-x: hidden;
}

/* ---------- 用户端登录/注册（参考分栏风格） ---------- */
.auth-body {
  color: #1b2437;
  background: #edf1f7;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1.15fr);
}

.auth-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 56px 48px 28px;
  color: #fff;
  background: linear-gradient(165deg, #6a5af8 0%, #4f46e5 28%, #2f3eb5 68%, #24328f 100%);
  overflow: hidden;
}

.auth-brand::before {
  content: "";
  position: absolute;
  inset: auto -20% -30% auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 65%);
  pointer-events: none;
}

.auth-brand-inner {
  position: relative;
  z-index: 1;
  animation: rise 0.7s ease both;
}

.auth-brand h1 {
  font-size: clamp(36px, 4.5vw, 52px);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}

.auth-slogan {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 36px;
}

.auth-features {
  list-style: none;
  display: grid;
  gap: 12px;
  max-width: 360px;
}

.auth-features li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  transition: transform 0.25s ease, background 0.25s ease;
}

.auth-features li:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.14);
}

.auth-features .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12);
}

.auth-features .dot.purple { background: #c4b5fd; }
.auth-features .dot.cyan { background: #67e8f9; }
.auth-features .dot.green { background: #86efac; }

.auth-features strong {
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
}

.auth-features span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.auth-copy {
  position: relative;
  z-index: 1;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

.auth-main {
  display: grid;
  place-items: center;
  padding: 36px 24px;
  background: #edf1f7;
}

.auth-card {
  width: min(440px, 100%);
  background: #fff;
  border-radius: 22px;
  padding: 36px 34px 28px;
  box-shadow: 0 18px 50px rgba(36, 50, 110, 0.1);
  animation: card-in 0.75s ease both;
}

.auth-card h2 {
  font-size: 30px;
  color: #15233f;
  margin-bottom: 8px;
}

.auth-sub {
  color: #8b95a8;
  font-size: 14px;
  margin-bottom: 24px;
}

.auth-label {
  display: block;
  margin-bottom: 14px;
}

.auth-label > span {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: #4b5568;
  font-weight: 500;
}

.auth-label input,
.auth-input-wrap input {
  width: 100%;
  height: 48px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 0 14px;
  font: inherit;
  font-size: 15px;
  color: #111827;
  background: #f8fafc;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-label input:focus,
.auth-input-wrap input:focus {
  border-color: #6366f1;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.auth-input-wrap {
  position: relative;
}

.auth-input-wrap input {
  padding-right: 44px;
}

.auth-input-wrap .eye-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
}

.auth-captcha {
  display: grid;
  grid-template-columns: 1fr 118px;
  gap: 10px;
  align-items: end;
  margin-bottom: 6px;
}

.auth-captcha .auth-label {
  margin-bottom: 0;
}

.auth-captcha .captcha-img-btn {
  height: 48px;
  border-radius: 12px;
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0 18px;
  font-size: 13px;
}

.auth-primary {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.12em;
  cursor: pointer;
  background: linear-gradient(90deg, #6366f1, #4f46e5 55%, #4338ca);
  box-shadow: 0 12px 28px rgba(79, 70, 229, 0.32);
  transition: transform 0.15s ease, filter 0.2s ease;
}

.auth-primary:hover {
  filter: brightness(1.05);
}

.auth-primary:active {
  transform: translateY(1px);
}

.auth-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: #9ca3af;
  font-size: 13px;
}

.auth-or::before,
.auth-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.auth-secondary {
  display: grid;
  place-items: center;
  height: 46px;
  border-radius: 12px;
  background: #f3f4f6;
  color: #4f46e5;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s ease;
}

.auth-secondary:hover {
  background: #eaeaef;
}

.auth-legal {
  margin-top: 18px;
  text-align: center;
  color: #9ca3af;
  font-size: 12px;
}

.auth-admin-link {
  margin-top: 12px;
  text-align: center;
  color: #9ca3af;
  font-size: 12px;
}

.auth-admin-link a {
  color: #4f46e5;
  text-decoration: none;
}

.auth-admin-link a:hover {
  text-decoration: underline;
}

/* ---------- 安装向导 ---------- */
.install-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 16px;
  background:
    linear-gradient(135deg, rgba(79, 70, 229, 0.08), transparent 42%),
    #edf1f7;
}

.install-card {
  width: min(640px, 100%);
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 18px 48px rgba(36, 50, 110, 0.1);
}

.install-head {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 20px;
}

.install-head h1 {
  font-size: 24px;
  margin-bottom: 4px;
}

.install-head p {
  color: #7b8798;
  font-size: 13px;
}

.install-steps {
  margin: 0 0 18px 18px;
  color: #4b5568;
  font-size: 13px;
  line-height: 1.8;
}

.install-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 12px;
}

.install-divider {
  margin: 8px 0 14px;
  padding-top: 12px;
  border-top: 1px dashed #e5e7eb;
  color: #6b7280;
  font-size: 13px;
  font-weight: 600;
}

.install-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}

.install-actions .auth-primary,
.install-actions .auth-secondary {
  text-align: center;
  text-decoration: none;
  letter-spacing: 0;
}

.install-tip {
  margin-top: 16px;
  color: #9ca3af;
  font-size: 12px;
}

.install-tip code {
  background: #f3f4f6;
  padding: 1px 6px;
  border-radius: 4px;
}

.install-test-result {
  margin: 4px 0 10px;
  font-size: 13px;
  color: #6b7280;
}

.install-test-result.ok {
  color: #0f766e;
}

.install-test-result.fail {
  color: #b91c1c;
}

@media (max-width: 640px) {
  .install-grid,
  .install-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-brand {
    min-height: auto;
    padding: 28px 20px 20px;
  }

  .auth-features {
    max-width: none;
  }

  .auth-copy {
    margin-top: 24px;
  }

  .auth-card {
    padding: 24px 18px 20px;
    width: auto;
    max-width: 100%;
  }

  .auth-main {
    padding: 16px 12px 32px;
  }

  .admin-login-wrap {
    padding: 16px 12px;
  }

  .admin-login-card {
    width: min(440px, 100%);
  }
}

.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 8% 18%, rgba(255, 255, 255, 0.85), transparent),
    radial-gradient(1px 1px at 22% 42%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1.5px 1.5px at 36% 12%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 48% 68%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1.5px 1.5px at 62% 28%, rgba(255, 255, 255, 0.75), transparent),
    radial-gradient(1px 1px at 74% 55%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 86% 16%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1px 1px at 92% 72%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 15% 78%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 55% 88%, rgba(255, 255, 255, 0.65), transparent),
    radial-gradient(1px 1px at 70% 8%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1px 1px at 40% 50%, rgba(255, 255, 255, 0.35), transparent);
  animation: twinkle 6s ease-in-out infinite alternate;
}

@keyframes twinkle {
  from { opacity: 0.75; }
  to { opacity: 1; }
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  position: relative;
  z-index: 1;
}

.panel {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
  animation: rise 0.7s ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.brand-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #3b7cff, #1f4fd6);
  box-shadow: 0 10px 28px rgba(47, 107, 255, 0.45);
  margin-bottom: 22px;
}

.brand-icon.small {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  margin-bottom: 0;
  box-shadow: 0 6px 16px rgba(47, 107, 255, 0.35);
}

.brand-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}

.brand-slogan {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 28px;
}

.side-tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: #cfe0ff;
  background: rgba(47, 107, 255, 0.18);
  border: 1px solid rgba(126, 168, 255, 0.25);
}

.switch-entry {
  margin-top: 18px;
  text-align: center;
  color: #98a2b3;
  font-size: 13px;
}

.switch-entry a {
  color: var(--primary);
  text-decoration: none;
}

.switch-entry a:hover {
  text-decoration: underline;
}

.role-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  color: #cfe0ff;
  background: rgba(47, 107, 255, 0.2);
  vertical-align: middle;
}

.admin-body {
  min-height: 100vh;
  color: #1d2738;
  background:
    linear-gradient(135deg, rgba(15, 90, 90, 0.08), transparent 40%),
    linear-gradient(180deg, #eef3f1 0%, #dfe8e4 100%);
}

.admin-login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.admin-login-card {
  width: min(440px, 100%);
  background: #fff;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 18px 40px rgba(24, 48, 42, 0.12);
}

.admin-login-head {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 22px;
}

.admin-login-head h1 {
  font-size: 24px;
  margin-bottom: 4px;
}

.admin-login-head p {
  color: #7b8798;
  font-size: 13px;
}

.admin-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(145deg, #1f8a74, #146655);
  flex-shrink: 0;
}

.admin-tag {
  color: #146655;
  background: rgba(20, 102, 85, 0.1);
  border-color: rgba(20, 102, 85, 0.18);
}

.admin-btn {
  background: #146655;
  box-shadow: 0 10px 24px rgba(20, 102, 85, 0.25);
}

.admin-btn:hover {
  background: #0f5244;
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 240px 1fr;
}

.admin-side {
  background: #12352f;
  color: #e8f4f0;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.admin-side-brand strong {
  display: block;
}

.admin-side-brand span {
  font-size: 12px;
  color: #9fc4bb;
}

.admin-nav {
  display: grid;
  gap: 8px;
}

.admin-nav a {
  color: #d5ebe5;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 10px;
}

.admin-nav a.active,
.admin-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.admin-side-foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #9fc4bb;
  font-size: 13px;
}

.admin-side-foot a {
  color: #9fe0d0;
  text-decoration: none;
}

.admin-main {
  padding: 28px;
}

.admin-top h1 {
  font-size: 28px;
  margin-bottom: 6px;
}

.admin-top p {
  color: #6c7a88;
  margin-bottom: 22px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 220px));
  gap: 14px;
  margin-bottom: 18px;
}

.admin-stats article {
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 8px 20px rgba(18, 40, 34, 0.06);
}

.admin-stats span {
  display: block;
  color: #718091;
  font-size: 13px;
  margin-bottom: 8px;
}

.admin-stats strong {
  font-size: 28px;
}

.admin-panel {
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 8px 20px rgba(18, 40, 34, 0.06);
}

.admin-panel h2 {
  font-size: 16px;
  margin-bottom: 14px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid #edf1f4;
  font-size: 14px;
}

.admin-table th {
  color: #718091;
  font-weight: 500;
}

.empty {
  color: #8a96a5;
  font-size: 14px;
}

@media (max-width: 860px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-stats {
    grid-template-columns: 1fr 1fr;
  }
}


.features {
  list-style: none;
  display: grid;
  gap: 12px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(8px);
  transition: transform 0.25s ease, background 0.25s ease;
}

.feature:hover {
  transform: translateX(4px);
  background: rgba(36, 45, 74, 0.85);
}

.feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.feature-icon.check {
  color: #5d9bff;
  background: rgba(47, 107, 255, 0.15);
}

.feature-icon.bolt {
  color: #ffc857;
  background: rgba(255, 200, 87, 0.12);
}

.feature-icon.lock {
  color: #7ee0b0;
  background: rgba(126, 224, 176, 0.12);
}

.feature strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.feature span {
  color: var(--muted);
  font-size: 13px;
}

.login-card {
  background: var(--white);
  color: var(--ink);
  border-radius: 18px;
  padding: 36px 34px 28px;
  box-shadow: var(--shadow);
  animation: card-in 0.8s 0.1s ease both;
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.login-card h2 {
  font-size: 28px;
  font-weight: 700;
  color: #15233f;
  margin-bottom: 6px;
}

.login-sub {
  color: #8b95a8;
  font-size: 14px;
  margin-bottom: 22px;
}

.alerts {
  margin-bottom: 14px;
  display: grid;
  gap: 8px;
}

.alert {
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 8px;
}

.alert-error {
  color: #8f1f1f;
  background: #fde8e8;
}

.alert-success {
  color: #0f5c3d;
  background: #e5f7ef;
}

.alert-info {
  color: #1a3f9c;
  background: #e8efff;
}

.field {
  position: relative;
  display: block;
  margin-bottom: 14px;
}

.field input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 42px 0 44px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fafbfd;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field input:focus {
  border-color: #7aa0ff;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.12);
}

.field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9aa6b8;
  display: grid;
  place-items: center;
}

.eye-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #9aa6b8;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.eye-btn .eye-off,
.eye-btn svg[hidden] {
  display: none !important;
}

.eye-btn:hover {
  color: #5b6b86;
  background: #f0f3f8;
}

.captcha-row {
  display: grid;
  grid-template-columns: 1fr 118px;
  gap: 10px;
  margin-bottom: 8px;
}

.captcha-field {
  margin-bottom: 0;
}

.captcha-img-btn {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #eef1f6;
  height: 48px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.captcha-img-btn:hover {
  opacity: 0.88;
}

.captcha-img-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hint {
  color: #98a2b3;
  font-size: 12px;
  margin: 10px 0 16px;
}

.login-btn {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 24px rgba(47, 107, 255, 0.28);
}

.login-btn:hover {
  background: var(--primary-hover);
}

.login-btn:active {
  transform: translateY(1px);
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  font-size: 13px;
}

.remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6d7a90;
  cursor: pointer;
  user-select: none;
}

.remember input {
  width: 15px;
  height: 15px;
  accent-color: var(--primary);
}

.forgot {
  color: var(--primary);
  text-decoration: none;
}

.forgot:hover {
  text-decoration: underline;
}

.dash {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 24px;
}

.dash-header {
  max-width: 1100px;
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dash-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
}

.dash-user {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
}

.dash-user a {
  color: #9ec0ff;
  text-decoration: none;
}

.dash-user a:hover {
  text-decoration: underline;
}

.dash-main {
  max-width: 1100px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 36px;
}

.dash-main h1 {
  font-size: 28px;
  margin-bottom: 10px;
}

.dash-main p {
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 860px) {
  .panel {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .brand {
    text-align: center;
  }

  .brand-icon {
    margin-left: auto;
    margin-right: auto;
  }

  .features {
    max-width: 420px;
    margin: 0 auto;
    text-align: left;
  }

  .login-card {
    padding: 28px 22px 22px;
  }
}

@media (max-width: 480px) {
  .captcha-row {
    grid-template-columns: 1fr 100px;
  }

  .brand-title {
    font-size: 26px;
  }
}

/* ---------- 官网首页 ---------- */
.home-body {
  min-height: 100vh;
  color: #eef2ff;
  background: #0b1024;
}

.home-nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 56px);
}

.home-logo {
  color: #fff;
  text-decoration: none;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.home-nav nav {
  display: flex;
  gap: 18px;
}

.home-nav nav a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 14px;
}

.home-nav nav a:hover {
  color: #fff;
}

.home-hero {
  position: relative;
  min-height: calc(100vh - 88px);
  display: grid;
  place-items: center;
  padding: 40px 20px 72px;
  overflow: hidden;
}

.home-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 520px at 20% 20%, rgba(99, 102, 241, 0.45), transparent 60%),
    radial-gradient(700px 480px at 85% 70%, rgba(56, 189, 248, 0.18), transparent 55%),
    linear-gradient(165deg, #1a1640 0%, #0b1024 55%, #0a0f1f 100%);
  animation: homePulse 8s ease-in-out infinite alternate;
}

@keyframes homePulse {
  from { filter: saturate(1); }
  to { filter: saturate(1.15); }
}

.home-hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 760px;
  animation: rise 0.8s ease both;
}

.home-kicker {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: #c7d2fe;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.home-hero-inner h1 {
  font-size: clamp(44px, 8vw, 72px);
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.home-lead {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 32px;
}

.home-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}

.home-btn.primary {
  color: #fff;
  background: linear-gradient(90deg, #6366f1, #4f46e5);
  box-shadow: 0 12px 28px rgba(79, 70, 229, 0.35);
}

.home-btn.ghost {
  color: #e0e7ff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
}

.home-btn:hover {
  transform: translateY(-1px);
}

.home-entries {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: -24px auto 0;
  padding: 0 20px 56px;
  text-align: center;
}

.home-entries h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.home-entries-sub {
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 22px;
  font-size: 14px;
}

.home-entry-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.home-entry {
  display: block;
  text-align: left;
  text-decoration: none;
  color: #eef2ff;
  padding: 22px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease, transform 0.2s ease;
}

.home-entry:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.home-entry.admin {
  background: rgba(20, 102, 85, 0.18);
  border-color: rgba(126, 224, 176, 0.18);
}

.home-entry strong {
  display: block;
  font-size: 18px;
  margin-bottom: 8px;
}

.home-entry span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  line-height: 1.6;
}

.home-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 18px clamp(20px, 5vw, 56px) 28px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
}

.home-foot a {
  color: #a5b4fc;
  text-decoration: none;
}

@media (max-width: 768px) {
  .home-nav {
    padding: 16px 20px;
  }

  .home-logo {
    font-size: 20px;
  }

  .home-nav nav {
    gap: 14px;
  }

  .home-nav nav a {
    font-size: 13px;
  }

  .home-hero {
    min-height: calc(100vh - 120px);
    padding: 32px 20px;
  }

  .home-hero-inner h1 {
    font-size: clamp(32px, 10vw, 48px);
    margin-bottom: 12px;
  }

  .home-lead {
    font-size: 16px;
    margin-bottom: 28px;
  }

  .home-btn {
    min-width: 140px;
    height: 44px;
    font-size: 14px;
  }

  .home-entries {
    padding: 32px 20px;
  }

  .home-entries h2 {
    font-size: 22px;
  }

  .home-entry-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .home-entry {
    padding: 18px 16px;
  }

  .home-entry strong {
    font-size: 17px;
  }

  .home-entry span {
    font-size: 12px;
  }

  .home-foot {
    flex-direction: column;
    align-items: center;
    padding: 20px;
    gap: 10px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .home-nav {
    padding: 14px 16px;
  }

  .home-logo {
    font-size: 18px;
  }

  .home-logo .site-logo {
    max-width: 24px;
    max-height: 24px;
  }

  .home-nav nav {
    gap: 12px;
  }

  .home-nav nav a {
    font-size: 12px;
  }

  .home-hero {
    min-height: calc(100vh - 100px);
    padding: 24px 16px;
  }

  .home-hero-inner h1 {
    font-size: clamp(28px, 9vw, 40px);
    margin-bottom: 10px;
    letter-spacing: 0.04em;
  }

  .home-lead {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .home-cta {
    flex-direction: column;
    gap: 10px;
  }

  .home-btn {
    width: 100%;
    min-width: auto;
    height: 42px;
    font-size: 13px;
  }

  .home-entries {
    padding: 28px 16px;
  }

  .home-entries h2 {
    font-size: 20px;
    margin-bottom: 6px;
  }

  .home-entries-sub {
    font-size: 13px;
    margin-bottom: 18px;
  }

  .home-entry-list {
    gap: 10px;
  }

  .home-entry {
    padding: 16px 14px;
    border-radius: 10px;
  }

  .home-entry strong {
    font-size: 16px;
    margin-bottom: 6px;
  }

  .home-entry span {
    font-size: 11px;
  }

  .home-foot {
    padding: 16px;
    font-size: 11px;
  }
}
}

/* ---------- 后台管理系统（图2风格） ---------- */
.adm-body {
  min-height: 100vh;
  color: #1f2937;
  background: #eef2f6;
}

.adm-topbar {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  background: #0b1c2c;
  color: #fff;
}

.adm-topbar-left strong {
  font-size: 15px;
  letter-spacing: 0.02em;
}

.adm-topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
}

.adm-version {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 228, 17, 0.18);
  color: #ffe411;
  font-size: 12px;
  font-weight: 600;
  font-family: ui-monospace, Consolas, monospace;
  letter-spacing: 0.02em;
}

.adm-user-chip {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.adm-topbar-right a {
  color: #93c5fd;
  text-decoration: none;
}

.adm-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: calc(100vh - 56px);
}

.adm-sidebar {
  background: #f7f9fc;
  border-right: 1px solid #e5eaf0;
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: calc(100vh - 56px);
  overflow-y: auto;
  min-height: 0;
  position: sticky;
  top: 56px;
}

.adm-menu {
  display: grid;
  gap: 6px;
}

.adm-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 10px;
  color: #4b5563;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.adm-menu a:hover {
  background: #e8eef6;
}

.adm-menu a.active {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28);
}

.adm-side-extra {
  margin-top: auto;
  display: grid;
  gap: 8px;
  padding: 8px 4px;
}

.adm-side-extra a {
  color: #6b7280;
  text-decoration: none;
  font-size: 12px;
}

.adm-side-extra a:hover {
  color: #2563eb;
}

.adm-py-status{
  margin-top:8px;
  padding:10px 10px 9px;
  border-radius:10px;
  background:#fff;
  border:1px solid #e5eaf0;
}
.adm-py-row{display:flex;align-items:center;gap:6px;font-size:12px}
.adm-py-dot{
  width:8px;height:8px;border-radius:50%;flex-shrink:0;
  background:#c4c4c4;box-shadow:0 0 0 3px rgba(196,196,196,.25)
}
.adm-py-dot.on{background:#22c55e;box-shadow:0 0 0 3px rgba(34,197,94,.2)}
.adm-py-dot.off{background:#ef4444;box-shadow:0 0 0 3px rgba(239,68,68,.18)}
.adm-py-label{color:#6b7280;font-weight:500}
.adm-py-text{font-size:12px;font-weight:700}
.adm-py-text.ok{color:#16a34a}
.adm-py-text.bad{color:#dc2626}
.adm-py-detail{
  margin-top:5px;font-size:11px;color:#9ca3af;
  line-height:1.4;word-break:break-all
}

.adm-content {
  padding: 22px 24px 32px;
}

.adm-page-head {
  margin-bottom: 18px;
}

.adm-page-head h1 {
  font-size: 26px;
  margin-bottom: 6px;
}

.adm-page-head p {
  color: #6b7280;
  font-size: 13px;
}

.adm-metric-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.adm-metric {
  border-radius: 14px;
  padding: 18px 16px;
  color: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.adm-metric span {
  display: block;
  font-size: 13px;
  opacity: 0.9;
  margin-bottom: 10px;
}

.adm-metric strong {
  font-size: 30px;
  font-weight: 700;
}

.adm-metric.blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.adm-metric.orange { background: linear-gradient(135deg, #fb923c, #f97316); }
.adm-metric.green { background: linear-gradient(135deg, #34d399, #10b981); }
.adm-metric.red { background: linear-gradient(135deg, #f87171, #ef4444); }

.adm-card {
  background: #fff;
  border-radius: 14px;
  padding: 16px 18px 8px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.adm-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.adm-card-head h2 {
  font-size: 16px;
}

.adm-card-head a {
  color: #2563eb;
  text-decoration: none;
  font-size: 13px;
}

.adm-muted {
  color: #9ca3af;
  font-size: 13px;
}

.adm-table {
  width: 100%;
  border-collapse: collapse;
}

.adm-table th,
.adm-table td {
  text-align: left;
  padding: 12px 8px;
  border-bottom: 1px solid #eef2f7;
  font-size: 13px;
}

.adm-table th {
  color: #6b7280;
  font-weight: 500;
}

.adm-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  background: #e8eefc;
  color: #1d4ed8;
}

.adm-tag.ok {
  background: #dcfce7;
  color: #15803d;
}

.adm-tag.warn {
  background: #ffedd5;
  color: #c2410c;
}

.adm-empty {
  color: #9ca3af;
  font-size: 13px;
  padding: 18px 0 22px;
}

@media (max-width: 960px) {
  .adm-metric-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .adm-layout {
    display: block;
  }
  .adm-sidebar {
    position: fixed;
    left: -110%;
    top: 56px;
    width: min(280px, 86vw);
    height: calc(100vh - 56px);
    z-index: 90;
    border-right: 1px solid #e5eaf0;
    border-bottom: 0;
  }
  .adm-body.adm-nav-open .adm-sidebar {
    left: 0;
  }
  .adm-metric-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .adm-metric-row {
    grid-template-columns: 1fr;
  }
}

/* ---------- 用户管理系统（与后台同色系：浅色侧栏） ---------- */
.um-body {
  min-height: 100vh;
  color: #1f2937;
  background: #ffffff;
}

.um-stars {
  display: none;
}

.um-topbar {
  position: relative;
  z-index: 2;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  border-bottom: 0;
  background: #0b1c2c;
  color: #fff;
  backdrop-filter: none;
}

.um-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.um-brand strong {
  font-size: 15px;
  letter-spacing: 0.02em;
}

.um-top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
}

.um-top-actions a {
  color: #93c5fd;
  text-decoration: none;
}

.um-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: calc(100vh - 56px);
}

.um-sidebar {
  background: #ffffff;
  border-right: 1px solid #e5e7eb;
  padding: 18px 12px;
}

.um-menu {
  display: grid;
  gap: 6px;
}

.um-menu a {
  display: block;
  padding: 11px 12px;
  border-radius: 10px;
  color: #4b5563;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.um-menu a:hover {
  background: #e8eef6;
  color: #111827;
}

.um-menu a.active {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28);
}

.um-content {
  padding: 22px 24px 32px;
}

.um-page-head {
  margin-bottom: 18px;
}

.um-page-head h1 {
  font-size: 26px;
  margin-bottom: 6px;
  color: #111827;
}

.um-page-head p {
  color: #6b7280;
  font-size: 13px;
}

.um-metric-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.um-metric-row article {
  border-radius: 14px;
  padding: 18px 16px;
  color: #fff;
  border: 0;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.um-metric-row article:nth-child(2) {
  background: linear-gradient(135deg, #fb923c, #f97316);
}

.um-metric-row article:nth-child(3) {
  background: linear-gradient(135deg, #34d399, #10b981);
}

.um-metric-row article:nth-child(4) {
  background: linear-gradient(135deg, #f87171, #ef4444);
}

.um-metric-row span {
  display: block;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  margin-bottom: 10px;
}

.um-metric-row strong {
  font-size: 30px;
}

.um-card {
  background: #fff;
  border: 0;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.um-card h2 {
  font-size: 16px;
  margin-bottom: 14px;
  color: #111827;
}

.um-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.um-quick a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  text-decoration: none;
  color: #1d4ed8;
  background: #e8eefc;
  border: 0;
  font-size: 13px;
  font-weight: 500;
}

.um-quick a:hover {
  background: #dbeafe;
}

.um-empty {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .um-metric-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .um-layout {
    grid-template-columns: 1fr;
  }

  .um-metric-row {
    grid-template-columns: 1fr;
  }
}

