:root {
  --bg: #f1e7d6;
  --bg-accent: radial-gradient(circle at 15% 12%, rgba(208, 154, 82, 0.26), transparent 20%), radial-gradient(circle at 83% 18%, rgba(26, 94, 75, 0.18), transparent 20%), radial-gradient(circle at 52% 84%, rgba(178, 110, 63, 0.14), transparent 24%), linear-gradient(140deg, #f7f1e7 0%, #eadcc8 50%, #f1e8dc 100%);
  --panel: linear-gradient(180deg, rgba(255, 252, 247, 0.95), rgba(249, 242, 232, 0.9));
  --panel-strong: rgba(255, 250, 242, 0.88);
  --panel-dark: linear-gradient(135deg, #16241e 0%, #22362d 55%, #1f3027 100%);
  --line: rgba(47, 43, 38, 0.12);
  --text: #202737;
  --heading: #182133;
  --muted: #635e5b;
  --primary: #16693e;
  --primary-soft: #d9efe0;
  --warning: #9d4a18;
  --warning-soft: #ffead8;
  --danger: #b42318;
  --shadow: 0 28px 80px rgba(48, 34, 14, 0.14);
  --shadow-soft: 0 18px 42px rgba(48, 34, 14, 0.09);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  position: relative;
  isolation: isolate;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg-accent);
  background-attachment: fixed;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(12px);
}

body::before {
  top: 96px;
  left: -90px;
  width: 240px;
  height: 240px;
  background: rgba(234, 194, 136, 0.24);
}

body::after {
  right: -64px;
  bottom: 72px;
  width: 220px;
  height: 220px;
  background: rgba(46, 111, 88, 0.16);
}

.public-body.has-public-background::before,
.public-body.has-public-background::after {
  display: none;
}

button,
input,
textarea {
  font: inherit;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.ui-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: currentColor;
}

.public-body,
.admin-body {
  min-height: 100vh;
}

.public-shell,
.admin-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 56px;
}

.public-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  width: min(720px, calc(100% - 20px));
  padding: 18px 0;
}

.public-card,
.panel {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.public-card::before,
.panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.22));
}

.public-card {
  width: min(820px, 100%);
  padding: 44px 40px 32px;
  text-align: center;
}

.public-card::after {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  right: -78px;
  top: -78px;
  border-radius: 50%;
  background: rgba(242, 210, 161, 0.26);
}

.panel {
  padding: 30px;
}

.compact-panel {
  width: min(460px, 100%);
  margin: 8vh auto 0;
}

.login-panel.compact-panel {
  width: min(940px, 100%);
  padding: 0;
  margin-top: 7vh;
}

.login-shell {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  min-height: 480px;
}

.login-brand,
.login-content {
  position: relative;
}

.login-brand {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 36px 34px;
  background: linear-gradient(160deg, #1a2822 0%, #234234 58%, #1d6a4b 100%);
}

.login-brand::before {
  content: "";
  position: absolute;
  right: -68px;
  top: -36px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.login-brand::after {
  content: "";
  position: absolute;
  left: 28px;
  bottom: 28px;
  width: 86px;
  height: 86px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.login-brand > * {
  position: relative;
  z-index: 1;
}

.login-brand h2 {
  margin: 12px 0 0;
  color: #f7f4ee;
  font-size: clamp(34px, 5vw, 52px);
}

.login-brand p {
  margin: 14px 0 0;
  max-width: 320px;
  color: rgba(245, 241, 235, 0.76);
  line-height: 1.8;
}

.login-brand-badge {
  display: grid;
  gap: 8px;
  padding: 18px 18px 18px 112px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.login-brand-badge strong {
  color: #fff;
  font-size: 18px;
}

.login-brand-badge span {
  color: rgba(245, 241, 235, 0.72);
  line-height: 1.7;
  font-size: 14px;
}

.login-content {
  display: grid;
  align-content: center;
  padding: 38px 40px;
  background: linear-gradient(180deg, rgba(255, 251, 245, 0.98), rgba(247, 240, 231, 0.9));
}

.login-content .panel-head {
  margin-bottom: 24px;
}

.login-content .primary-btn {
  min-height: 52px;
}

.dashboard.hidden,
.hidden {
  display: none !important;
}

body.dialog-open {
  overflow: hidden;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(22, 105, 62, 0.08);
  color: var(--primary);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow-light {
  background: rgba(255, 255, 255, 0.14);
  color: rgba(249, 248, 244, 0.9);
}

h1,
h2 {
  margin: 0;
  line-height: 1.15;
  color: var(--heading);
  font-family: "STZhongsong", "Noto Serif SC", "Songti SC", "STSong", serif;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(36px, 5.2vw, 60px);
}

h2 {
  font-size: clamp(24px, 3.2vw, 34px);
}

.muted {
  color: var(--muted);
}

.public-subtitle {
  max-width: 560px;
  margin: 14px auto 0;
  line-height: 1.7;
}

.public-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.public-badge {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(22, 105, 62, 0.1);
  box-shadow: var(--shadow-soft);
  color: var(--text);
  font-size: 14px;
}

.qr-panel {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 360px;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.qr-panel::before {
  display: none;
}

.qr-panel::after {
  display: none;
}

.qr-panel > * {
  position: relative;
  z-index: 1;
}

.qr-panel.with-image {
  padding: 0;
}

.qr-panel > img {
  width: min(100%, 360px);
  aspect-ratio: 1;
  object-fit: contain;
  filter: none;
}

.public-visual {
  position: relative;
  width: min(100%, 430px);
  overflow: hidden;
  border-radius: 26px;
  background: transparent;
  box-shadow: none;
}

.public-visual-blank {
  display: grid;
  min-height: 360px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(22, 105, 62, 0.1);
}

.public-visual-multi-links {
  background: transparent;
}

.public-visual-multi-links.has-stage-background {
  border-color: rgba(255, 255, 255, 0.38);
}

.public-visual-center {
  display: grid;
  place-items: center;
  min-height: 360px;
  padding: 28px;
}

.public-standalone-qr {
  display: block;
  width: min(100%, 320px);
  aspect-ratio: 1;
  object-fit: contain;
}

.public-stage-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
}

.public-stage-image-multi-links {
  position: relative;
  z-index: 1;
}

.public-visual-overlay-center {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 28px;
}

.public-qr-floating {
  position: absolute;
  left: 50%;
  top: 50%;
  box-sizing: border-box;
  min-width: 112px;
  max-width: none;
  overflow: hidden;
  padding: 12px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 34px rgba(17, 24, 39, 0.18);
  transform: translate(-50%, -50%);
}

.public-qr-floating img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
}

.public-qr-floating.is-placeholder {
  display: grid;
  place-items: center;
  min-height: 112px;
  padding: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.public-link-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.public-link-button {
  position: absolute;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  max-width: min(78%, 260px);
  min-height: 42px;
  padding: 11px 20px 12px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 999px;
  color: #ffffff;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  text-shadow: var(--button-text-shadow, 0 1px 2px rgba(0, 0, 0, 0.28));
  word-break: break-word;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 46%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.12));
  background-blend-mode: screen, multiply;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -3px 0 rgba(0, 0, 0, 0.18),
    0 2px 0 rgba(0, 0, 0, 0.16),
    0 12px 24px rgba(15, 23, 42, 0.28),
    0 0 0 5px rgba(255, 255, 255, 0.14);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transform: translate(-50%, -50%) scale(var(--button-scale, 1));
  transform-origin: center;
  pointer-events: auto;
  transition: transform 0.16s ease, filter 0.16s ease, box-shadow 0.16s ease;
}

.public-link-button::before {
  content: '';
  position: absolute;
  inset: 3px 10px auto;
  z-index: -1;
  height: 38%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.public-link-button:hover {
  filter: brightness(1.07) saturate(1.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    inset 0 -3px 0 rgba(0, 0, 0, 0.2),
    0 3px 0 rgba(0, 0, 0, 0.16),
    0 16px 30px rgba(15, 23, 42, 0.32),
    0 0 0 6px rgba(255, 255, 255, 0.18);
  transform: translate(-50%, -54%) scale(var(--button-scale, 1));
}

.public-link-button:active {
  filter: brightness(0.98);
  box-shadow:
    inset 0 2px 5px rgba(0, 0, 0, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 6px 14px rgba(15, 23, 42, 0.24),
    0 0 0 4px rgba(255, 255, 255, 0.12);
  transform: translate(-50%, -49%) scale(var(--button-scale, 1));
}

.public-link-button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.95);
  outline-offset: 3px;
}

@media (max-width: 768px), (max-aspect-ratio: 3/4) {
  .public-body {
    overflow-x: hidden;
  }

  .public-shell {
    display: block;
    width: 100vw;
    min-height: 100svh;
    min-height: 100dvh;
    padding: 0;
  }

  .qr-panel {
    width: 100vw;
    min-height: 0;
  }

  .public-visual {
    width: 100vw;
    min-height: 0;
    border-radius: 0;
  }

  .public-visual-blank,
  .public-visual-center {
    min-height: 100svh;
    min-height: 100dvh;
  }

  .public-stage-image {
    width: 100%;
    height: auto;
    max-width: none;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: top center;
    border-radius: 0;
  }

  .public-qr-floating {
    min-width: 96px;
    max-width: none;
    padding: clamp(10px, 2.8vw, 14px);
    border-radius: clamp(18px, 5vw, 24px);
    box-shadow: 0 14px 28px rgba(17, 24, 39, 0.18);
  }

  .public-qr-floating img {
    border-radius: clamp(10px, 2.6vw, 14px);
  }

  .public-link-button {
    min-width: 88px;
    max-width: 82vw;
    min-height: 38px;
    padding: 9px 15px;
    font-size: 14px;
  }
}

.qr-panel.loading {
  color: var(--muted);
}

.qr-placeholder {
  font-size: 16px;
}

.public-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
}

.public-meta-item {
  display: block;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(22, 105, 62, 0.08);
  box-shadow: var(--shadow-soft);
  text-align: left;
}

.dashboard {
  display: grid;
  gap: 22px;
}

.dashboard-utility-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(220px, 1.2fr);
  gap: 10px;
  padding: 12px;
  border-radius: 26px;
  background: rgba(20, 21, 24, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 44px rgba(18, 19, 21, 0.24);
}

.utility-item {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.utility-item-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.utility-item-icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(247, 244, 238, 0.86);
}

.utility-item-head span:last-child {
  display: block;
  color: rgba(245, 241, 235, 0.56);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.utility-item strong {
  display: block;
  margin-top: 8px;
  color: #f7f4ee;
  font-size: 24px;
  line-height: 1.2;
}

.utility-item-wide strong {
  font-size: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.utility-item[data-tone="gold"] strong {
  color: #ffd676;
}

.utility-item[data-tone="success"] strong {
  color: #8de6b1;
}

.utility-item[data-tone="danger"] strong {
  color: #ffb5a6;
}

.dashboard-quick-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(24, 33, 51, 0.08);
  box-shadow: var(--shadow-soft);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.quick-nav-link:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 26px rgba(27, 36, 48, 0.11);
}

.console-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(24, 33, 51, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.toolbar-meta {
  display: grid;
  gap: 6px;
}

.toolbar-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--heading);
  font-weight: 700;
}

.toolbar-meta small {
  color: var(--muted);
  font-size: 13px;
}

.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(24, 33, 51, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.filter-chip.is-active {
  background: linear-gradient(135deg, rgba(22, 105, 62, 0.14), rgba(58, 163, 122, 0.16));
  border-color: rgba(22, 105, 62, 0.24);
  color: var(--primary);
}

.filter-chip:hover {
  transform: translateY(-1px);
}

.toolbar-search {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: min(100%, 260px);
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(24, 33, 51, 0.08);
  background: rgba(255, 255, 255, 0.84);
  color: var(--muted);
}

.toolbar-search input {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 11px 0;
}

.toolbar-search input:focus {
  box-shadow: none;
}

.toolbar-export-btn {
  white-space: nowrap;
}

.dashboard-masthead {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  padding: 34px;
  border-radius: 34px;
  background: var(--panel-dark);
  box-shadow: 0 36px 90px rgba(24, 36, 30, 0.28);
}

.dashboard-masthead::before {
  content: "";
  position: absolute;
  inset: auto -72px -72px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.dashboard-masthead::after {
  content: "";
  position: absolute;
  inset: -80px auto auto -80px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 224, 186, 0.08);
}

.masthead-copy,
.masthead-highlights {
  position: relative;
  z-index: 1;
}

.masthead-copy h1 {
  margin-top: 6px;
  color: #f7f4ee;
}

.masthead-copy p {
  margin: 16px 0 0;
  max-width: 620px;
  color: rgba(240, 239, 236, 0.76);
  line-height: 1.8;
  font-size: 15px;
}

.masthead-highlights {
  display: grid;
  gap: 12px;
}

.masthead-chip {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.masthead-chip strong {
  color: #ffffff;
  font-size: 17px;
}

.masthead-chip span {
  color: rgba(240, 239, 236, 0.72);
  line-height: 1.6;
}

.panel-tip {
  margin: 10px 0 0;
  line-height: 1.6;
}

.site-hub-panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 249, 241, 0.95), rgba(249, 243, 234, 0.88));
}

.site-hub-panel::after {
  content: "";
  position: absolute;
  inset: auto auto -72px -44px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(154, 52, 18, 0.08);
}

.site-add-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
}

.site-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.site-empty {
  padding: 22px;
  border: 1px dashed rgba(22, 105, 62, 0.18);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.54);
  color: var(--muted);
}

