.banner-editor { width: 100%; color: var(--ink); }
.banner-editor h1 { margin-bottom: 28px; font-size: clamp(26px, 2.5vw, 36px); font-weight: 700; line-height: 1.25; letter-spacing: -.03em; }
.bn-layout { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(280px, .85fr); gap: 24px; align-items: start; }
.bn-form, .bn-preview { min-width: 0; border: 1px solid var(--divider); border-radius: 12px; }
.bn-form { padding: 24px; background: #fff; }
.bn-form fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
.bn-form legend, .bn-preview h2 { padding: 0; margin: 0 0 20px; font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.bn-field, .bn-label { font-size: 14px; font-weight: 600; }
.bn-field { display: grid; gap: 8px; margin-bottom: 18px; }
.bn-field input, .bn-field textarea {
  width: 100%; min-width: 0; padding: 11px 14px; color: var(--ink); background: #fff;
  border: 1px solid var(--border); border-radius: 8px; font-size: 16px; font-weight: 400; line-height: 1.5;
}
.bn-field textarea { resize: vertical; min-height: 80px; }
.bn-field input:focus-visible, .bn-field textarea:focus-visible { outline: 2px solid #7cc497; outline-offset: 1px; }
.bn-photo-field { display: grid; justify-items: start; gap: 10px; }
.bn-photo-field small, .bn-text:disabled { color: var(--muted); }
.bn-photo-field small { font-size: 13px; }
.bn-actions, .bn-save { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.bn-text { min-height: 40px; padding: 2px 0; border: 0; background: none; font-size: 14px; font-weight: 600; }
.bn-text:not(:disabled):hover { text-decoration: underline; text-underline-offset: 3px; }
.bn-save { margin-top: 24px; border-top: 1px solid var(--divider); padding-top: 20px; }
.bn-feedback { margin: 0 0 14px; font-size: 14px; color: #18682c; }
.bn-feedback:empty { display: none; }
.bn-error, .bn-image-error { color: #ad292d; }
.banner-editor [data-reload]:not([hidden]) { margin-bottom: 14px; }
.bn-preview { padding: 24px; background: #f7f8fa; }
.bn-screen {
  container-type: inline-size; width: 100%; max-width: 390px; margin: 0 auto;
  overflow: hidden; border-radius: 14px; background: #f2f2f6;
  box-shadow: 0 0 0 1px #dddfe5; color: #191b20; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.bn-scene { aspect-ratio: 750/560; position: relative; overflow: hidden; }
.bn-scene img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bn-fade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(242,242,246,0) 78%, rgba(242,242,246,.12) 85%, rgba(242,242,246,.48) 92%, rgba(242,242,246,.88) 97%, #f2f2f6 100%),
    linear-gradient(to right, rgba(63,39,26,.28), rgba(65,40,26,.12) 55%, rgba(65,40,26,0));
}
.bn-scene img[src="./banner-default.jpg"] + .bn-fade {
  background: linear-gradient(to bottom, rgba(242,242,246,0) 95%, #f2f2f6 100%);
}
.bn-intro, .bn-scene [data-title] { position: absolute; left: 5.8667%; right: 4.2667%; color: #fff; text-shadow: 0 .26cqw 1.2cqw #70452a50; }
.bn-intro { top: 23.5714%; }
.bn-intro strong, .bn-intro span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bn-intro strong { font-size: 7.2cqw; font-weight: 700; line-height: 1.22; }
.bn-intro span { margin-top: 1.0667cqw; font-size: 4.5333cqw; font-weight: 650; line-height: 1.35; }
.bn-scene [data-title] {
  bottom: 13.3333cqw; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden; overflow-wrap: anywhere; font-size: 3.4667cqw; line-height: 1.5; margin: 0;
}
.bn-bulletin {
  position: relative; display: flex; align-items: center; gap: 2.4cqw; min-height: 16cqw;
  margin: -10.6667cqw 2.4cqw 2.4cqw; padding: 2cqw 3cqw; border-radius: 2.13cqw; background: #fff;
}
.bn-bulletin span { padding-right: 1.8cqw; border-right: 1px solid #ddd; font-style: italic; font-weight: 800; font-size: 4.27cqw; line-height: 1; }
.bn-bulletin b { color: #ff8500; }
.bn-notice-placeholder { display: grid; flex: 1; gap: 1.2cqw; }
.bn-notice-placeholder i { width: 61%; height: 1.9cqw; border-radius: 1cqw; background: #d1d4da; }
.bn-notice-placeholder i:last-child { width: 84%; height: 1.45cqw; background: #e4e6eb; }
.bn-bulletin em { margin-left: auto; font-size: 5cqw; font-style: normal; color: #9598a0; }
.bn-image-error { margin-top: 12px; font-size: 14px; }
@media (max-width: 1120px) { .bn-layout { gap: 16px; } .bn-form, .bn-preview { padding: 18px; } }
@media (max-width: 920px) { .bn-layout { grid-template-columns: minmax(0, 1fr); } }
