* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 1580px;
  font-family:
    -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: #4a4f57;
  background: #f3f5f7;
  font-size: 14px;
}

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

button {
  cursor: pointer;
}

.system-header {
  display: flex;
  height: 44px;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  color: #fff;
  background: #3f95bd;
}

.system-header strong {
  font-size: 18px;
}

.user-box {
  min-width: 96px;
  height: 44px;
  padding-top: 4px;
  background: rgba(255, 255, 255, 0.12);
  text-align: center;
  font-size: 12px;
}

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

.sidebar {
  border-right: 1px solid #d6dce2;
  background: #f7f7f7;
}

.sidebar nav {
  display: grid;
}

.sidebar a,
.menu-group > button {
  display: flex;
  height: 44px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid #e5e7eb;
  padding: 0 14px;
  color: #4d5661;
  background: transparent;
  text-align: left;
  text-decoration: none;
}

.menu-group > button {
  width: 100%;
  color: #2e86c1;
  font-weight: 700;
}

.sidebar .sub {
  height: 39px;
  padding-left: 34px;
  background: #fff;
  color: #606873;
}

.sidebar .sub.active {
  position: relative;
  color: #2a88c8;
  background: #edf6ff;
  font-weight: 700;
}

.sidebar .sub.active::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  border-top: 19px solid transparent;
  border-bottom: 20px solid transparent;
  border-right: 10px solid #2a88c8;
}

.content {
  padding: 12px 18px 30px;
}

.breadcrumb {
  height: 38px;
  color: #367eb3;
  font-weight: 600;
}

.breadcrumb::before {
  content: "⌂";
  margin-right: 8px;
  color: #59636f;
}

.breadcrumb span {
  margin: 0 6px;
  color: #8a929c;
}

.filter-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 6px;
  min-height: 98px;
  padding: 14px 14px;
  border: 1px solid #dfe3e8;
  background: #fff;
}

.filter-panel label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-panel span {
  white-space: nowrap;
  color: #3f4650;
  font-weight: 600;
}

select,
input,
textarea {
  border: 1px solid #d5dae0;
  background: #fff;
  color: #4b515a;
}

select,
input {
  height: 38px;
  padding: 0 10px;
}

textarea {
  min-height: 92px;
  padding: 10px;
  resize: vertical;
}

.filter-panel select {
  min-width: 116px;
}

.filter-panel label:nth-child(2) select {
  min-width: 190px;
}

.filter-panel label:nth-child(3) select,
.filter-panel label:nth-child(4) select,
.filter-panel label:nth-child(5) select {
  min-width: 150px;
}

.search-field input {
  width: 170px;
}

.search-btn,
.create-btn,
.upload-btn,
.link-btn {
  height: 38px;
  border: 0;
  border-radius: 4px;
  padding: 0 16px;
  color: #fff;
}

.search-btn {
  background: #8eadbc;
}

.create-btn {
  background: #8f74c8;
}

.upload-btn {
  background: #df4e86;
}

.link-btn {
  background: transparent;
  color: #3985c6;
  padding: 0 4px;
}

.table-panel {
  margin-top: 14px;
  border: 1px solid #dfe3e8;
  background: #fff;
}