.site-card {
  position: relative;
  padding: 18px;
  border: 1px solid rgba(33, 42, 55, 0.08);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(249, 243, 234, 0.74));
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.site-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(22, 105, 62, 0.85), rgba(224, 177, 109, 0.7));
}

.site-card.active {
  border-color: rgba(20, 83, 45, 0.34);
  box-shadow: 0 22px 40px rgba(20, 83, 45, 0.13);
  background: linear-gradient(180deg, rgba(244, 252, 247, 0.94), rgba(249, 245, 236, 0.8));
  transform: translateY(-2px);
}

.site-card-head {
  margin-top: 10px;
}

.site-card-head strong {
  font-size: 18px;
  word-break: break-word;
}

.site-card-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-card-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.07);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.site-card-state.is-selected {
  background: rgba(22, 105, 62, 0.14);
  color: var(--primary);
}

.site-card-state.is-problem {
  background: rgba(180, 35, 24, 0.1);
  color: var(--danger);
}

.site-card-state.is-standby {
  background: rgba(17, 24, 39, 0.07);
  color: var(--muted);
}

.site-card-console-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.site-card-metric {
  display: grid;
  gap: 6px;
  padding: 12px 13px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(24, 33, 51, 0.06);
}

.site-card-metric span {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-card-metric strong {
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}

.site-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.site-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(24, 33, 51, 0.06);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.site-card-meta {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
  word-break: break-word;
}

.site-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.site-workspace-panel {
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.96), rgba(247, 240, 230, 0.9));
}

.site-workspace-shell {
  display: grid;
  gap: 22px;
}

