/* 公告设置页 */
.ann-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 16px;
  align-items: start;
}

@media (max-width: 980px) {
  .ann-layout { grid-template-columns: 1fr; }
}

.ann-composer,
.ann-list-panel {
  background: #fff;
  border: 1px solid var(--line, #e6e6ef);
  border-radius: 14px;
  padding: 18px 18px 16px;
}

.ann-composer-head,
.ann-list-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.ann-composer-head h3,
.ann-list-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #272d40;
}

.ann-composer-head p,
.ann-list-head p {
  margin: 4px 0 0;
  font-size: 12px;
  color: #8a91a3;
  line-height: 1.45;
}

.ann-form {
  display: grid;
  gap: 14px;
  max-width: none;
  margin: 0;
}

.ann-form .ann-field {
  display: grid;
  gap: 6px;
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #5c6478;
}

.ann-form .ann-field span {
  letter-spacing: 0.02em;
}

.ann-form .ann-field input[type="text"],
.ann-form .ann-field input[type="number"],
.ann-form .ann-field textarea {
  width: 100%;
  border: 1px solid #e4e7ef;
  border-radius: 10px;
  background: #fbfbfd;
  color: #272d40;
  font: 13px/1.5 "DM Sans", system-ui, sans-serif;
  padding: 10px 12px;
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}

.ann-form .ann-field textarea {
  min-height: 140px;
  resize: vertical;
}

.ann-form .ann-field input:focus,
.ann-form .ann-field textarea:focus {
  border-color: #ffb3c4;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(232, 63, 101, 0.12);
}

.ann-row-2 {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
}

@media (max-width: 560px) {
  .ann-row-2 { grid-template-columns: 1fr; }
}

.ann-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ann-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid #e6e6ef;
  border-radius: 999px;
  background: #f7f8fb;
  color: #4f586f;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

.ann-check input {
  width: 14px;
  height: 14px;
  accent-color: #e83f65;
}

.ann-check:has(input:checked) {
  background: #fff0f4;
  border-color: #ffd0da;
  color: #e83f65;
}

.ann-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.ann-actions .btn {
  height: 36px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 650;
}

.ann-actions .btn-primary,
#annSubmit.btn-primary {
  background: linear-gradient(135deg, #fe2c55, #e83f65);
  color: #fff !important;
  border: 0;
  box-shadow: 0 6px 16px rgba(254, 44, 85, 0.22);
}

.ann-actions .btn-primary:hover,
#annSubmit.btn-primary:hover {
  filter: brightness(1.03);
}

.ann-list {
  display: grid;
  gap: 10px;
}

.ann-empty {
  padding: 28px 12px;
  text-align: center;
  color: #9aa1b2;
  font-size: 13px;
  border: 1px dashed #e4e7ef;
  border-radius: 12px;
  background: #fafafc;
}

.ann-card {
  border: 1px solid #eceef5;
  border-radius: 12px;
  padding: 14px 14px 12px;
  background: linear-gradient(180deg, #fff, #fcfcfe);
  box-shadow: 0 1px 0 rgba(35, 42, 70, 0.02);
}

.ann-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.ann-card-top b {
  font-size: 14px;
  color: #272d40;
  line-height: 1.35;
}

.ann-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.ann-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  background: #f3f5f9;
  color: #6b7388;
}

.ann-badge.on {
  background: #eafff5;
  color: #0f9f6e;
}

.ann-badge.off {
  background: #fff0f3;
  color: #e43b58;
}

.ann-badge.channel {
  background: #fff0f4;
  color: #e83f65;
}

.ann-card-meta {
  margin-top: 8px;
  font-size: 12px;
  color: #949bb0;
}

.ann-card-body {
  margin-top: 10px;
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.55;
  color: #3d4558;
}

.ann-acts {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #f0f2f7;
}

#panelAnnounce > .hint { display: none; }