.table-meta {
  display: flex;
  height: 48px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.table-meta strong {
  color: #333a43;
}

.table-meta span {
  color: #606772;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

th {
  height: 40px;
  color: #fff;
  background: linear-gradient(#79b8d8, #4693bb);
  font-weight: 700;
}

td {
  height: 96px;
  border: 1px solid #fff;
  padding: 8px 10px;
  text-align: center;
  vertical-align: middle;
  word-break: break-all;
}

tbody tr:nth-child(odd) {
  background: #e8f5f8;
}

tbody tr:nth-child(even) {
  background: #f8f8f8;
}

th:nth-child(1),
td:nth-child(1) {
  width: 32px;
}

th:nth-child(2),
td:nth-child(2) {
  width: 56px;
}

th:nth-child(3),
td:nth-child(3) {
  width: 150px;
}

th:nth-child(4),
td:nth-child(4) {
  width: 138px;
}

th:nth-child(5),
td:nth-child(5) {
  width: 82px;
}

th:nth-child(6),
td:nth-child(6) {
  width: 210px;
}

th:nth-child(7),
td:nth-child(7) {
  width: 160px;
}

th:nth-child(8),
td:nth-child(8) {
  width: 112px;
}

th:nth-child(9),
td:nth-child(9) {
  width: 90px;
}

th:nth-child(10),
td:nth-child(10) {
  width: 108px;
}

th:nth-child(11),
td:nth-child(11) {
  width: 76px;
}

th:nth-child(12),
td:nth-child(12) {
  width: 72px;
}

th:nth-child(13),
td:nth-child(13) {
  width: 142px;
}

th:nth-child(14),
td:nth-child(14) {
  width: 122px;
}

.banner-thumb {
  display: block;
  width: 184px;
  height: 92px;
  margin: 0 auto;
  object-fit: cover;
  background: #e9ecf1;
}

.text-preview {
  width: 184px;
  min-height: 72px;
  margin: 0 auto;
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--preview-bg, #fff7ed);
  text-align: left;
  display: grid;
  grid-template-columns: 1fr 42px;
  align-items: end;
  gap: 6px;
}

.text-preview strong,
.text-preview-copy > span,
.text-preview em {
  display: block;
}

.text-preview-copy {
  min-width: 0;
}

.material-cell {
  padding: 6px 8px;
}

.name-cell {
  padding: 8px 12px;
  text-align: left;
}

.name-cell span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 20px;
  word-break: break-word;
}

.subject-cell {
  color: #3d4652;
  line-height: 20px;
  word-break: break-word;
}

.sort-input {
  width: 58px;
  height: 30px;
  border-color: #cbd5df;
  border-radius: 3px;
  padding: 0 6px;
  text-align: center;
}

.sort-input:focus {
  border-color: #2a88c8;
  outline: none;
  box-shadow: 0 0 0 2px rgba(42, 136, 200, 0.12);
}

.text-preview strong {
  color: var(--preview-title, #9c4e17);
  font-size: 14px;
}

.text-preview-copy > span {
  margin-top: 4px;
  color: var(--preview-desc, #8b6a55);
  font-size: 10px;
}

.text-preview em {
  display: inline-block;
  max-width: 62px;
  margin-top: 8px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: var(--preview-button, #e46a1f);
  font-size: 12px;
  font-style: normal;
  line-height: 16px;
  text-align: center;
  white-space: nowrap;
}

.text-preview img {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
  transform: translate(3px, 3px);
}

.text-preview em i,
.style-preview b i {
  font-style: normal;
}

.table-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  width: 96px;
  margin: 0 auto;
}

.table-actions button {
  height: 36px;
  border: 0;
  color: #fff;
}

.table-actions .red {
  background: #d75b4c;
}

.table-actions .blue {
  background: #66aee0;
}

.table-actions .orange {
  grid-column: 1 / -1;
  background: #ffb143;
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 10;
}

.drawer.hidden {
  display: none;
}

.drawer-mask {
  display: none;
}

.drawer-panel {
  position: absolute;
  top: 44px;
  left: 198px;
  right: 0;
  width: calc(100vw - 198px);
  min-width: 1382px;
  height: calc(100vh - 44px);
  overflow: auto;
  background: #fff;
  box-shadow: none;
}

.drawer-head {
  display: flex;
  height: 50px;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid #e1e4e8;
  background: #fafafa;
}

.drawer-head strong {
  color: #333a43;
  font-size: 16px;
}

.drawer-head button {
  border: 0;
  background: transparent;
  color: #606772;
  font-size: 28px;
  line-height: 1;
}

.ad-form {
  width: min(1180px, calc(100vw - 260px));
  padding: 30px 36px 52px 72px;
}

.form-row {
  display: grid;
  grid-template-columns: 126px 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.form-row > span {
  color: #2e8bd3;
  font-weight: 600;
  text-align: right;
}

.form-row.required > span::after {
  content: "*";
}

.radio-group,
.subject-line {
  display: flex;
  align-items: center;
  gap: 24px;
}

.radio-group label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.radio-group input {
  width: 16px;
  height: 16px;
  accent-color: #0c86e8;
}

.subject-line select {
  width: 118px;
}

.placement-radio-group {
  gap: 34px;
  min-height: 38px;
}

.placement-radio-group label {
  min-width: 216px;
}

.subject-form-row {
  align-items: start;
}

.subject-line {
  gap: 10px;
  flex-wrap: wrap;
  max-width: 680px;
}

.mini-btn {
  border: 0;
  background: transparent;
  color: #333a43;
}

.divider {
  width: 540px;
  height: 1px;
  margin: 30px 0 24px 126px;
  background: #222;
}

.display-config-block {
  width: 760px;
  margin: 8px 0 22px 0;
  padding: 18px 18px 2px 0;
  border: 1px solid #dcecf8;
  border-left: 4px solid #4ba0d2;
  background: #f8fcff;
}

.display-config-block .divider {
  width: 520px;
  margin: 18px 0 22px 126px;
  background: #d4e3ee;
}

.display-type-row {
  margin-bottom: 0;
}

.display-radio-group {
  height: 38px;
  align-items: center;
}

.display-radio-group label {
  min-width: 94px;
}

.jump-config-block {
  width: 760px;
  margin: 4px 0 22px 0;
}

.jump-type-group {
  min-height: 38px;
}

.jump-type-group label {
  min-width: 132px;
}

.field-with-help {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-with-help em {
  color: #8a6a33;
  font-size: 12px;
  font-style: normal;
  line-height: 18px;
}

.router-row {
  align-items: start;
}

.router-help textarea {
  width: 520px;
  min-height: 82px;
  resize: vertical;
  border: 1px solid #d4d9df;
  padding: 10px;
  color: #333a43;
  font-family: inherit;
  font-size: 14px;
  line-height: 20px;
}

.router-help em {
  max-width: 860px;
  color: #f00;
  font-size: 13px;
  line-height: 20px;
}

.banner-fields {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 16px 28px;
  align-items: center;
}

.multi-image-fields,
.single-image-fields {
  grid-template-columns: 1fr;
  gap: 12px;
}

.image-variant-row {
  display: grid;
  grid-template-columns: 170px 70px minmax(360px, 1fr);
  align-items: center;
  gap: 16px;
}

.image-variant-row > strong {
  color: #3f4650;
  font-size: 14px;
  font-weight: 600;
  text-align: right;
}

.image-upload {
  position: relative;
  display: block;
  width: 138px;
  height: 69px;
  background: #eff0f2;
}

.image-upload-single {
  height: 43px;
}

.image-upload-double,
.image-upload-scroll {
  height: 85px;
}

.image-upload img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-file-input {
  display: none;
}

.upload-btn {
  width: 58px;
  height: 32px;
  border: 0;
  border-radius: 3px;
  background: #1686bf;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}

.size-tip {
  margin: 0;
  color: #4b515a;
}

.hidden {
  display: none;
}

.text-card-fields {
  margin-top: 0;
}

.notice {
  width: 100%;
  min-height: 88px;
  margin: -4px 0 22px 0;
  padding: 14px 18px;
  border: 1px solid #f2e6b8;
  background: #fff8dc;
  color: #7f6232;
  line-height: 1.75;
}

.two-col {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
}

.two-col .form-row {
  grid-template-columns: 92px 1fr;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 520px;
}

.subject-line select {
  width: 118px;
}

.subject-line .mini-btn {
  flex: 0 0 auto;
}

.form-row .radio-group input {
  width: 16px;
  height: 16px;
  padding: 0;
  flex: 0 0 16px;
}

.display-type-row .radio-group input {
  width: 16px;
  height: 16px;
}

.input-with-tip {
  display: flex;
  align-items: center;
  gap: 12px;
}

.input-with-tip input {
  width: 260px;
}

.input-with-tip em {
  color: #939aa4;
  font-size: 12px;
  font-style: normal;
}

.style-row {
  align-items: start;
}

.style-options {
  display: grid;
  grid-template-columns: repeat(2, 260px);
  gap: 10px;
}

.style-option {
  position: relative;
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  align-items: start;
  min-height: 102px;
  border: 1px solid #dfe6ef;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  cursor: pointer;
}

.style-option:has(input:checked) {
  border-color: #2e8bd3;
  box-shadow: 0 0 0 2px rgba(46, 139, 211, 0.12);
}

.style-option input {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  padding: 0;
  accent-color: #0c86e8;
}

.style-name {
  color: #5e6670;
  font-size: 12px;
  font-weight: 700;
}

.style-preview {
  grid-column: 2;
  display: grid;
  grid-template-columns: 1fr 62px;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  padding: 9px 11px;
  background: var(--style-bg);
}

.style-copy {
  min-width: 0;
}

.style-preview strong,
.style-preview em,
.style-preview b {
  display: block;
  font-style: normal;
}

.style-preview strong {
  color: var(--style-title);
  font-size: 14px;
  line-height: 19px;
}

.style-preview em {
  margin-top: 3px;
  color: var(--style-desc);
  font-size: 10px;
  line-height: 15px;
}

.style-preview b {
  display: inline-block;
  max-width: 62px;
  margin-top: 6px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: var(--style-button);
  font-size: 12px;
  line-height: 17px;
  text-align: center;
  white-space: nowrap;
}

.style-preview img {
  display: block;
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.form-row input[type="color"] {
  width: 90px;
  padding: 4px;
}

.two-col input {
  width: 64px;
}

.two-col .radio-group {
  gap: 10px;
}

.form-actions {
  display: flex;
  gap: 88px;
  margin: 30px 0 0 126px;
}

.publish-btn,
.cancel-btn {
  width: 162px;
  height: 46px;
  border-radius: 10px;
  font-size: 24px;
  font-weight: 700;
}

.publish-btn,
.cancel-btn {
  border: 1px solid #e6edf5;
  background: #fff;
  color: #4b9bd7;
}

.target-config {
  width: min(1080px, 100%);
  margin: 34px 0 0;
  padding: 0 0 6px;
  color: #333a43;
}

.target-config h3 {
  margin: 0 0 30px;
  color: #333a43;
  font-size: 28px;
  line-height: 1.2;
}

.target-row {
  display: grid;
  grid-template-columns: 126px 1fr;
  gap: 12px;
  align-items: start;
  margin-bottom: 30px;
}

.target-label {
  padding-top: 3px;
  color: #333a43;
  font-size: 20px;
  line-height: 30px;
  text-align: right;
  white-space: nowrap;
}

.target-label.required::after {
  content: "*:";
}

.target-label:not(.required)::after {
  content: ":";
}

.target-label.red-required::before {
  content: "*";
  color: #f04438;
}

.target-label.red-required::after {
  content: ":";
}

.target-options {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 30px;
  min-height: 36px;
  align-items: center;
}

.target-options label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #333a43;
  font-size: 20px;
  line-height: 30px;
  white-space: nowrap;
}

.target-options input,
.target-row input[type="radio"],
.target-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  padding: 0;
  accent-color: #0b7de3;
}

.lifecycle-options {
  gap: 22px;
}

.tag-options {
  display: grid;
  grid-template-columns: 160px 150px 150px 120px 120px;
  gap: 18px 24px;
  max-width: 820px;
}

.target-tag-row {
  margin-bottom: 38px;
}

.compact-target-row {
  align-items: center;
  margin-bottom: 24px;
}

.compact-target-row .target-label {
  padding-top: 0;
}

.target-row select {
  width: 140px;
  height: 42px;
  color: #7c828b;
  font-size: 18px;
}

.amount-range {
  display: flex;
  align-items: center;
  gap: 14px;
}

.amount-range input {
  width: 180px;
  height: 42px;
  font-size: 18px;
}

.amount-range input::placeholder {
  color: #b9bec5;
}

.amount-range span,
.amount-range em {
  color: #7c828b;
  font-size: 18px;
  font-style: normal;
}
