* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f7fb;
  color: #1f2937;
}
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8fbff, #eef3ff);
  position: relative;
}
.login-card {
  width: 360px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  padding: 28px;
}
.login-title { font-size: 22px; font-weight: 700; margin: 0 0 20px; }
.field { margin-bottom: 14px; }
.field label { display:block; font-size: 13px; margin-bottom: 6px; color: #6b7280; }
.field input {
  width:100%; height:40px; border:1px solid #dbe3f0; border-radius: 8px; padding: 0 12px; outline:none;
}
.btn {
  border: none;
  border-radius: 8px;
  height: 38px;
  padding: 0 16px;
  cursor: pointer;
  font-weight: 600;
}
.btn-primary { background: #2d6bff; color: #fff; }
.btn-light { background: #eef3ff; color: #2d6bff; }
.error {
  background: #fff0f0;
  color: #b42318;
  border: 1px solid #ffd0d0;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 12px;
  font-size: 13px;
}
.login-support-float {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  width: 190px;
  background: #fff;
  border: 1px solid #e6ecf5;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .12);
  padding: 12px;
  text-align: center;
  z-index: 20;
}
.login-support-float img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  border: 1px solid #e6ecf5;
  border-radius: 10px;
  background: #fff;
}
.login-support-text {
  margin-top: 8px;
  line-height: 1.5;
  color: #334155;
  font-size: 14px;
}
.app {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 220px;
  background: #fff;
  border-right: 1px solid #e8edf5;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.logo { font-size: 20px; font-weight: 800; color: #2d6bff; margin-bottom: 24px; }
.menu { flex: 1; }
.menu a {
  display: block;
  text-decoration: none;
  color: #4b5563;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 6px;
}
.menu a.active, .menu a:hover {
  background: #edf3ff;
  color: #2d6bff;
}
.main { flex: 1; padding: 20px 26px; }
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.panel {
  background: #fff;
  border: 1px solid #e9eef6;
  border-radius: 12px;
  padding: 16px;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.toolbar .left, .toolbar .right { display: flex; gap: 8px; align-items: center; }
.toolbar input {
  height: 36px; border:1px solid #dbe3f0; border-radius: 8px; padding: 0 10px; min-width: 260px;
}
table { width: 100%; border-collapse: collapse; }
th, td { border-bottom: 1px solid #eef2f8; padding: 12px 8px; text-align: left; font-size: 13px; }
th { color:#6b7280; font-weight: 600; background: #fafcff; }
.tag {
  display:inline-block; background:#e9f8ee; color:#1a7f37; border-radius:999px; padding:2px 10px; font-size:12px;
}
.modal-mask {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20,27,45,.35);
  align-items: center;
  justify-content: center;
  z-index: 999;
}
.modal {
  width: 560px;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
}
.modal-lg {
  width: 960px;
  max-width: 92vw;
}
.modal h3 { margin-top: 0; }
.target-card-wrap {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  overflow-x: auto;
  padding: 2px 2px 6px;
}
.target-card {
  border: 1px solid #e5eaf3;
  border-radius: 14px;
  background: #fff;
  color: #374151;
  width: 220px;
  height: 92px;
  padding: 8px 10px;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: .2s ease;
  box-shadow: 0 2px 10px rgba(15, 23, 42, .05);
}
.target-card:hover {
  transform: translateY(-1px);
  border-color: #cfd7e6;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .1);
}
.target-card.active {
  border-color: #2d6bff;
  color: #2d6bff;
  background: #f1f6ff;
  box-shadow: 0 10px 22px rgba(45, 107, 255, .22);
}
.target-card-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #2d6bff;
  background: #eaf1ff;
}
.target-card-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.target-card-title {
  font-size: 16px;
  line-height: 1.2;
  white-space: nowrap;
}
.target-card[data-type="web"] .target-card-icon {
  background: #e7f0ff;
  color: #2368ff;
}
.target-card[data-type="wecom"] .target-card-icon {
  background: #e9fbf3;
  color: #099668;
}
.target-card[data-type="wx"] .target-card-icon {
  background: #edf5ff;
  color: #2773ff;
}
.qr-preview {
  margin-top: 10px;
  margin-bottom: 10px;
  display: flex;
  justify-content: flex-start;
}
.modal textarea {
  width:100%;
  min-height: 100px;
  border:1px solid #dbe3f0;
  border-radius: 8px;
  padding: 10px;
  resize: vertical;
}
.modal-footer {
  display:flex;
  justify-content:flex-end;
  gap: 10px;
  margin-top: 12px;
}
.edit-long-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.edit-long-card {
  border: 1px solid #e8edf5;
  border-radius: 10px;
  padding: 10px;
  background: #fafcff;
}
.edit-long-title {
  font-size: 13px;
  color: #334155;
  font-weight: 700;
  margin-bottom: 8px;
}
.edit-long-preview-wrap {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.edit-long-preview-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: none;
}
.edit-upload-wrap {
  margin-top: 12px;
}
.edit-upload-box {
  height: 96px;
  border: 2px dashed #d6deea;
  border-radius: 10px;
  background: #f9fbff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: .2s ease;
  text-decoration: none;
}
.edit-upload-box:hover {
  border-color: #8ab4ff;
  background: #f3f8ff;
}
.edit-upload-icon {
  font-size: 22px;
  color: #94a3b8;
  line-height: 1;
  margin-bottom: 6px;
}
.edit-upload-main {
  font-size: 20px;
  font-weight: 500;
  color: #25324a;
  line-height: 1.2;
}
.edit-upload-sub {
  margin-top: 4px;
  font-size: 16px;
  color: #667085;
}
.edit-upload-name {
  margin-top: 8px;
  font-size: 12px;
  color: #6b7280;
}
.muted { color:#6b7280; font-size:12px; }
.sidebar-support-qr {
  margin-top: auto;
  margin-bottom: 10px;
  padding-top: 10px;
  border-top: 1px dashed #e7edf8;
}
.sidebar-support-title {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 8px;
}
.sidebar-support-qr img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  border: 1px solid #e6ecf5;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 20px rgba(15, 23, 42, .12), 0 2px 6px rgba(15, 23, 42, .08);
}
.sidebar-tutorial-thumb {
  cursor: pointer;
  margin-bottom: 10px;
}
.modal-video {
  width: 460px;
  max-width: 92vw;
  max-height: 92vh;
  overflow: auto;
}
.modal-video video {
  width: 100%;
  aspect-ratio: 9 / 16;
  height: 72vh;
  max-height: 76vh;
  object-fit: contain;
}