.site-workspace-body {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.site-workspace-sidebar,
.site-workspace-content {
  min-width: 0;
}

.site-workspace-sidebar {
  position: sticky;
  top: 20px;
}

.site-workspace-head {
  display: grid;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(24, 33, 51, 0.08);
}

.site-workspace-heading {
  margin-bottom: 0;
}

.site-submenu-bar {
  display: grid;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 24px;
  background: linear-gradient(135deg, #1a2822 0%, #233830 58%, #1e5b42 100%);
  box-shadow: 0 18px 38px rgba(23, 34, 28, 0.18);
}

.site-submenu-bar .toolbar-title,
.site-submenu-bar .toolbar-meta small {
  color: rgba(247, 244, 238, 0.86);
}

.site-submenu-group {
  display: grid;
  gap: 10px;
}

.site-submenu-actions {
  display: grid;
  gap: 10px;
}

.submenu-chip {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(247, 244, 238, 0.72);
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.submenu-chip:hover {
  transform: translateY(-1px);
}

.submenu-chip.is-active {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.workspace-back-btn {
  min-height: 40px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(247, 244, 238, 0.92);
  width: 100%;
}

.workspace-back-btn:hover {
  box-shadow: 0 14px 24px rgba(9, 14, 12, 0.2);
}

.site-submenu-panel {
  display: grid;
  gap: 18px;
}

.site-submenu-panel .console-toolbar {
  margin-top: 0;
}

.submenu-panel-head {
  display: grid;
  gap: 8px;
}

.submenu-panel-head .eyebrow {
  margin-bottom: 2px;
}

.submenu-panel-head h3,
.submenu-card-head h3 {
  margin: 0;
  color: var(--heading);
  font-family: "STZhongsong", "Noto Serif SC", "Songti SC", "STSong", serif;
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -0.02em;
}

.submenu-panel-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.site-submenu-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.site-submenu-split-wide {
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
}

.site-submenu-card {
  padding: 24px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(24, 33, 51, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 16px 28px rgba(42, 33, 16, 0.06);
}

.timing-settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

.timing-submit-btn {
  min-width: 148px;
}

.submenu-card-head {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.submenu-card-head span {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.preview-no-margin {
  margin-top: 0;
}

.site-preview-card .visual-preview-wrap {
  margin-top: 0;
}

.site-workspace-note {
  margin-top: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
}

.secondary-grid {
  margin-top: 2px;
  grid-template-columns: 0.9fr 1.1fr;
}

.hero-panel {
  position: relative;
  overflow: hidden;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -48px -56px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(20, 83, 45, 0.08);
}

.panel-head {
  margin-bottom: 22px;
}

.panel-head-inline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.panel-head-inline > div {
  min-width: 0;
}

.panel-head-action {
  min-width: 138px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(249, 241, 232, 0.72));
  border: 1px solid rgba(33, 42, 55, 0.08);
  border-radius: var(--radius-md);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.stat-card span {
  color: var(--muted);
  font-size: 14px;
}

.stat-card strong {
  font-size: 22px;
  word-break: break-word;
}

.inline-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.stack-form {
  display: grid;
  gap: 16px;
}

.stack-form.separated {
  margin-top: 22px;
  padding-top: 24px;
  border-top: 1px dashed var(--line);
}

.inline-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
}

.field-span-full {
  grid-column: 1 / -1;
}

.upload-image-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.upload-field {
  display: grid;
  gap: 8px;
}

.upload-image-btn {
  min-width: 148px;
}

label {
  display: grid;
  gap: 8px;
}

label span {
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.02em;
}

input,
textarea {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid rgba(27, 36, 48, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

input::placeholder,
textarea::placeholder {
  color: rgba(93, 102, 113, 0.72);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(22, 105, 62, 0.34);
  box-shadow: 0 0 0 4px rgba(22, 105, 62, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

input[type="file"] {
  padding: 10px 12px;
}

input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 10px 14px;
  border: 0;
  border-radius: 12px;
  background: rgba(17, 24, 39, 0.08);
  color: var(--text);
  cursor: pointer;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.primary-btn,
.ghost-btn,
.table-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

button:disabled,
input:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.primary-btn {
  background: linear-gradient(135deg, #136238, #1f8453 58%, #3aa37a 100%);
  color: #fff;
  box-shadow: 0 18px 32px rgba(20, 83, 45, 0.2);
}

.ghost-btn {
  background: rgba(17, 24, 39, 0.06);
  border-color: rgba(17, 24, 39, 0.08);
  color: var(--text);
}

.table-action {
  min-height: 38px;
  padding: 0 13px;
  background: rgba(17, 24, 39, 0.06);
  border-color: rgba(17, 24, 39, 0.08);
  color: var(--text);
}

.table-action.warn {
  background: var(--warning-soft);
  color: var(--warning);
}

.table-action.danger {
  background: rgba(180, 35, 24, 0.12);
  color: var(--danger);
}

.primary-btn:hover,
.ghost-btn:hover,
.table-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(27, 36, 48, 0.12);
}

.table-wrap {
  overflow: auto;
  max-height: 820px;
  border: 1px solid rgba(33, 42, 55, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}

th,
td {
  padding: 12px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: var(--muted);
  font-weight: 600;
  background: rgba(247, 241, 232, 0.9);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 2;
}

th:first-child,
td:first-child {
  padding-left: 14px;
}

th:last-child,
td:last-child {
  padding-right: 14px;
}

tbody tr:hover {
  background: rgba(22, 105, 62, 0.04);
}

.table-group-row td {
  padding: 10px 12px;
  background: rgba(23, 37, 31, 0.04);
  border-bottom-color: rgba(24, 33, 51, 0.08);
}

.table-group-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.table-group-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--heading);
}

.table-group-bar span:last-child {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.domain-row td {
  background: rgba(255, 255, 255, 0.62);
}

.domain-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.domain-flag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(22, 105, 62, 0.14);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}

.domain-url {
  font-weight: 700;
  word-break: break-all;
}

.domain-meta,
.domain-reason,
.domain-time {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.domain-meta,
.domain-reason {
  margin-top: 4px;
}

.status-cell {
  white-space: nowrap;
}

td code {
  word-break: break-all;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.status-toggle {
  border: 0;
  cursor: pointer;
}

.access-ip {
  font-weight: 700;
  word-break: break-all;
}

.access-count {
  font-size: 16px;
  color: var(--heading);
}

.status-normal {
  background: var(--primary-soft);
  color: var(--primary);
}

.status-blocked {
  background: var(--warning-soft);
  color: var(--warning);
}

.status-error {
  background: rgba(180, 35, 24, 0.12);
  color: var(--danger);
}

.status-unknown {
  background: rgba(17, 24, 39, 0.08);
  color: var(--text);
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.table-actions .table-action {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.empty-cell {
  text-align: center;
  color: var(--muted);
}

.settings-note {
  margin-top: 16px;
  padding: 18px 20px;
  border: 1px dashed rgba(22, 105, 62, 0.16);
  border-radius: var(--radius-md);
  background: rgba(255, 250, 242, 0.74);
}

.settings-note span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.settings-note strong {
  display: block;
  margin-top: 8px;
  font-size: 18px;
  word-break: break-word;
}

.settings-note p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.visual-preview-wrap {
  margin-top: 20px;
}

.visual-preview-title {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
}

.appearance-preview {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: radial-gradient(circle at top, rgba(245, 220, 178, 0.42), transparent 34%), linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(247, 243, 235, 0.92));
  border: 1px solid rgba(33, 42, 55, 0.08);
  min-height: 300px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 18px 34px rgba(48, 34, 14, 0.08);
}

.appearance-preview::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 24px;
  border: 1px dashed rgba(22, 105, 62, 0.12);
}

.appearance-preview > * {
  position: relative;
  z-index: 1;
}

.appearance-preview.has-image {
  background: #f7f6f3;
}

.appearance-preview-image {
  display: block;
  width: 100%;
  height: auto;
}

.appearance-preview-empty {
  display: grid;
  place-items: center;
  min-height: 300px;
  color: var(--muted);
  font-size: 14px;
}

.appearance-preview-qr {
  position: absolute;
  left: 50%;
  top: 50%;
  box-sizing: border-box;
  width: 28%;
  min-width: 88px;
  max-width: none;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 20px 42px rgba(17, 24, 39, 0.2);
  transform: translate(-50%, -50%);
}

.appearance-preview-links {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.appearance-preview-link {
  position: absolute;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  max-width: 70%;
  min-height: 32px;
  padding: 8px 14px 9px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-shadow: var(--button-text-shadow, 0 1px 2px rgba(0, 0, 0, 0.28));
  word-break: break-word;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 46%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.12));
  background-blend-mode: screen, multiply;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -2px 0 rgba(0, 0, 0, 0.18),
    0 2px 0 rgba(0, 0, 0, 0.14),
    0 10px 20px rgba(15, 23, 42, 0.26),
    0 0 0 4px rgba(255, 255, 255, 0.14);
  cursor: pointer;
  user-select: none;
  transform: translate(-50%, -50%) scale(var(--button-scale, 1));
  transform-origin: center;
}

.appearance-preview-link::before {
  content: "";
  position: absolute;
  inset: 3px 9px auto;
  z-index: -1;
  height: 38%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.appearance-preview.has-background {
  background-position: center;
  background-size: cover;
}

.visual-preview-tip {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  max-width: min(360px, calc(100% - 32px));
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(17, 24, 39, 0.92);
  color: #fff;
  box-shadow: var(--shadow);
}

.admin-body {
  background: linear-gradient(180deg, #f6f7f8 0%, #eef1f0 100%);
}

.admin-body::before,
.admin-body::after {
  display: none;
}

.admin-body h1,
.admin-body h2,
.admin-body h3 {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  letter-spacing: -0.02em;
}

.admin-body .admin-shell {
  width: calc(100% - 32px);
  max-width: 1680px;
  padding: 20px 0 40px;
}

.admin-body .panel {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(24, 33, 51, 0.08);
  border-radius: 22px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
  backdrop-filter: none;
}

.admin-body .login-panel.compact-panel {
  width: min(560px, 100%);
  margin-top: 24px;
}

.admin-body .login-shell {
  grid-template-columns: 1fr;
  min-height: auto;
}

.admin-body .login-brand {
  gap: 14px;
  padding: 22px 24px;
}

.admin-body .login-brand::before,
.admin-body .login-brand::after {
  display: none;
}

.admin-body .login-brand p {
  max-width: none;
}

.admin-body .login-brand-badge {
  padding: 14px 16px;
}

.admin-body .login-content {
  padding: 24px;
}

.admin-body .panel::before,
.admin-body .public-card::before {
  display: none;
}

.admin-body .dashboard {
  gap: 14px;
}

.admin-body .dashboard-utility-bar {
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(260px, 1.15fr);
  gap: 12px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.admin-body .utility-item {
  position: relative;
  overflow: hidden;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f7faf8);
  border: 1px solid rgba(24, 33, 51, 0.06);
}

.admin-body .utility-item::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: rgba(22, 105, 62, 0.72);
}

.admin-body .utility-item strong,
.admin-body .utility-item-wide strong {
  margin-top: 12px;
  font-size: 24px;
  white-space: normal;
}

.admin-body .utility-item-wide {
  grid-column: 1 / -1;
}

.admin-body .utility-item-icon {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: rgba(22, 105, 62, 0.08);
  color: var(--primary);
}

.admin-body .utility-item-head span:last-child {
  color: #61707f;
}

.admin-body .utility-item strong,
.admin-body .utility-item-wide strong {
  color: var(--heading);
}

.admin-body .utility-item[data-tone="gold"] strong {
  color: #9d4a18;
}

.admin-body .utility-item[data-tone="success"] strong {
  color: var(--primary);
}

.admin-body .utility-item[data-tone="danger"] strong {
  color: var(--danger);
}

.admin-body .dashboard-quick-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-body .quick-nav-link {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: none;
  font-weight: 600;
  justify-content: flex-start;
}

.admin-body .quick-nav-link:hover {
  transform: none;
  background: #ffffff;
  box-shadow: none;
}

.admin-body .dashboard-masthead {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 16px;
  padding: 24px 26px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(249, 252, 250, 0.98), rgba(241, 247, 243, 0.96));
  border: 1px solid rgba(22, 105, 62, 0.1);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
}

.admin-body .dashboard-masthead::before,
.admin-body .dashboard-masthead::after,
.admin-body .site-hub-panel::after,
.admin-body .hero-panel::after {
  display: none;
}

.admin-body .masthead-copy h1 {
  margin-top: 0;
  color: var(--heading);
  font-size: clamp(24px, 3.8vw, 34px);
}

.admin-body .masthead-copy p {
  margin-top: 8px;
  color: var(--muted);
  max-width: none;
}

.admin-body .masthead-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.admin-body .masthead-chip {
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(24, 33, 51, 0.06);
  backdrop-filter: none;
}

.admin-body .masthead-chip strong {
  color: var(--heading);
  font-size: 15px;
}

.admin-body .masthead-chip span {
  color: var(--muted);
}

.admin-body .site-hub-panel,
.admin-body .site-workspace-panel {
  background: rgba(255, 255, 255, 0.96);
}

.admin-body .site-add-form {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.admin-body .site-list {
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 12px;
}

.admin-body .admin-password-dialog {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 18px;
}

.admin-body .admin-password-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(6px);
}

.admin-body .admin-password-panel {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100vw - 28px));
  max-height: calc(100vh - 36px);
  overflow: auto;
}

.admin-body .admin-password-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.admin-body .admin-password-head > div {
  min-width: 0;
}

.admin-body .admin-password-head p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.admin-body .admin-password-head .ghost-btn {
  min-width: 84px;
}

.admin-body .console-toolbar,
.admin-body .settings-note,
.admin-body .site-submenu-card,
.admin-body .stat-card,
.admin-body .table-wrap {
  background: #f8faf9;
  border-color: rgba(24, 33, 51, 0.08);
  box-shadow: none;
}

.admin-body .site-card {
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff, #fbfdfc);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.admin-body .site-card::before {
  top: 16px;
  bottom: 16px;
  width: 3px;
  background: var(--primary);
}

.admin-body .site-card.active {
  transform: none;
  background: linear-gradient(180deg, #fcfefd, #f4faf6);
  box-shadow: 0 14px 28px rgba(22, 105, 62, 0.08);
}

.admin-body .site-card-console-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.admin-body .site-card-console-grid > :first-child {
  grid-column: 1 / -1;
}

.admin-body .site-card-metric {
  padding: 11px 12px;
  border-radius: 14px;
  background: #f7faf8;
}

.admin-body .site-card-tags {
  display: none;
}

.admin-body .site-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

.admin-body .site-card-actions .table-action {
  width: 100%;
}

.admin-body .site-card-actions .table-action:not(.danger) {
  background: linear-gradient(135deg, #16693e, #2d8b5a);
  border-color: transparent;
  color: #ffffff;
}

.admin-body .site-card-actions .table-action.danger {
  background: #fff6f4;
  border-color: rgba(180, 35, 24, 0.12);
}

.admin-body .console-toolbar {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.admin-body .filter-chip,
.admin-body .submenu-chip {
  min-height: 34px;
  padding: 0 12px;
  box-shadow: none;
}

.admin-body .filter-chip.is-active,
.admin-body .submenu-chip.is-active {
  background: #eaf4ee;
  border-color: rgba(22, 105, 62, 0.18);
  color: var(--primary);
}

.admin-body .site-submenu-bar {
  display: grid;
  justify-content: stretch;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, #f9fcfa, #f2f7f4);
  border: 1px solid rgba(24, 33, 51, 0.08);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.admin-body .site-submenu-bar .toolbar-title {
  color: var(--heading);
}

.admin-body .site-submenu-bar .toolbar-meta small {
  color: var(--muted);
}

.admin-body .submenu-chip {
  background: #ffffff;
  border-color: rgba(24, 33, 51, 0.08);
  color: var(--muted);
  justify-content: flex-start;
  min-height: 38px;
  border-radius: 14px;
}

.admin-body .workspace-back-btn,
.admin-body .ghost-btn,
.admin-body .table-action {
  background: #ffffff;
  border-color: rgba(24, 33, 51, 0.1);
  color: var(--text);
  box-shadow: none;
}

.admin-body .primary-btn {
  box-shadow: none;
}

.admin-body .primary-btn:hover,
.admin-body .ghost-btn:hover,
.admin-body .table-action:hover,
.admin-body .workspace-back-btn:hover {
  transform: none;
  box-shadow: none;
}

.admin-body input,
.admin-body textarea {
  padding: 13px 14px;
  background: #ffffff;
  box-shadow: none;
}

.admin-body .stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-body .stats-grid > :first-child {
  grid-column: span 3;
}

.admin-body .stat-card {
  padding: 16px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.admin-body .stat-card strong {
  font-size: 20px;
}

.admin-body .table-wrap {
  border-radius: 18px;
}

.admin-body th {
  background: #f5f7f6;
}

.admin-body .domain-row td {
  background: #ffffff;
}

.admin-body .table-group-row td {
  background: #f5f7f6;
}

.admin-body .site-workspace-shell {
  gap: 18px;
}

.admin-body .site-workspace-body {
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
}

.admin-body .site-workspace-sidebar {
  top: 16px;
}

.admin-body .site-workspace-head {
  gap: 14px;
  padding-bottom: 18px;
}

.admin-body .site-submenu-actions,
.admin-body .site-submenu-split,
.admin-body .toolbar-actions {
  display: grid;
  grid-template-columns: 1fr;
}

.admin-body .site-submenu-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.admin-body .site-submenu-split-wide {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: 18px;
}

.admin-body .site-submenu-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.admin-body .timing-settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 12px;
}

.admin-body .timing-settings-grid .timing-submit-btn {
  grid-column: auto;
  width: auto;
}

.admin-body .inline-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-body .site-submenu-actions {
  justify-content: stretch;
}

.admin-body .submenu-chip,
.admin-body .workspace-back-btn,
.admin-body .timing-submit-btn,
.admin-body .inline-actions .primary-btn,
.admin-body .inline-actions .ghost-btn {
  width: 100%;
}

.admin-body .inline-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.admin-body .inline-actions > :last-child {
  grid-column: auto;
}

.admin-body .toolbar-search {
  min-width: 0;
  width: 100%;
}

.admin-body .submenu-panel-head h3,
.admin-body .submenu-card-head h3 {
  font-size: 20px;
}

@media (max-width: 760px) {
  .admin-body .admin-shell {
    width: calc(100% - 16px);
    padding: 12px 0 28px;
  }

  .admin-body .panel,
  .admin-body .dashboard-masthead,
  .admin-body .site-submenu-bar,
  .admin-body .site-card,
  .admin-body .stat-card,
  .admin-body .table-wrap,
  .admin-body .settings-note,
  .admin-body .site-submenu-card {
    border-radius: 18px;
  }

  .admin-body .dashboard {
    gap: 12px;
  }

  .admin-body .dashboard-utility-bar,
  .admin-body .stats-grid,
  .admin-body .site-card-console-grid,
  .admin-body .site-card-actions,
  .admin-body .site-workspace-body,
  .admin-body .timing-settings-grid,
  .admin-body .inline-form,
  .admin-body .inline-actions {
    grid-template-columns: 1fr;
  }

  .admin-body .dashboard-utility-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .admin-body .utility-item,
  .admin-body .utility-item-wide {
    padding: 12px 13px;
  }

  .admin-body .utility-item strong,
  .admin-body .utility-item-wide strong {
    margin-top: 10px;
    font-size: 21px;
  }

  .admin-body .utility-item-wide {
    grid-column: 1 / -1;
  }

  .admin-body .dashboard-quick-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .admin-body .quick-nav-link {
    min-height: 42px;
    justify-content: center;
  }

  .admin-body .dashboard-masthead {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px;
  }

  .admin-body .masthead-copy h1 {
    font-size: 30px;
  }

  .admin-body .masthead-copy p {
    font-size: 14px;
  }

  .admin-body .masthead-highlights {
    grid-template-columns: 1fr;
  }

  .admin-body .masthead-chip {
    padding: 11px 12px;
  }

  .admin-body .panel-head h2,
  .admin-body .site-workspace-heading h2 {
    font-size: 32px;
  }

  .admin-body .site-hub-panel,
  .admin-body .site-workspace-panel {
    padding: 18px;
  }

  .panel-head-inline {
    align-items: stretch;
    flex-direction: column;
  }

  .panel-head-action {
    width: 100%;
  }

  .admin-body .site-add-form,
  .admin-body .site-list,
  .admin-body .site-submenu-group,
  .admin-body .site-submenu-split,
  .admin-body .site-submenu-split-wide,
  .admin-body .timing-settings-grid,
  .admin-body .inline-actions,
  .admin-body .toolbar-actions {
    grid-template-columns: 1fr;
  }

  .admin-body .site-add-form {
    gap: 10px;
  }

  .admin-body .site-add-form .primary-btn,
  .admin-body .timing-submit-btn,
  .admin-body .inline-actions .primary-btn,
  .admin-body .inline-actions .ghost-btn {
    min-height: 44px;
  }

  .admin-body .console-toolbar {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
    padding: 12px;
    gap: 10px;
  }

  .admin-body .filter-group {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .admin-body .filter-group::-webkit-scrollbar {
    display: none;
  }

  .admin-body .filter-chip {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .admin-body .site-list {
    grid-template-columns: 1fr;
  }

  .admin-body .site-card {
    padding: 16px;
  }

  .admin-body .site-card-console-grid > :first-child,
  .admin-body .stats-grid > :first-child,
  .admin-body .inline-actions > :last-child,
  .admin-body .timing-settings-grid .timing-submit-btn {
    grid-column: auto;
  }

  .admin-body .site-card-console-grid {
    gap: 10px;
  }

  .admin-body .site-card-metric {
    padding: 12px;
  }

  .admin-body .site-card-actions {
    gap: 10px;
  }

  .admin-body .stats-grid {
    gap: 10px;
  }

  .admin-body .stat-card {
    padding: 14px;
  }

  .admin-body .stat-card strong {
    font-size: 18px;
  }

  .admin-body .site-workspace-head {
    gap: 10px;
    padding-bottom: 14px;
  }

  .admin-body .site-workspace-body {
    gap: 14px;
  }

  .admin-body .site-workspace-sidebar {
    position: static;
  }

  .admin-body .site-submenu-bar {
    padding: 14px;
    gap: 12px;
  }

  .admin-body .site-submenu-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .admin-body .submenu-chip {
    min-height: 44px;
    padding: 10px 12px;
    justify-content: center;
    text-align: center;
    border-radius: 16px;
  }

  .admin-body .submenu-chip span {
    line-height: 1.3;
  }

  .admin-body .workspace-back-btn {
    min-height: 44px;
  }

  .admin-body .submenu-panel-head h3,
  .admin-body .submenu-card-head h3 {
    font-size: 18px;
  }

  .admin-body .site-submenu-card,
  .admin-body .settings-note,
  .admin-body .table-wrap {
    padding: 14px;
  }

  .admin-body #domain-list-panel .table-wrap {
    overflow: visible;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .admin-body .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .admin-body table {
    min-width: 680px;
    font-size: 13px;
  }

  .admin-body th,
  .admin-body td {
    padding: 10px 10px;
  }

  .admin-body #domain-list-panel table,
  .admin-body #domain-list-panel thead,
  .admin-body #domain-list-panel tbody,
  .admin-body #domain-list-panel tr,
  .admin-body #domain-list-panel th,
  .admin-body #domain-list-panel td {
    display: block;
  }

  .admin-body #domain-list-panel table {
    min-width: 0;
    font-size: 13px;
  }

  .admin-body #domain-list-panel thead {
    display: none;
  }

  .admin-body #domain-list-panel tbody {
    display: grid;
    gap: 12px;
  }

  .admin-body #domain-list-panel .table-group-row td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border: 0;
    border-radius: 16px;
    background: #f4f7f6;
  }

  .admin-body #domain-list-panel .domain-row {
    overflow: hidden;
    border: 1px solid #e4eaef;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  }

  .admin-body #domain-list-panel .domain-row td {
    padding: 12px 14px;
    border: 0;
    background: transparent;
  }

  .admin-body #domain-list-panel .domain-row td + td {
    display: grid;
    gap: 8px;
    border-top: 1px dashed #e4eaef;
  }

  .admin-body #domain-list-panel .domain-row td:first-child {
    padding-bottom: 14px;
  }

  .admin-body #domain-list-panel .domain-row-current td:first-child {
    box-shadow: inset 4px 0 0 #12b76a;
    background: linear-gradient(180deg, #f6fffb 0%, #eefaf4 100%);
  }

  .admin-body #domain-list-panel .domain-main,
  .admin-body #domain-list-panel .domain-row-current .domain-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .admin-body #domain-list-panel .domain-url {
    font-size: 16px;
    line-height: 1.6;
  }

  .admin-body #domain-list-panel .domain-meta,
  .admin-body #domain-list-panel .domain-reason,
  .admin-body #domain-list-panel .domain-time {
    margin-top: 0;
    line-height: 1.6;
    word-break: break-word;
  }

  .admin-body #domain-list-panel .domain-reason {
    max-width: none;
  }

  .admin-body #domain-list-panel .status-cell {
    white-space: normal;
  }

  .admin-body #domain-list-panel .domain-row td:nth-child(2)::before,
  .admin-body #domain-list-panel .domain-row td:nth-child(3)::before,
  .admin-body #domain-list-panel .domain-row td:nth-child(4)::before,
  .admin-body #domain-list-panel .domain-row td:nth-child(5)::before {
    display: block;
    margin-bottom: 2px;
    color: #475467;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
  }

  .admin-body #domain-list-panel .domain-row td:nth-child(2)::before {
    content: '状态';
  }

  .admin-body #domain-list-panel .domain-row td:nth-child(3)::before {
    content: '最近检测';
  }

  .admin-body #domain-list-panel .domain-row td:nth-child(4)::before {
    content: '说明';
  }

  .admin-body #domain-list-panel .domain-row td:nth-child(5)::before {
    content: '操作';
  }

  .admin-body #domain-list-panel .table-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 4px;
    border-radius: 18px;
    border: 1px solid #e4eaef;
    background: linear-gradient(180deg, #f9fbfb 0%, #f3f7f5 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
  }

  .admin-body #domain-list-panel .table-actions .table-action {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: none;
  }

  .admin-body #domain-list-panel .table-actions .table-action.warn {
    grid-column: auto;
    background: linear-gradient(180deg, #edf9f3 0%, #e3f6ec 100%);
    border-color: rgba(15, 118, 110, 0.22);
    color: #0f766e;
  }

  .admin-body #domain-list-panel .table-actions .table-action.danger {
    grid-column: 1 / -1;
    background: #fff5f5;
    border-color: #fecdca;
    color: var(--danger);
  }

  .admin-body #domain-list-panel .empty-cell {
    padding: 22px 16px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px dashed #d7dee7;
  }

  .admin-body #access-panel .table-wrap {
    overflow: visible;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .admin-body #access-panel table,
  .admin-body #access-panel thead,
  .admin-body #access-panel tbody,
  .admin-body #access-panel tr,
  .admin-body #access-panel th,
  .admin-body #access-panel td {
    display: block;
  }

  .admin-body #access-panel table {
    min-width: 0;
    font-size: 13px;
  }

  .admin-body #access-panel thead {
    display: none;
  }

  .admin-body #access-panel tbody {
    display: grid;
    gap: 12px;
  }

  .admin-body #access-panel .access-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      'index visits'
      'ip ip'
      'location location'
      'device device'
      'time time'
      'status status';
    overflow: hidden;
    border: 1px solid #e4eaef;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  }

  .admin-body #access-panel .access-row td {
    padding: 12px 14px;
    border: 0;
    background: transparent;
  }

  .admin-body #access-panel .access-row td:nth-child(1),
  .admin-body #access-panel .access-row td:nth-child(3) {
    background: #f8fafc;
  }

  .admin-body #access-panel .access-row td:nth-child(1) {
    grid-area: index;
    border-right: 1px dashed #e4eaef;
    border-bottom: 1px dashed #e4eaef;
  }

  .admin-body #access-panel .access-row td:nth-child(2) {
    grid-area: ip;
  }

  .admin-body #access-panel .access-row td:nth-child(3) {
    grid-area: visits;
    border-bottom: 1px dashed #e4eaef;
  }

  .admin-body #access-panel .access-row td:nth-child(4) {
    grid-area: location;
    border-top: 1px dashed #e4eaef;
  }

  .admin-body #access-panel .access-row td:nth-child(5) {
    grid-area: device;
    border-top: 1px dashed #e4eaef;
  }

  .admin-body #access-panel .access-row td:nth-child(6) {
    grid-area: time;
    border-top: 1px dashed #e4eaef;
  }

  .admin-body #access-panel .access-row td:nth-child(7) {
    grid-area: status;
    border-top: 1px dashed #e4eaef;
  }

  .admin-body #access-panel .access-row td:nth-child(1)::before,
  .admin-body #access-panel .access-row td:nth-child(2)::before,
  .admin-body #access-panel .access-row td:nth-child(3)::before,
  .admin-body #access-panel .access-row td:nth-child(4)::before,
  .admin-body #access-panel .access-row td:nth-child(5)::before,
  .admin-body #access-panel .access-row td:nth-child(6)::before,
  .admin-body #access-panel .access-row td:nth-child(7)::before {
    display: block;
    margin-bottom: 4px;
    color: #475467;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
  }

  .admin-body #access-panel .access-row td:nth-child(1)::before {
    content: '序号';
  }

  .admin-body #access-panel .access-row td:nth-child(2)::before {
    content: 'IP地址';
  }

  .admin-body #access-panel .access-row td:nth-child(3)::before {
    content: '访问次数';
  }

  .admin-body #access-panel .access-row td:nth-child(4)::before {
    content: '归属地';
  }

  .admin-body #access-panel .access-row td:nth-child(5)::before {
    content: '设备信息';
  }

  .admin-body #access-panel .access-row td:nth-child(6)::before {
    content: '访问时间';
  }

  .admin-body #access-panel .access-row td:nth-child(7)::before {
    content: '黑名单状态';
  }

  .admin-body #access-panel .access-ip {
    display: block;
    font-size: 18px;
    line-height: 1.45;
    word-break: break-all;
  }

  .admin-body #access-panel .access-count {
    display: block;
    font-size: 24px;
    line-height: 1.1;
  }

  .admin-body #access-panel .domain-time,
  .admin-body #access-panel .domain-meta {
    line-height: 1.6;
    word-break: break-word;
  }

  .admin-body #access-panel .status-cell {
    white-space: normal;
  }

  .admin-body #access-panel .status-toggle {
    width: 100%;
    min-height: 42px;
  }

  .admin-body #access-panel .empty-cell {
    padding: 22px 16px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px dashed #d7dee7;
  }

  .admin-body .appearance-preview {
    min-height: 220px;
  }

  .admin-body .appearance-preview-empty {
    min-height: 220px;
  }

  .admin-body .toolbar-search {
    min-width: 0;
  }

  .admin-body .admin-password-dialog {
    padding: 12px;
  }

  .admin-body .admin-password-head {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .admin-body .admin-shell {
    width: calc(100% - 12px);
    padding: 10px 0 22px;
  }

  .admin-body .dashboard-utility-bar,
  .admin-body .dashboard-quick-nav,
  .admin-body .site-submenu-group {
    grid-template-columns: 1fr;
  }

  .admin-body .panel,
  .admin-body .dashboard-masthead,
  .admin-body .site-submenu-bar,
  .admin-body .site-card,
  .admin-body .stat-card,
  .admin-body .table-wrap,
  .admin-body .settings-note,
  .admin-body .site-submenu-card {
    border-radius: 16px;
  }

  .admin-body .panel-head h2,
  .admin-body .site-workspace-heading h2,
  .admin-body .masthead-copy h1 {
    font-size: 28px;
  }

  .admin-body .site-hub-panel,
  .admin-body .site-workspace-panel,
  .admin-body .dashboard-masthead,
  .admin-body .site-submenu-bar,
  .admin-body .site-card,
  .admin-body .site-submenu-card,
  .admin-body .settings-note {
    padding: 14px;
  }

  .admin-body .site-card-actions,
  .admin-body .inline-actions {
    grid-template-columns: 1fr;
  }

  .admin-body .appearance-preview {
    min-height: 200px;
  }

  .admin-body .appearance-preview-empty {
    min-height: 200px;
  }
}

