/* 站内更新公告弹窗 —— 独立样式，不依赖工作台主题变量，避免主题切换时串色。 */
body.sn-lock { overflow: hidden; }

.sn-overlay {
  position: fixed;
  inset: 0;
  z-index: 99990;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(14, 11, 8, 0.62);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.2s ease;
  overflow-y: auto;
}
.sn-overlay.is-open { opacity: 1; }

.sn-card {
  width: min(580px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: #fffdf9;
  border: 1px solid rgba(60, 46, 26, 0.10);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  padding: 30px 30px 22px;
  transform: translateY(10px) scale(0.985);
  transition: transform 0.22s ease;
  color: #241e16;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}
.sn-overlay.is-open .sn-card { transform: translateY(0) scale(1); }

.sn-head { display: block; }
.sn-kicker {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #a3792f;
  font-weight: 600;
}
.sn-title {
  margin: 8px 0 0;
  font-size: 21px;
  line-height: 1.45;
  font-weight: 700;
  color: #1e1811;
  letter-spacing: 0.01em;
}
.sn-intro {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.75;
  color: #6b5f50;
}

.sn-list { margin-top: 18px; display: grid; gap: 14px; }
.sn-item { padding-left: 12px; border-left: 2px solid #e8dcc6; }
.sn-item-title {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: #2b2319;
  line-height: 1.6;
}
.sn-item-text {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.8;
  color: #5c5347;
}

.sn-footer {
  margin: 18px 0 0;
  padding: 11px 13px;
  border-radius: 10px;
  background: #f7f1e6;
  font-size: 12.5px;
  line-height: 1.7;
  color: #6d5b42;
}

.sn-actions {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.sn-once { font-size: 11.5px; color: #a4977f; }
.sn-button {
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 11px 26px;
  border-radius: 999px;
  background: #221d16;
  color: #fffdf8;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.15s ease, background 0.15s ease;
}
.sn-button:hover { background: #3a3229; }
.sn-button:active { transform: scale(0.98); }
.sn-button:disabled { opacity: 0.6; cursor: default; }
.sn-button:focus-visible { outline: 2px solid #a3792f; outline-offset: 2px; }

/* 工作台深色主题下同步反色，避免突然一块白板 */
body[data-book-theme="dark"] .sn-card {
  background: #1d1b18;
  border-color: rgba(255, 255, 255, 0.10);
  color: #efe8dc;
}
body[data-book-theme="dark"] .sn-title { color: #f5efe4; }
body[data-book-theme="dark"] .sn-intro { color: #b3a894; }
body[data-book-theme="dark"] .sn-item { border-left-color: rgba(255, 255, 255, 0.14); }
body[data-book-theme="dark"] .sn-item-title { color: #efe7d9; }
body[data-book-theme="dark"] .sn-item-text { color: #b8ad9b; }
body[data-book-theme="dark"] .sn-footer { background: rgba(255, 255, 255, 0.06); color: #c3b8a4; }
body[data-book-theme="dark"] .sn-once { color: #8d8474; }
body[data-book-theme="dark"] .sn-button { background: #f0e6d3; color: #1d1b18; }
body[data-book-theme="dark"] .sn-button:hover { background: #fff7e8; }

@media (max-width: 560px) {
  .sn-overlay { padding: 14px; }
  .sn-card { padding: 22px 18px 18px; border-radius: 16px; max-height: calc(100vh - 28px); }
  .sn-title { font-size: 18px; }
  .sn-item-text { font-size: 12.5px; }
  .sn-actions { flex-direction: column-reverse; align-items: stretch; gap: 8px; }
  .sn-once { text-align: center; }
  .sn-button { width: 100%; }
}
