:root {
  --bg: #f6f2ee;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-solid: #fffaf7;
  --ink: #242126;
  --muted: #827a78;
  --line: rgba(92, 68, 68, 0.12);
  --red: #d70b2f;
  --red-dark: #a70725;
  --red-soft: #ffe7ed;
  --orange: #c96d32;
  --orange-soft: #fff1e9;
  --blue: #447f9c;
  --blue-soft: #e8f4fa;
  --good: #16865f;
  --good-soft: #e8f6ef;
  --shadow: 0 28px 80px rgba(97, 65, 54, 0.12);
  --soft-shadow: 0 16px 46px rgba(97, 65, 54, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(120deg, rgba(215, 11, 47, 0.08), transparent 34%),
    radial-gradient(circle at 82% 12%, rgba(215, 11, 47, 0.14), transparent 28%),
    radial-gradient(circle at 12% 90%, rgba(255, 197, 141, 0.22), transparent 28%),
    var(--bg);
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

button {
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 34px;
  letter-spacing: 0;
}

.is-hidden {
  display: none !important;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(500px, 0.95fr) 420px;
  align-items: center;
  gap: 40px;
  min-height: 100vh;
  padding: 64px 10vw;
  overflow: visible;
}

.login-visual {
  position: relative;
  min-height: 470px;
  border-radius: 34px;
  padding: 34px;
  overflow: visible;
}

.login-visual::before {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: inherit;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.28)),
    linear-gradient(135deg, rgba(215, 11, 47, 0.1), rgba(255, 255, 255, 0.16));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 30px 90px rgba(89, 54, 49, 0.12);
  content: "";
  -webkit-mask-image: linear-gradient(135deg, #000 0%, #000 38%, rgba(0, 0, 0, 0.42) 58%, transparent 82%);
  mask-image: linear-gradient(135deg, #000 0%, #000 38%, rgba(0, 0, 0, 0.42) 58%, transparent 82%);
  pointer-events: none;
}

.login-branding {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 22px;
}

.logo-mark {
  display: block;
  width: 150px;
  height: auto;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 28px rgba(215, 11, 47, 0.12));
}

.login-visual h1 {
  font-size: 42px;
}

.visual-stage {
  position: relative;
  z-index: 1;
  height: 280px;
  margin-top: 24px;
}

.visual-stage::before {
  content: none;
}

.visual-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 30px;
  padding: 30px;
  color: #fff;
  background:
    linear-gradient(115deg, rgba(215, 11, 47, 0.96) 0%, rgba(215, 11, 47, 0.78) 36%, rgba(215, 11, 47, 0.34) 62%, rgba(255, 255, 255, 0.06) 100%),
    linear-gradient(145deg, rgba(38, 28, 34, 0.7), rgba(238, 201, 196, 0.16)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px 32px);
  box-shadow: 0 30px 80px rgba(215, 11, 47, 0.23);
  overflow: hidden;
}

.visual-card::before {
  position: absolute;
  inset: auto -40px -70px auto;
  width: 320px;
  height: 220px;
  border-radius: 42px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.03)),
    linear-gradient(135deg, rgba(255, 216, 221, 0.34), rgba(167, 7, 37, 0.04));
  transform: rotate(-12deg);
  content: "";
}

.visual-copy,
.visual-metrics {
  position: relative;
  z-index: 1;
}

.visual-copy span,
.visual-copy small {
  display: block;
  color: rgba(255, 255, 255, 0.78);
}

.visual-copy span {
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.visual-copy strong {
  display: block;
  max-width: 420px;
  font-size: 40px;
  line-height: 1.06;
}

.visual-copy small {
  margin-top: 16px;
  font-size: 15px;
}

.visual-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.visual-metrics span {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 800;
}

.login-card {
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 18px;
  padding: 38px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.login-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.login-tabs span {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.login-tabs .active {
  color: var(--red);
  border-color: var(--red);
}

.login-field {
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 14px;
  background: #fff;
}

.login-field span {
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
}

.login-field input {
  width: 100%;
  height: 48px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.login-button,
.btn {
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  box-shadow: 0 12px 30px rgba(215, 11, 47, 0.18);
  font-weight: 800;
}

.login-button {
  width: 100%;
  height: 52px;
  margin-top: 6px;
}

.login-hint {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.app-frame {
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
  gap: 18px;
  min-height: 100vh;
  padding: 20px;
}

.sidebar {
  position: sticky;
  top: 20px;
  height: calc(100vh - 40px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 28px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 247, 248, 0.72)),
    radial-gradient(circle at 70% 0%, rgba(215, 11, 47, 0.16), transparent 36%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.brand-symbol {
  display: block;
  width: 74px;
  height: auto;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  font-size: 20px;
}

.brand span {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: grid;
  gap: 9px;
}

.nav-item {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 13px 14px;
  color: #6f6765;
  background: transparent;
  text-align: left;
}

.nav-item.active,
.nav-item:hover {
  color: var(--red);
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.sidebar-art {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  border-radius: 22px;
  padding: 18px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(215, 11, 47, 0.92), rgba(167, 7, 37, 0.82)),
    linear-gradient(45deg, rgba(255, 255, 255, 0.16), transparent);
}

.sidebar-art span,
.sidebar-art strong {
  display: block;
}

.sidebar-art span {
  opacity: 0.76;
  font-size: 12px;
}

.sidebar-art strong {
  font-size: 34px;
}

.shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 18px;
  min-width: 0;
}

.topbar,
.content {
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.event-pill {
  max-width: 380px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--red-dark);
  background: rgba(255, 255, 255, 0.76);
  font-size: 13px;
}

.ghost-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--muted);
  background: #fff;
}

.content {
  min-height: calc(100vh - 150px);
  padding: 20px;
  overflow: hidden;
}

.grid {
  display: grid;
  gap: 18px;
}

.metrics {
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
}

.card {
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 22px;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 249, 247, 0.74));
  box-shadow: var(--soft-shadow);
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.banner-config-card {
  margin-bottom: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 247, 248, 0.72)),
    radial-gradient(circle at 88% 0%, rgba(215, 11, 47, 0.12), transparent 34%);
}