@media (max-width: 960px) {
  .login-shell,
  .dashboard-utility-bar,
  .dashboard-masthead,
  .site-submenu-split,
  .timing-settings-grid,
  .hero-grid,
  .secondary-grid,
  .inline-form,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .utility-item-wide {
    grid-column: auto;
  }

  .site-add-form,
  .upload-image-row {
    grid-template-columns: 1fr;
  }

  .site-submenu-bar,
  .console-toolbar,
  .toolbar-actions,
  .site-card-console-grid {
    grid-template-columns: 1fr;
  }

  .site-submenu-bar,
  .console-toolbar,
  .toolbar-actions {
    display: grid;
  }

  .site-submenu-actions {
    justify-content: stretch;
  }

  .public-meta,
  .inline-actions {
    flex-direction: column;
  }

  .public-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .public-shell,
  .admin-shell {
    width: min(100% - 20px, 1180px);
    padding: 20px 0 28px;
  }

  .public-shell {
    display: block;
    min-height: 100svh;
    min-height: 100dvh;
    width: 100vw;
    padding: 0;
  }

  .qr-panel {
    width: 100vw;
    min-height: 0;
  }

  .public-visual {
    width: 100vw;
    max-width: none;
    min-height: 0;
    border-radius: 0;
  }

  .public-stage-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: top center;
    border-radius: 0;
  }

  .public-qr-floating {
    min-width: 88px;
    max-width: none;
    padding: 10px;
    border-radius: 20px;
    box-shadow: 0 12px 24px rgba(17, 24, 39, 0.16);
  }

  .public-qr-floating img {
    border-radius: 10px;
  }

  .login-content,
  .login-brand,
  .dashboard-masthead,
  .panel,
  .public-card {
    padding: 22px;
    border-radius: 22px;
  }

  .login-brand-badge {
    padding-left: 22px;
  }

  .toolbar-search {
    min-width: 100%;
  }

  .site-submenu-group {
    display: grid;
    grid-template-columns: 1fr;
  }

  .site-submenu-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .submenu-chip {
    justify-content: flex-start;
  }

  .site-card-console-grid {
    grid-template-columns: 1fr;
  }

  .login-brand::after {
    display: none;
  }

  .dashboard-quick-nav {
    display: grid;
    grid-template-columns: 1fr;
  }

  .public-card {
    padding-top: 30px;
  }

  .site-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  h1 {
    font-size: 30px;
  }
}

