:root {
  --rose: #ff667d;
  --rose-soft: #fff0f2;
  --rose-deep: #e94f68;
  --ink: #302b35;
  --muted: #968e9d;
  --line: #eee7eb;
  --cream: #fff9f7;
  --blue: #688aa5;
  --white: #ffffff;
  --sidebar: #2d2934;
  --shadow: 0 18px 55px rgba(78, 50, 62, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  background: #fbf7f8;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 92% 0, rgba(255, 214, 220, 0.6), transparent 28%),
    radial-gradient(circle at 0 86%, rgba(235, 224, 246, 0.55), transparent 30%),
    #fbf7f8;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.ambient {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(30px);
  pointer-events: none;
}

.ambient-one {
  top: -130px;
  right: 9%;
  width: 420px;
  height: 420px;
  background: rgba(255, 223, 226, 0.4);
}

.ambient-two {
  bottom: -180px;
  left: 15%;
  width: 480px;
  height: 480px;
  background: rgba(227, 216, 244, 0.35);
}

.eyebrow {
  color: #a69aa2;
  font-family: Georgia, serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
}

.tag {
  display: inline-flex;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  color: #8b6b74;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.46);
  backdrop-filter: blur(10px);
}

.button {
  display: inline-flex;
  min-height: 42px;
  padding: 0 18px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-weight: 650;
  text-decoration: none;
  transition: 160ms ease;
}

.button.primary {
  color: white;
  background: linear-gradient(135deg, #ff8092, var(--rose));
  box-shadow: 0 12px 25px rgba(255, 102, 125, 0.23);
}

.button.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 15px 28px rgba(255, 102, 125, 0.3);
}

.button.ghost {
  border-color: var(--line);
  color: #655b66;
  background: rgba(255, 255, 255, 0.72);
}

.button.small {
  min-height: 34px;
  padding: 0 13px;
  border-radius: 10px;
  font-size: 12px;
}

.button.danger {
  color: #dc4f63;
  background: #fff0f2;
}

.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.text-button {
  border: 0;
  color: #b8adb6;
  font-size: 12px;
  background: transparent;
}

.login-view {
  display: grid;
  min-height: 100vh;
  padding: 8vh 8vw;
  grid-template-columns: minmax(320px, 1fr) minmax(380px, 520px);
  gap: 8vw;
  align-items: center;
}

.login-brand {
  position: fixed;
  top: 38px;
  left: 48px;
  display: flex;
  align-items: center;
  gap: 13px;
}

.login-brand img {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  box-shadow: 0 8px 20px rgba(87, 59, 69, 0.1);
}

.login-brand span {
  display: block;
  margin-bottom: 3px;
  font-size: 9px;
}

.login-brand h1 {
  margin: 0;
  font-family: "Songti SC", serif;
  font-size: 18px;
  letter-spacing: 1px;
}

.login-copy {
  max-width: 660px;
  padding-left: 5vw;
}

.login-copy h2 {
  margin: 27px 0 22px;
  color: #4d4148;
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -2px;
}

.login-copy > p {
  max-width: 500px;
  color: #8f858f;
  font-size: 16px;
  line-height: 1.9;
}

.login-metrics {
  display: flex;
  margin-top: 35px;
  gap: 10px;
}

.login-metrics span {
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  color: #8b7b82;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.4);
}

.login-panel {
  padding: 38px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.panel-head h3 {
  margin: 10px 0 7px;
  font-family: "Songti SC", serif;
  font-size: 26px;
}

.panel-head p {
  margin: 0;
  color: #a199a1;
  font-size: 13px;
}

.field {
  display: flex;
  margin-top: 20px;
  flex-direction: column;
  gap: 8px;
}

.field > span {
  color: #736970;
  font-size: 12px;
  font-weight: 600;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid #ece4e8;
  border-radius: 12px;
  outline: 0;
  color: #514850;
  background: #fffdfd;
  transition: 160ms ease;
}

.field textarea {
  min-height: 104px;
  resize: vertical;
  line-height: 1.65;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: #ff9cad;
  box-shadow: 0 0 0 4px rgba(255, 102, 125, 0.08);
}

.form-error {
  min-height: 18px;
  margin: 12px 0 0;
  color: #db5266;
  font-size: 12px;
}

.login-button {
  width: 100%;
  margin-top: 7px;
  justify-content: space-between;
}

.login-hint {
  margin: 16px 0 0;
  color: #b0a8ae;
  font-size: 11px;
  text-align: center;
}

.app-view {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  display: flex;
  width: 238px;
  padding: 26px 18px;
  flex-direction: column;
  color: #eee8ed;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 137, 154, 0.14), transparent 35%),
    var(--sidebar);
}

.sidebar-brand {
  display: flex;
  padding: 4px 8px 28px;
  align-items: center;
  gap: 12px;
  color: white;
  text-decoration: none;
}

.sidebar-brand img {
  width: 42px;
  height: 42px;
  border-radius: 13px;
}

.sidebar-brand strong {
  display: block;
  font-family: "Songti SC", serif;
  font-size: 17px;
}

.sidebar-brand span {
  display: block;
  margin-top: 4px;
  color: #9d929c;
  font-size: 10px;
  letter-spacing: 1px;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.nav-item {
  display: flex;
  width: 100%;
  height: 48px;
  padding: 0 15px;
  align-items: center;
  gap: 13px;
  border: 0;
  border-radius: 13px;
  color: #b6abb4;
  font-size: 13px;
  text-align: left;
  background: transparent;
}

.nav-item i {
  width: 20px;
  color: #877b86;
  font-size: 16px;
  font-style: normal;
  text-align: center;
}

.nav-item:hover {
  color: white;
  background: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
  color: white;
  background: linear-gradient(135deg, rgba(255, 111, 133, 0.28), rgba(255, 255, 255, 0.07));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.nav-item.active i {
  color: #ff9daa;
}

.sidebar-foot {
  margin-top: auto;
  padding: 18px 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.status-line {
  display: flex;
  margin-bottom: 13px;
  align-items: center;
  gap: 9px;
  color: #968b95;
  font-size: 11px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7bd4a1;
  box-shadow: 0 0 0 5px rgba(123, 212, 161, 0.08);
}

.main {
  width: calc(100% - 238px);
  min-height: 100vh;
  margin-left: 238px;
}

.topbar {
  display: flex;
  height: 112px;
  padding: 0 42px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(235, 226, 230, 0.8);
  background: rgba(255, 252, 251, 0.72);
  backdrop-filter: blur(16px);
}

.topbar h1 {
  margin: 6px 0 0;
  font-family: "Songti SC", serif;
  font-size: 27px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

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

.admin-chip > span {
  display: flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  font-family: Georgia, serif;
  font-weight: 700;
  background: linear-gradient(135deg, #ff8a9a, #fc6179);
}

.admin-chip strong,
.admin-chip small {
  display: block;
}

.admin-chip strong {
  font-size: 12px;
}

.admin-chip small {
  margin-top: 3px;
  color: #aaa1a8;
  font-size: 10px;
}

.content-area {
  padding: 33px 42px 56px;
}

.loading-card {
  padding: 50px;
  border-radius: 20px;
  color: #a69ca4;
  text-align: center;
  background: rgba(255, 255, 255, 0.8);
}

.hero-banner {
  position: relative;
  display: flex;
  min-height: 186px;
  padding: 32px;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  border-radius: 25px;
  background:
    radial-gradient(circle at 88% 10%, rgba(255, 255, 255, 0.75), transparent 22%),
    linear-gradient(135deg, #ffe7e0, #f4dde8 57%, #e4dff2);
  box-shadow: 0 18px 50px rgba(91, 63, 74, 0.08);
}

.hero-banner h2 {
  margin: 11px 0 9px;
  color: #514249;
  font-family: "Songti SC", serif;
  font-size: 32px;
}

.hero-banner p {
  margin: 0;
  color: #8f7b83;
  font-size: 13px;
}

.hero-ornament {
  position: relative;
  width: 180px;
  height: 120px;
}

.hero-heart {
  position: absolute;
  top: 8px;
  right: 46px;
  color: rgba(255, 255, 255, 0.68);
  font-family: Georgia, serif;
  font-size: 112px;
  transform: rotate(-8deg);
}

.hero-orbit {
  position: absolute;
  right: -30px;
  bottom: -100px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
}

.stat-grid {
  display: grid;
  margin-top: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stat-card,
.panel {
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 36px rgba(82, 57, 68, 0.055);
}

.stat-card {
  padding: 22px;
  border-radius: 18px;
}

.stat-card .stat-label {
  color: #9c929a;
  font-size: 12px;
}

.stat-card .stat-value {
  display: block;
  margin-top: 12px;
  color: #4c414a;
  font-family: Georgia, serif;
  font-size: 32px;
  font-weight: 700;
}

.stat-card .stat-note {
  display: block;
  margin-top: 8px;
  color: #b1a7ad;
  font-size: 10px;
}

.dashboard-grid {
  display: grid;
  margin-top: 18px;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.panel {
  padding: 25px;
  border-radius: 21px;
}

.panel-heading {
  display: flex;
  margin-bottom: 19px;
  align-items: center;
  justify-content: space-between;
}

.panel-heading h3 {
  margin: 0;
  font-family: "Songti SC", serif;
  font-size: 19px;
}

.panel-heading p {
  margin: 6px 0 0;
  color: #aaa1a7;
  font-size: 11px;
}

.user-list,
.log-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.user-row,
.log-row {
  display: flex;
  min-height: 54px;
  padding: 10px 12px;
  align-items: center;
  border-radius: 13px;
  background: #fcf9fa;
}

.user-avatar {
  display: flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  color: #9d6976;
  font-family: Georgia, serif;
  font-size: 16px;
  background: #ffecef;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-info {
  flex: 1;
  min-width: 0;
  padding: 0 12px;
}

.user-info strong,
.user-info small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-info strong {
  font-size: 12px;
}

.user-info small {
  margin-top: 4px;
  color: #aaa0a7;
  font-size: 9px;
}

.status-badge {
  display: inline-flex;
  height: 23px;
  padding: 0 9px;
  align-items: center;
  border-radius: 999px;
  color: #5a9b75;
  font-size: 9px;
  background: #eaf7ef;
}

.status-badge.disabled {
  color: #a87e85;
  background: #f4eeee;
}

.log-row {
  align-items: flex-start;
  gap: 12px;
}

.log-dot {
  width: 7px;
  height: 7px;
  margin-top: 6px;
  border-radius: 50%;
  background: #f4a1ad;
}

.log-copy {
  flex: 1;
}

.log-copy strong {
  display: block;
  font-size: 11px;
}

.log-copy small {
  display: block;
  margin-top: 4px;
  color: #aaa0a6;
  font-size: 9px;
}

.toolbar {
  display: flex;
  margin-bottom: 17px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.toolbar-left,
.toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-input {
  width: 260px;
  height: 39px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: 0;
  color: #5b5259;
  background: #fff;
}

.table-wrap {
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 36px rgba(82, 57, 68, 0.055);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}

.data-table th {
  padding: 14px 17px;
  color: #9d939a;
  font-size: 10px;
  font-weight: 600;
  text-align: left;
  background: #fcf9fa;
}

.data-table td {
  padding: 14px 17px;
  border-top: 1px solid #f2ebee;
  color: #655b62;
  font-size: 11px;
}

.table-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.table-user strong {
  color: #4c4249;
  font-size: 12px;
}

.row-actions {
  display: flex;
  gap: 7px;
}

.tiny-button {
  height: 29px;
  padding: 0 10px;
  border: 1px solid #ede4e8;
  border-radius: 8px;
  color: #776c73;
  font-size: 10px;
  background: #fff;
}

.tiny-button.danger {
  color: #d65c70;
  border-color: #f6dfe3;
  background: #fff5f6;
}

.editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 18px;
  align-items: start;
}

.content-tabs {
  display: flex;
  margin-bottom: 17px;
  gap: 7px;
}

.content-tabs button {
  height: 35px;
  padding: 0 14px;
  border: 1px solid #ede4e8;
  border-radius: 10px;
  color: #8f858c;
  font-size: 11px;
  background: #fff;
}

.content-tabs button.active {
  border-color: #ffd4da;
  color: var(--rose-deep);
  background: var(--rose-soft);
}

.form-section {
  margin-bottom: 17px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 32px rgba(83, 57, 68, 0.045);
}

.form-section h3 {
  margin: 0 0 6px;
  font-family: "Songti SC", serif;
  font-size: 18px;
}

.form-section > p {
  margin: 0 0 18px;
  color: #a49ba1;
  font-size: 11px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.form-grid .field {
  margin-top: 0;
}

.form-grid .field.full {
  grid-column: 1 / -1;
}

.field-help {
  color: #b0a7ac;
  font-size: 9px;
  line-height: 1.5;
}

.color-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.color-row input[type="color"] {
  width: 44px;
  min-width: 44px;
  min-height: 43px;
  padding: 4px;
}

.switch-row {
  display: flex;
  min-height: 46px;
  padding: 0 12px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #ede4e8;
  border-radius: 12px;
  background: #fffdfd;
}

.switch {
  position: relative;
  width: 38px;
  height: 22px;
}

.switch input {
  position: absolute;
  opacity: 0;
}

.switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #ddd5da;
  transition: 160ms ease;
}

.switch span::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 5px rgba(61, 47, 54, 0.18);
  content: "";
  transition: 160ms ease;
}

.switch input:checked + span {
  background: var(--rose);
}

.switch input:checked + span::after {
  transform: translateX(16px);
}

.json-editor {
  width: 100%;
  min-height: 650px;
  padding: 19px;
  border: 1px solid #e9e0e5;
  border-radius: 16px;
  outline: 0;
  color: #514a51;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 11px;
  line-height: 1.7;
  resize: vertical;
  background: #fffdfd;
}

.preview-panel {
  position: sticky;
  top: 20px;
}

.phone-preview {
  position: relative;
  width: 264px;
  min-height: 530px;
  margin: 0 auto;
  padding: 26px 16px 54px;
  overflow: hidden;
  border: 7px solid #332e38;
  border-radius: 34px;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 211, 219, 0.65), transparent 30%),
    #fff9f7;
  box-shadow: 0 20px 45px rgba(53, 42, 49, 0.17);
}

.phone-preview .phone-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8e7d84;
  font-size: 9px;
}

.phone-preview .phone-brand img {
  width: 25px;
  height: 25px;
  border-radius: 8px;
}

.phone-preview h4 {
  margin: 24px 4px 4px;
  color: #4c3e45;
  font-family: "Songti SC", serif;
  font-size: 22px;
}

.phone-preview .preview-subtitle {
  margin: 0 4px;
  color: #a2989e;
  font-size: 9px;
}

.preview-hero {
  position: relative;
  height: 210px;
  margin: 8px -5px 0;
  overflow: hidden;
  border-radius: 22px;
}

.preview-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-days {
  position: absolute;
  right: 19px;
  bottom: 20px;
  color: #514348;
  font-family: Georgia, serif;
  font-size: 37px;
  font-weight: 700;
  text-shadow: 0 3px 10px white;
}

.preview-quote {
  margin: -15px 6px 0;
  padding: 15px;
  border-radius: 14px;
  color: #84787d;
  font-family: "Songti SC", serif;
  font-size: 9px;
  line-height: 1.8;
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 22px rgba(83, 57, 68, 0.07);
}

.preview-section-title {
  margin: 20px 4px 11px;
  font-size: 12px;
  font-weight: 700;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 8px;
}

.preview-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #806f76;
  font-size: 8px;
}

.preview-item span {
  display: flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  background: #fff0f1;
}

.preview-item img {
  width: 22px;
  height: 22px;
}

.preview-tabbar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  height: 46px;
  align-items: center;
  justify-content: space-around;
  color: #aaa0a6;
  font-size: 8px;
  background: rgba(255, 255, 255, 0.96);
}

.preview-tabbar span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.preview-tabbar img {
  width: 18px;
  height: 18px;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
}

.image-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 17px;
  background: white;
  box-shadow: 0 9px 28px rgba(82, 57, 68, 0.05);
}

.image-card img {
  width: 100%;
  height: 145px;
  object-fit: cover;
  background: #f7f1f3;
}

.image-meta {
  padding: 13px;
}

.image-meta strong {
  display: block;
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-meta small {
  display: block;
  margin-top: 5px;
  color: #aca2a8;
  font-size: 9px;
}

.image-actions {
  display: flex;
  margin-top: 11px;
  gap: 6px;
}

.upload-zone {
  display: flex;
  min-height: 180px;
  margin-bottom: 18px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px dashed #e5cfd5;
  border-radius: 20px;
  color: #9d8d94;
  background: rgba(255, 251, 252, 0.78);
  cursor: pointer;
}

.upload-zone:hover {
  border-color: #f2a9b5;
  background: #fff7f8;
}

.upload-zone strong {
  margin-top: 12px;
  color: #6c5c64;
  font-size: 13px;
}

.upload-zone span {
  margin-top: 7px;
  color: #b1a8ad;
  font-size: 10px;
}

.upload-icon {
  display: flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  color: var(--rose);
  font-size: 23px;
  background: #ffedf0;
}

.wechat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.section-note {
  padding: 13px 15px;
  border-radius: 12px;
  color: #8d7d84;
  font-size: 10px;
  line-height: 1.7;
  background: #fff8e9;
}

.callback-box {
  display: flex;
  margin-top: 12px;
  padding: 13px 14px;
  align-items: center;
  gap: 10px;
  border: 1px solid #eee4e8;
  border-radius: 12px;
  color: #73666d;
  font-family: Consolas, monospace;
  font-size: 10px;
  background: #fffdfd;
}

.callback-box span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.toast {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 1000;
  max-width: 420px;
  padding: 13px 18px;
  border-radius: 12px;
  opacity: 0;
  color: white;
  font-size: 12px;
  background: #3e3540;
  box-shadow: 0 12px 35px rgba(45, 35, 43, 0.22);
  transform: translateY(14px);
  transition: 180ms ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.error {
  background: #cc5366;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  padding: 30px;
  align-items: center;
  justify-content: center;
  background: rgba(43, 35, 42, 0.42);
  backdrop-filter: blur(6px);
}

.modal {
  width: min(620px, 100%);
  max-height: 86vh;
  overflow: auto;
  border-radius: 23px;
  background: #fffdfc;
  box-shadow: 0 28px 80px rgba(40, 29, 36, 0.28);
}

.modal-head {
  display: flex;
  padding: 24px 25px 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.modal-head h2 {
  margin: 7px 0 0;
  font-family: "Songti SC", serif;
  font-size: 22px;
}

.icon-button {
  display: flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  color: #91858b;
  font-size: 22px;
  background: #f7f1f3;
}

.modal-body {
  padding: 10px 25px 24px;
}

.modal-footer {
  display: flex;
  padding: 16px 25px 24px;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid #f1eaed;
}

.empty-panel {
  padding: 55px 20px;
  color: #aaa0a6;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 1050px) {
  .sidebar {
    width: 82px;
    padding: 24px 12px;
  }

  .sidebar-brand {
    justify-content: center;
    padding: 3px 0 28px;
  }

  .sidebar-brand div,
  .nav-item span,
  .sidebar-foot .status-line span:last-child,
  .sidebar-foot .text-button {
    display: none;
  }

  .nav-item {
    justify-content: center;
    padding: 0;
  }

  .main {
    width: calc(100% - 82px);
    margin-left: 82px;
  }

  .content-area,
  .topbar {
    padding-right: 24px;
    padding-left: 24px;
  }

  .editor-grid {
    grid-template-columns: 1fr;
  }

  .preview-panel {
    display: none;
  }

  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .login-view {
    display: flex;
    padding: 88px 20px 30px;
    flex-direction: column;
    align-items: stretch;
  }

  .login-brand {
    top: 25px;
    left: 24px;
  }

  .login-copy {
    padding: 0 4px;
  }

  .login-copy h2 {
    font-size: 37px;
  }

  .login-metrics {
    flex-wrap: wrap;
  }

  .login-panel {
    padding: 26px 20px;
  }

  .admin-chip,
  .topbar-actions .button {
    display: none;
  }

  .topbar {
    height: 90px;
  }

  .topbar h1 {
    font-size: 22px;
  }

  .content-area {
    padding-top: 20px;
  }

  .hero-banner {
    padding: 24px;
  }

  .hero-ornament {
    display: none;
  }

  .stat-grid,
  .dashboard-grid,
  .wechat-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .search-input {
    width: 100%;
  }

  .toolbar-left {
    align-items: stretch;
    flex-direction: column;
  }
}