.banner-admin-grid {
  display: grid;
  gap: 14px;
}

.banner-admin-item {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(215, 11, 47, 0.08);
  border-radius: 20px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.68);
}

.banner-admin-item img {
  width: 150px;
  height: 82px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 16px 36px rgba(80, 49, 42, 0.12);
}

.banner-admin-item strong,
.banner-admin-item span {
  display: block;
}

.banner-admin-item span {
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
}

.metric {
  position: relative;
  overflow: hidden;
}

.metric::after {
  position: absolute;
  right: -18px;
  bottom: -28px;
  width: 92px;
  height: 92px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(215, 11, 47, 0.18), rgba(215, 11, 47, 0.02));
  transform: rotate(16deg);
  content: "";
}

.metric span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
}

.metric strong {
  position: relative;
  z-index: 1;
  font-size: 28px;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.74fr) minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}

.hero-panel .metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.image-placeholder {
  min-height: 230px;
  border-radius: 24px;
  padding: 22px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 44%),
    linear-gradient(135deg, #e21a3d, #9f0622);
  box-shadow: 0 24px 60px rgba(215, 11, 47, 0.2);
  overflow: hidden;
}

.image-placeholder strong {
  display: block;
  margin-top: 70px;
  font-size: 30px;
}

.image-placeholder span {
  color: rgba(255, 255, 255, 0.78);
}

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

.toolbar input,
.toolbar select {
  min-width: 240px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 13px;
  background: #fff;
  outline: 0;
}

.table-wrap {
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--soft-shadow);
}

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

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 15px 16px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  background: rgba(255, 248, 247, 0.72);
  font-size: 12px;
  font-weight: 800;
}

tr:last-child td {
  border-bottom: 0;
}

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

.status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--good);
  background: var(--good-soft);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.status.warn {
  color: var(--orange);
  background: var(--orange-soft);
}

.status.danger {
  color: var(--red-dark);
  background: var(--red-soft);
}

.status.info {
  color: var(--blue);
  background: var(--blue-soft);
}

.new-badge {
  display: inline-flex;
  align-items: center;
  margin-right: 8px;
  border-radius: 999px;
  padding: 5px 9px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 10px 22px rgba(215, 11, 47, 0.16);
  font-size: 12px;
  font-weight: 900;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn {
  padding: 9px 13px;
}

.btn.secondary {
  border: 1px solid var(--line);
  color: var(--red-dark);
  background: #fff;
  box-shadow: none;
}

.btn.ghost,
.btn.muted-action {
  border: 1px solid rgba(92, 68, 68, 0.12);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
}

.btn.ghost {
  color: #6f6765;
}

.btn.muted-action {
  color: #8a817d;
}

.btn.ghost:hover,
.btn.muted-action:hover {
  border-color: rgba(215, 11, 47, 0.16);
  color: var(--red-dark);
  background: #fff;
}

.btn.warn {
  background: linear-gradient(135deg, #d88a48, #bd5e25);
}

.import-button {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.import-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
}

.list {
  display: grid;
  gap: 10px;
}

.list-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.82);
}

.drawer {
  width: min(760px, calc(100vw - 32px));
  border: 0;
  border-radius: 24px;
  padding: 0;
  background: var(--panel-solid);
  box-shadow: 0 34px 100px rgba(28, 18, 18, 0.25);
}

.drawer.wide {
  width: min(980px, calc(100vw - 32px));
}

.drawer::backdrop {
  background: rgba(20, 18, 18, 0.36);
}

.drawer-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: #fff;
  font-size: 22px;
}

#drawerBody {
  padding: 30px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px;
  background: #fff;
}

.field span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}

.proof-panel {
  margin-top: 18px;
  border: 1px solid rgba(215, 11, 47, 0.1);
  border-radius: 20px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.7);
}

.proof-panel img {
  display: block;
  max-width: 100%;
  max-height: 520px;
  border-radius: 16px;
  object-fit: contain;
  box-shadow: var(--soft-shadow);
}

.field strong {
  overflow-wrap: anywhere;
}

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

.form-row textarea,
.form-row input,
.form-row select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 13px;
  background: #fff;
  outline: 0;
}

.form-row input[type="file"] {
  padding: 10px;
  color: var(--muted);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 247, 248, 0.8));
}

.inline-field {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  margin-top: 7px;
}

.inline-field input {
  margin-top: 0;
}

.upload-preview {
  display: grid;
  grid-template-columns: 160px 1fr;
  align-items: center;
  gap: 14px;
  margin: 12px 0 16px;
  border: 1px solid rgba(215, 11, 47, 0.1);
  border-radius: 18px;
  padding: 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 247, 248, 0.68));
}

.upload-preview img {
  width: 160px;
  height: 90px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 16px 34px rgba(80, 49, 42, 0.12);
}

.upload-preview span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.review-bar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

@media (max-width: 1100px) {
  .login-shell,
  .app-frame,
  .hero-panel,
  .split {
    grid-template-columns: 1fr;
  }

  .login-visual {
    min-height: auto;
  }

  .visual-stage {
    height: 260px;
    margin-top: 22px;
  }

  .sidebar {
    position: relative;
    top: auto;
    height: auto;
  }

  .sidebar-art {
    display: none;
  }

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

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