/* Admin UI refresh: quieter operational surface */
.admin-body {
  --bg: #f4f6f8;
  --panel: #ffffff;
  --panel-strong: #ffffff;
  --line: #d9e1e8;
  --text: #1f2937;
  --heading: #111827;
  --muted: #667085;
  --primary: #0f766e;
  --primary-soft: #e6f4f1;
  --warning: #b45309;
  --warning-soft: #fff7ed;
  --danger: #b42318;
  --radius-lg: 8px;
  --radius-md: 8px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
  --shadow-soft: 0 1px 2px rgba(16, 24, 40, 0.04);
  background: #f4f6f8;
  color: var(--text);
}

.admin-body::before,
.admin-body::after,
.admin-body .panel::before,
.admin-body .public-card::before,
.admin-body .dashboard-masthead::before,
.admin-body .dashboard-masthead::after,
.admin-body .site-hub-panel::after,
.admin-body .login-brand::before,
.admin-body .login-brand::after,
.admin-body .appearance-preview::before {
  display: none;
}

.admin-body .admin-shell {
  width: min(1440px, calc(100% - 40px));
  padding: 24px 0 40px;
}

.admin-body h1,
.admin-body h2,
.admin-body .submenu-panel-head h3,
.admin-body .submenu-card-head h3 {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

.admin-body h1 {
  font-size: 24px;
  line-height: 1.25;
}

.admin-body h2,
.admin-body .site-workspace-heading h2 {
  font-size: 22px;
  line-height: 1.25;
}

.admin-body .submenu-panel-head h3,
.admin-body .submenu-card-head h3 {
  font-size: 18px;
}

.admin-body .eyebrow {
  margin-bottom: 8px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #475467;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: none;
}

.admin-body .eyebrow-light {
  color: #d0d5dd;
}

.admin-body .panel,
.admin-body .site-submenu-card,
.admin-body .stat-card,
.admin-body .table-wrap,
.admin-body .settings-note,
.admin-body .dashboard-masthead,
.admin-body .dashboard-utility-bar,
.admin-body .dashboard-quick-nav,
.admin-body .site-submenu-bar,
.admin-body .console-toolbar,
.admin-body .site-card,
.admin-body .masthead-chip,
.admin-body .login-panel,
.admin-body .admin-password-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  backdrop-filter: none;
}

.admin-body .panel {
  padding: 22px;
  overflow: visible;
}

.admin-body .dashboard {
  gap: 16px;
}

.admin-body .dashboard-utility-bar {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.admin-body .utility-item-wide {
  grid-column: auto;
}

.admin-body .utility-item {
  min-width: 0;
  padding: 16px 18px;
  border-radius: 0;
  background: #ffffff;
  border-right: 1px solid var(--line);
}

.admin-body .utility-item:last-child {
  border-right: 0;
}

.admin-body .utility-item-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--primary-soft);
  color: var(--primary);
}

.admin-body .utility-item-head span:last-child,
.admin-body .utility-item strong,
.admin-body .utility-item[data-tone] strong,
.admin-body .utility-item-wide strong {
  color: var(--heading);
}

.admin-body .utility-item-head span:last-child {
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}

.admin-body .utility-item strong,
.admin-body .utility-item-wide strong {
  margin-top: 8px;
  font-size: 22px;
}

.admin-body .utility-item[data-tone="success"] .utility-item-icon {
  background: #ecfdf3;
  color: #027a48;
}

.admin-body .utility-item[data-tone="danger"] .utility-item-icon {
  background: #fef3f2;
  color: #b42318;
}

.admin-body .utility-item[data-tone="gold"] .utility-item-icon {
  background: #fffaeb;
  color: #b54708;
}

.admin-body .dashboard-quick-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, auto));
  justify-content: start;
  gap: 8px;
  padding: 10px;
}

.admin-body .quick-nav-link {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 6px;
  background: #f8fafc;
  border-color: var(--line);
  box-shadow: none;
  color: #344054;
  font-size: 13px;
}

.admin-body .quick-nav-link:hover {
  transform: none;
  background: #eef4ff;
  box-shadow: none;
}

.admin-body .dashboard-masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
}

.admin-body .masthead-copy h1 {
  margin-top: 0;
  color: var(--heading);
}

.admin-body .masthead-copy p {
  max-width: none;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.6;
}

.admin-body .masthead-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(142px, 1fr));
  gap: 8px;
}

.admin-body .masthead-chip {
  gap: 4px;
  padding: 10px 12px;
  background: #f8fafc;
  box-shadow: none;
}

.admin-body .masthead-chip strong {
  color: var(--heading);
  font-size: 13px;
}

.admin-body .masthead-chip span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.admin-body .site-hub-panel,
.admin-body .site-workspace-panel {
  background: #ffffff;
}

.admin-body .panel-head {
  margin-bottom: 16px;
}

.admin-body .panel-head-inline {
  align-items: center;
}

.admin-body .panel-tip,
.admin-body .submenu-panel-head p,
.admin-body .settings-note p {
  line-height: 1.55;
}

.admin-body .site-add-form {
  grid-template-columns: minmax(320px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.admin-body .site-list {
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 14px;
}

.admin-body .site-empty {
  border-radius: 8px;
  background: #f8fafc;
  border-color: var(--line);
}

.admin-body .site-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.7fr) 150px;
  grid-template-areas:
    "topbar metrics actions"
    "head metrics actions"
    "tags metrics actions";
  align-items: stretch;
  gap: 12px;
  padding: 16px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.admin-body .site-card::before {
  display: block;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 8px 0 0 8px;
  background: #98a2b3;
}

.admin-body .site-card.active {
  border-color: rgba(15, 118, 110, 0.38);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.08);
}

.admin-body .site-card.active::before {
  background: var(--primary);
}

.admin-body .site-card-head {
  grid-area: head;
  margin-top: 8px;
}

.admin-body .site-card-head strong {
  font-size: 17px;
  line-height: 1.35;
}

.admin-body .site-card-topbar {
  grid-area: topbar;
  align-self: start;
}

.admin-body .site-card-state,
.admin-body .site-card-tag,
.admin-body .status-pill,
.admin-body .domain-flag {
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.admin-body .site-card-console-grid {
  grid-area: metrics;
  grid-template-columns: minmax(210px, 1fr) repeat(3, minmax(86px, max-content)) minmax(118px, max-content);
  gap: 8px;
  margin-top: 0;
}

.admin-body .site-card-console-grid > :first-child,
.admin-body .site-card-console-grid > :last-child {
  grid-column: auto;
}

.admin-body .site-card-console-grid > :last-child {
  grid-column: 5 / 6;
}

.admin-body .site-card-metric {
  padding: 10px 12px;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid #eef2f6;
}

.admin-body .site-card-console-grid > :nth-child(2),
.admin-body .site-card-console-grid > :nth-child(3),
.admin-body .site-card-console-grid > :nth-child(4) {
  min-width: 86px;
}

.admin-body .site-card-metric span {
  letter-spacing: 0;
  text-transform: none;
}

.admin-body .site-card-active-links {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.admin-body .site-card-active-link {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #e4eaef;
  border-radius: 6px;
  background: #ffffff;
}

.admin-body .site-card-active-link span {
  color: #667085;
  font-size: 12px;
}

.admin-body .site-card-active-link strong {
  overflow-wrap: anywhere;
  color: var(--heading);
  font-size: 13px;
  line-height: 1.45;
}

.admin-body #active-domain {
  white-space: pre-line;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.admin-body .site-card-actions {
  grid-area: actions;
  display: grid;
  grid-template-columns: 1fr;
  align-content: end;
  gap: 8px;
  margin-top: 0;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

.admin-body .site-card-actions .table-action {
  width: 100%;
}

.admin-body .site-card-tags {
  grid-area: tags;
  display: flex;
  align-content: end;
  gap: 6px;
  margin-top: 0;
}

.admin-body .site-card-actions .table-action:not(.danger) {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.admin-body .site-card-actions .table-action.danger,
.admin-body .table-action.danger {
  background: #fff5f5;
  border-color: #fecdca;
  color: var(--danger);
}

.admin-body .site-workspace-body {
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 16px;
}

.admin-body .site-workspace-head {
  padding-bottom: 16px;
  border-bottom-color: var(--line);
}

.admin-body .site-submenu-bar {
  gap: 12px;
  padding: 14px;
}

.admin-body .site-submenu-group {
  gap: 6px;
}

.admin-body .submenu-chip {
  justify-content: flex-start;
  min-height: 38px;
  padding: 0 11px;
  border-radius: 6px;
  background: #ffffff;
  border-color: var(--line);
  color: #475467;
}

.admin-body .submenu-chip.is-active {
  background: var(--primary-soft);
  border-color: rgba(15, 118, 110, 0.26);
  color: var(--primary);
}

.admin-body .workspace-back-btn {
  min-height: 38px;
  border-radius: 6px;
  width: 100%;
}

.admin-body .stats-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.admin-body .stats-grid > :first-child {
  grid-column: span 2;
}

.admin-body .stat-card {
  gap: 6px;
  padding: 13px 14px;
}

.admin-body .stat-card span {
  font-size: 12px;
}

.admin-body .stat-card strong {
  font-size: 16px;
  line-height: 1.45;
}

.admin-body .inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.admin-body .inline-actions .primary-btn,
.admin-body .inline-actions .ghost-btn {
  width: auto;
}

.admin-body .site-submenu-split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-body .site-submenu-split-wide {
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 14px;
}

.admin-body .site-submenu-card {
  padding: 18px;
}

.admin-body .submenu-card-head {
  margin-bottom: 14px;
}

.admin-body .submenu-card-head span {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}

.admin-body .timing-settings-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 10px;
}

.admin-body .timing-settings-grid .timing-submit-btn {
  min-width: 124px;
  width: auto;
}

.admin-body .console-toolbar {
  display: flex;
  align-items: center;
  margin-top: 12px;
  padding: 12px;
}

.admin-body .toolbar-title {
  color: var(--heading);
}

.admin-body .toolbar-meta small {
  color: var(--muted);
}

.admin-body .toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.admin-body .filter-group {
  gap: 6px;
}

.admin-body .filter-chip {
  min-height: 32px;
  padding: 0 11px;
  border-radius: 6px;
  background: #ffffff;
  border-color: var(--line);
  color: #475467;
}

.admin-body .filter-chip:hover {
  transform: none;
  background: #f8fafc;
}

.admin-body .filter-chip.is-active {
  background: var(--primary-soft);
  border-color: rgba(15, 118, 110, 0.26);
  color: var(--primary);
}

.admin-body .toolbar-search {
  min-width: 260px;
  height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  border-color: #d7dee7;
  background: linear-gradient(180deg, #ffffff, #f8fbfa);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), 0 10px 24px rgba(15, 23, 42, 0.05);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.admin-body .toolbar-search input {
  padding: 0;
  font-size: 13px;
  color: #101828;
}

.admin-body .toolbar-search input::placeholder {
  color: #98a2b3;
}

.admin-body .toolbar-search .ui-icon {
  color: #98a2b3;
  transition: color 0.18s ease;
}

.admin-body .toolbar-search:focus-within {
  border-color: rgba(15, 118, 110, 0.36);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.08), 0 16px 32px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.admin-body .toolbar-search:focus-within .ui-icon {
  color: var(--primary);
}

.admin-body label span {
  color: #475467;
  font-size: 13px;
  letter-spacing: 0;
}

.admin-body input,
.admin-body textarea {
  padding: 10px 12px;
  border-radius: 6px;
  border-color: #cfd7df;
  background: #ffffff;
  box-shadow: none;
}

.admin-body textarea {
  min-height: 112px;
}

.admin-body input:focus,
.admin-body textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.admin-body .primary-btn,
.admin-body .ghost-btn,
.admin-body .table-action {
  min-height: 38px;
  border-radius: 6px;
  box-shadow: none;
}

.admin-body .primary-btn {
  background: var(--primary);
  border-color: var(--primary);
}

.admin-body .ghost-btn,
.admin-body .table-action {
  background: #ffffff;
  border-color: #cfd7df;
  color: #344054;
}

.admin-body .table-action.warn {
  background: #fffbeb;
  border-color: #fedf89;
  color: #b54708;
}

.admin-body .primary-btn:hover,
.admin-body .ghost-btn:hover,
.admin-body .table-action:hover,
.admin-body .workspace-back-btn:hover {
  transform: none;
  box-shadow: none;
  filter: brightness(0.98);
}

.admin-body .table-wrap {
  max-height: 760px;
  overflow: auto;
}

.admin-body table {
  font-size: 13px;
}

.admin-body th,
.admin-body td {
  padding: 10px 12px;
}

.admin-body th {
  background: #f8fafc;
  color: #475467;
  font-weight: 700;
}

.admin-body .domain-row td,
.admin-body .access-row td {
  background: #ffffff;
}

.admin-body .domain-row-current td {
  background: linear-gradient(180deg, #f6fffb 0%, #eefaf4 100%);
}

.admin-body .domain-row-current td:first-child {
  box-shadow: inset 4px 0 0 #12b76a;
}

.admin-body tbody tr:hover td {
  background: #f9fbfa;
}

.admin-body .table-group-row td {
  background: #f2f4f7;
}

.admin-body .domain-main {
  align-items: flex-start;
}

.admin-body .domain-row-current .domain-main {
  flex-direction: column;
  gap: 8px;
}

.admin-body .domain-row-current .domain-flag {
  min-height: 28px;
  padding: 0 12px;
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.18);
}

.admin-body .domain-url,
.admin-body .access-ip {
  color: #101828;
}

.admin-body .domain-row-current .domain-url {
  color: #065f46;
  font-size: 14px;
  line-height: 1.6;
}

.admin-body .domain-meta,
.admin-body .domain-reason,
.admin-body .domain-time {
  color: var(--muted);
}

.admin-body .domain-row-current td:first-child .domain-meta {
  color: #0f766e;
  font-weight: 600;
}

.admin-body .domain-row-current .status-cell .status-pill {
  box-shadow: 0 8px 18px rgba(18, 183, 106, 0.12);
}

.admin-body .domain-reason {
  max-width: 380px;
}

.admin-body .status-normal {
  background: #ecfdf3;
  color: #027a48;
}

.admin-body .status-blocked {
  background: #fff7ed;
  color: #b54708;
}

.admin-body .status-error {
  background: #fef3f2;
  color: #b42318;
}

.admin-body .status-unknown {
  background: #f2f4f7;
  color: #475467;
}

.admin-body .settings-note {
  margin-top: 14px;
  padding: 14px 16px;
  border-style: solid;
  background: #f8fafc;
}

.admin-body .settings-note strong {
  margin-top: 6px;
  font-size: 15px;
}

.admin-body .appearance-preview {
  min-height: 280px;
  border-radius: 8px;
  background: #f8fafc;
  box-shadow: none;
}

.admin-body .appearance-preview.is-multi-links.has-image {
  min-height: 0;
}

.admin-body .appearance-preview-empty {
  min-height: 280px;
}

.admin-body .appearance-preview-qr {
  border-radius: 6px;
}

.admin-body .login-panel.compact-panel {
  width: min(860px, 100%);
  margin-top: 8vh;
}

.admin-body .login-shell {
  min-height: 420px;
}

.admin-body .login-brand {
  padding: 32px;
  border-radius: 6px;
  background: #101828;
}

.admin-body .login-brand h2 {
  color: #ffffff;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 34px;
  letter-spacing: 0;
}

.admin-body .login-brand p,
.admin-body .login-brand-badge span {
  color: #d0d5dd;
}

.admin-body .login-brand-badge {
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.admin-body .login-content {
  padding: 34px 38px;
  border-radius: 6px;
  background: #ffffff;
}

.admin-body .admin-password-backdrop {
  background: rgba(15, 23, 42, 0.42);
}

@media (max-width: 1180px) {
  .admin-body .dashboard-utility-bar,
  .admin-body .masthead-highlights,
  .admin-body .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-body .utility-item-wide,
  .admin-body .stats-grid > :first-child {
    grid-column: span 2;
  }

  .admin-body .dashboard-masthead,
  .admin-body .site-workspace-body,
  .admin-body .timing-settings-grid {
    grid-template-columns: 1fr;
  }

  .admin-body .site-workspace-sidebar {
    position: static;
  }

  .admin-body .site-submenu-group {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-body .site-submenu-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .admin-body .workspace-back-btn {
    width: auto;
  }

  .admin-body .timing-settings-grid .timing-submit-btn {
    width: 100%;
  }

  .admin-body .site-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "topbar"
      "head"
      "metrics"
      "tags"
      "actions";
    gap: 10px;
  }

  .admin-body .site-card-console-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-body .site-card-console-grid > :first-child {
    grid-column: 1 / -1;
  }

  .admin-body .site-card-console-grid > :last-child {
    grid-column: auto;
  }

  .admin-body .site-card-actions {
    grid-template-columns: 1fr auto;
    align-content: stretch;
    padding-left: 0;
    border-left: 0;
  }

  .admin-body .site-card-tags {
    margin-top: 0;
  }
}

@media (max-width: 820px) {
  .admin-body .admin-shell {
    width: calc(100% - 20px);
    padding: 14px 0 28px;
  }

  .admin-body .panel,
  .admin-body .site-submenu-card {
    padding: 16px;
  }

  .admin-body .dashboard-quick-nav,
  .admin-body .masthead-highlights,
  .admin-body .site-add-form,
  .admin-body .site-list,
  .admin-body .site-submenu-split,
  .admin-body .site-submenu-split-wide,
  .admin-body .inline-form,
  .admin-body .stats-grid,
  .admin-body .site-submenu-actions {
    grid-template-columns: 1fr;
  }

  .admin-body .dashboard-utility-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-body .utility-item,
  .admin-body .utility-item:last-child {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .admin-body .utility-item:nth-child(2n) {
    border-right: 0;
  }

  .admin-body .utility-item:last-child {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 0;
  }

  .admin-body .stats-grid > :first-child {
    grid-column: auto;
  }

  .admin-body .dashboard-masthead {
    padding: 16px;
  }

  .admin-body .site-submenu-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-body .site-submenu-actions,
  .admin-body .toolbar-actions,
  .admin-body .console-toolbar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .admin-body .toolbar-search {
    min-width: 0;
  }

  .admin-body .filter-group {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .admin-body .filter-group::-webkit-scrollbar {
    display: none;
  }

  .admin-body .filter-chip {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .admin-body .table-wrap {
    border-radius: 8px;
  }

  .admin-body table {
    min-width: 720px;
  }

  .admin-body #access-panel .table-wrap {
    overflow: visible;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .admin-body #access-panel table,
  .admin-body #access-panel thead,
  .admin-body #access-panel tbody,
  .admin-body #access-panel tr,
  .admin-body #access-panel th,
  .admin-body #access-panel td {
    display: block;
  }

  .admin-body #access-panel table {
    min-width: 0;
    font-size: 13px;
  }

  .admin-body #access-panel thead {
    display: none;
  }

  .admin-body #access-panel tbody {
    display: grid;
    gap: 12px;
  }

  .admin-body #access-panel .access-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      'index visits'
      'ip ip'
      'location location'
      'device device'
      'time time'
      'status status';
    overflow: hidden;
    border: 1px solid #e4eaef;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  }

  .admin-body #access-panel .access-row td {
    padding: 12px 14px;
    border: 0;
    background: transparent;
  }

  .admin-body #access-panel .access-row td:nth-child(1),
  .admin-body #access-panel .access-row td:nth-child(3) {
    background: #f8fafc;
  }

  .admin-body #access-panel .access-row td:nth-child(1) {
    grid-area: index;
    border-right: 1px dashed #e4eaef;
    border-bottom: 1px dashed #e4eaef;
  }

  .admin-body #access-panel .access-row td:nth-child(2) {
    grid-area: ip;
  }

  .admin-body #access-panel .access-row td:nth-child(3) {
    grid-area: visits;
    border-bottom: 1px dashed #e4eaef;
  }

  .admin-body #access-panel .access-row td:nth-child(4) {
    grid-area: location;
    border-top: 1px dashed #e4eaef;
  }

  .admin-body #access-panel .access-row td:nth-child(5) {
    grid-area: device;
    border-top: 1px dashed #e4eaef;
  }

  .admin-body #access-panel .access-row td:nth-child(6) {
    grid-area: time;
    border-top: 1px dashed #e4eaef;
  }

  .admin-body #access-panel .access-row td:nth-child(7) {
    grid-area: status;
    border-top: 1px dashed #e4eaef;
  }

  .admin-body #access-panel .access-row td:nth-child(1)::before,
  .admin-body #access-panel .access-row td:nth-child(2)::before,
  .admin-body #access-panel .access-row td:nth-child(3)::before,
  .admin-body #access-panel .access-row td:nth-child(4)::before,
  .admin-body #access-panel .access-row td:nth-child(5)::before,
  .admin-body #access-panel .access-row td:nth-child(6)::before,
  .admin-body #access-panel .access-row td:nth-child(7)::before {
    display: block;
    margin-bottom: 4px;
    color: #475467;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
  }

  .admin-body #access-panel .access-row td:nth-child(1)::before {
    content: '序号';
  }

  .admin-body #access-panel .access-row td:nth-child(2)::before {
    content: 'IP地址';
  }

  .admin-body #access-panel .access-row td:nth-child(3)::before {
    content: '访问次数';
  }

  .admin-body #access-panel .access-row td:nth-child(4)::before {
    content: '归属地';
  }

  .admin-body #access-panel .access-row td:nth-child(5)::before {
    content: '设备信息';
  }

  .admin-body #access-panel .access-row td:nth-child(6)::before {
    content: '访问时间';
  }

  .admin-body #access-panel .access-row td:nth-child(7)::before {
    content: '黑名单状态';
  }

  .admin-body #access-panel .access-ip {
    display: block;
    font-size: 18px;
    line-height: 1.45;
    word-break: break-all;
  }

  .admin-body #access-panel .access-count {
    display: block;
    font-size: 24px;
    line-height: 1.1;
  }

  .admin-body #access-panel .domain-time,
  .admin-body #access-panel .domain-meta {
    line-height: 1.6;
    word-break: break-word;
  }

  .admin-body #access-panel .status-cell {
    white-space: normal;
  }

  .admin-body #access-panel .status-toggle {
    width: 100%;
    min-height: 42px;
  }

  .admin-body #access-panel .empty-cell {
    padding: 22px 16px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px dashed #d7dee7;
  }

  .admin-body .login-shell {
    grid-template-columns: 1fr;
  }

  .admin-body .login-brand {
    padding: 24px;
  }
}

@media (max-width: 520px) {
  .admin-body .admin-shell {
    width: calc(100% - 12px);
    padding-top: 8px;
  }

  .admin-body h1,
  .admin-body .panel-head h2,
  .admin-body .site-workspace-heading h2,
  .admin-body .masthead-copy h1 {
    font-size: 20px;
  }

  .admin-body .site-submenu-group,
  .admin-body .inline-actions {
    grid-template-columns: 1fr;
  }

  .admin-body .site-card-actions {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .admin-body .site-card-console-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-body .site-card-console-grid > :first-child {
    grid-column: 1 / -1;
  }
}

.admin-body .display-mode-field {
  display: grid;
  gap: 8px;
}

.admin-body .public-link-config {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.admin-body .public-link-config-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.admin-body .public-link-config-head > div {
  display: grid;
  gap: 4px;
}

.admin-body .public-link-config-head small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.admin-body .public-link-config-head .ghost-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.admin-body .public-link-config-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.admin-body .public-link-save-btn {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 6px;
  white-space: nowrap;
}

.admin-body .public-link-list {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.admin-body .public-link-empty {
  padding: 14px;
  border: 1px dashed #cfd7df;
  border-radius: 6px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 13px;
}

.admin-body .public-link-item {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-areas:
    "head head head head"
    "name name color textcolor"
    "strokeColor strokeWidth size size"
    "domain domain domain domain"
    "status status status status"
    "detect detect posx posy";
  gap: 10px 12px;
  min-width: 0;
  overflow: hidden;
  padding: 14px;
  border: 1px solid #e4eaef;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff, #fbfdfd);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.admin-body .public-link-item-head {
  grid-area: head;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #eef2f5;
}

.admin-body .public-link-item-head strong {
  min-width: 0;
  color: var(--heading);
  font-size: 14px;
}

.admin-body .public-link-remove {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 12px;
}

.admin-body .public-link-item label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.admin-body .public-link-name-field {
  grid-area: name;
}

.admin-body .public-link-domain-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
  grid-area: domain;
  min-width: 0;
}

.admin-body .public-link-domain-field label {
  min-width: 0;
}

.admin-body .public-link-domain-field textarea {
  min-height: 64px;
  resize: vertical;
}

.admin-body .public-link-add-domain-btn {
  min-height: 40px;
  padding: 0 14px;
  white-space: nowrap;
}

.admin-body .public-link-domain-status {
  grid-area: status;
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #e4eaef;
  border-radius: 8px;
  background: #f8fafc;
}

.admin-body .public-link-domain-status-empty {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.admin-body .public-link-domain-status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--heading);
  font-size: 13px;
}

.admin-body .public-link-domain-status-head span {
  color: var(--muted);
  font-size: 12px;
}

.admin-body .public-link-domain-rows {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.admin-body .public-link-domain-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #edf1f5;
  border-radius: 8px;
  background: #ffffff;
}

.admin-body .public-link-domain-row.is-active {
  border-color: rgba(20, 184, 166, 0.45);
  background: linear-gradient(180deg, #f0fdfa, #ffffff);
}

.admin-body .public-link-domain-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.admin-body .public-link-domain-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.admin-body .public-link-domain-url {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--heading);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.admin-body .public-link-domain-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.admin-body .public-link-domain-reason {
  color: #667085;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.admin-body .public-link-domain-side {
  display: grid;
  align-content: start;
  justify-items: end;
  gap: 8px;
}

.admin-body .public-link-domain-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.admin-body .public-link-domain-actions .table-action {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.admin-body .public-link-color-field {
  grid-area: color;
}

.admin-body .public-link-text-color-field {
  grid-area: textcolor;
}

.admin-body .public-link-stroke-color-field {
  grid-area: strokeColor;
}

.admin-body .public-link-stroke-width-field {
  grid-area: strokeWidth;
}

.admin-body .public-link-size-field {
  grid-area: size;
}

.admin-body .public-link-position-x-field {
  grid-area: posx;
}

.admin-body .public-link-position-y-field {
  grid-area: posy;
}

.admin-body .public-link-detection-field {
  grid-area: detect;
  align-self: end;
  min-height: 40px;
  padding-top: 0;
}

.admin-body .public-link-item input {
  width: 100%;
  min-width: 0;
}

.admin-body .public-link-item input[type='color'] {
  width: 100%;
  min-height: 40px;
  padding: 4px;
  cursor: pointer;
}

.admin-body .access-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 12px;
}

.admin-body .access-stat-card {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
}

.admin-body .access-stat-card span {
  display: block;
  color: #475467;
  font-size: 12px;
}

.admin-body .access-stat-card strong {
  display: block;
  margin-top: 6px;
  color: var(--heading);
  font-size: 20px;
  line-height: 1.2;
}

.admin-body .toolbar-clear-btn {
  white-space: nowrap;
}

.admin-body .display-mode-label {
  color: #475467;
  font-size: 13px;
}

.admin-body .display-mode-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.admin-body .display-mode-option {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "input title"
    "input note";
  gap: 2px 8px;
  align-items: center;
  min-height: 74px;
  padding: 10px;
  border: 1px solid #cfd7df;
  border-radius: 6px;
  background: #ffffff;
}

.admin-body .display-mode-option:has(input:checked) {
  border-color: rgba(15, 118, 110, 0.34);
  background: var(--primary-soft);
}

.admin-body .display-mode-option input {
  grid-area: input;
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.admin-body .display-mode-option strong {
  grid-area: title;
  min-width: 0;
  color: var(--heading);
  font-size: 13px;
  line-height: 1.35;
}

.admin-body .display-mode-option small {
  grid-area: note;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.admin-body .checkbox-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding-top: 23px;
}

.admin-body .checkbox-field input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.admin-body .redirect-delay-field.is-muted span,
.admin-body .redirect-click-field.is-muted span {
  color: #98a2b3;
}

.admin-body .appearance-preview.is-direct-redirect .appearance-preview-empty,
.admin-body .appearance-preview.is-image-redirect .appearance-preview-empty {
  color: var(--muted);
}

.admin-body .appearance-preview.has-background {
  background-position: center;
  background-size: cover;
}

.public-visual.is-clickable {
  cursor: pointer;
}

.public-visual.image-only {
  touch-action: manipulation;
}

.qr-panel.is-redirecting {
  color: var(--muted);
}

@media (max-width: 820px) {
  .admin-body .access-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-body .access-stats-grid > :last-child {
    grid-column: 1 / -1;
  }

  .admin-body .display-mode-options {
    grid-template-columns: 1fr;
  }

  .admin-body .public-link-config-head {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-body .public-link-config-head .ghost-btn {
    width: 100%;
  }

  .admin-body .public-link-config-actions {
    width: 100%;
  }

  .admin-body .public-link-config-actions > button {
    flex: 1 1 140px;
  }

  .admin-body .public-link-item {
    grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "name"
      "domain"
      "status"
      "detect"
      "color"
      "textcolor"
      "strokeColor"
      "strokeWidth"
      "size"
      "posx"
      "posy";
  }

  .admin-body .public-link-domain-row {
    grid-template-columns: 1fr;
  }

  .admin-body .public-link-domain-field {
    grid-template-columns: 1fr;
  }

  .admin-body .public-link-add-domain-btn {
    width: 100%;
  }

  .admin-body .public-link-domain-side {
    justify-items: start;
  }

  .admin-body .public-link-domain-actions {
    justify-content: flex-start;
  }
}
