.shop-notice-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  box-sizing: border-box;
  width: calc(100% - 36px);
  max-width: 500px;
  max-height: calc(100dvh - 36px);
  padding: 0;
  border: 1px solid #efd5e0;
  border-radius: 24px;
  background: #fffcfd;
  color: #382b31;
  box-shadow: 0 28px 80px rgba(152, 36, 79, .22);
  font-family: "Nunito", "Microsoft YaHei", sans-serif;
}
.shop-notice-dialog[open] { display: flex; flex-direction: column; }
.shop-notice-dialog::backdrop { background: rgba(53, 35, 49, .45); backdrop-filter: blur(4px); }
.shop-notice-top {
  flex-shrink: 0;
  padding: 22px 24px;
  border-bottom: 1px solid #f0dde6;
  background: linear-gradient(120deg, #fff1f6, #fffaf4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.shop-notice-brand { color: #98244f; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.shop-notice-progress { padding: 4px 10px; border-radius: 20px; background: #fff; border: 1px solid #efd5e0; color: #98244f; font-size: 12px; white-space: nowrap; }
.shop-notice-date { font-size: 13px; color: #927681; }
.shop-notice-body { padding: 26px 24px; overflow: auto; min-height: 0; }
.shop-notice-body h2 { margin: 10px 0 18px; color: #732442; font-size: 25px; font-weight: 800; line-height: 1.4; overflow-wrap: anywhere; }
.shop-notice-content { white-space: pre-wrap; overflow-wrap: anywhere; color: #66565e; font-size: 16px; line-height: 1.8; margin: 0 0 22px; }
.shop-notice-note { background: #fff1f6; border: 1px solid #f3dce6; border-radius: 12px; padding: 14px 16px; font-size: 14px; line-height: 1.6; color: #966078; }
.shop-notice-footer { flex-shrink: 0; padding: 18px 24px 24px; border-top: 1px solid #f0dde6; background: #fffafc; }
.shop-notice-confirm { display: block; width: 100%; min-height: 46px; border: 0; border-radius: 12px; background: linear-gradient(135deg, #c84f7f, #a82e5c); color: #fff; box-shadow: 0 5px 14px rgba(168, 46, 92, .15); font: 800 16px "Nunito", "Microsoft YaHei", sans-serif; cursor: pointer; padding: 12px; transition: filter .15s ease; }
.shop-notice-confirm:hover { filter: brightness(1.06); }
.shop-notice-confirm:focus-visible { outline: 3px solid #d889aa; outline-offset: 3px; }
.shop-notice-confirm:disabled { opacity: .6; cursor: wait; }
.shop-notice-actions { display: flex; gap: 10px; }
.shop-notice-actions .shop-notice-confirm { flex: 1; }
.shop-notice-goto { flex: 1; min-height: 46px; border: 1.5px solid #c84f7f; border-radius: 12px; background: #fff; color: #a82e5c; font: 800 16px "Nunito", "Microsoft YaHei", sans-serif; cursor: pointer; padding: 12px; transition: background .15s ease; }
.shop-notice-goto:hover { background: #fff0f6; }
.shop-notice-goto:focus-visible { outline: 3px solid #d889aa; outline-offset: 3px; }
.shop-notice-goto:disabled { opacity: .6; cursor: wait; }
.shop-notice-goto[hidden] { display: none; }
.shop-notice-dots { display: flex; gap: 5px; margin-bottom: 16px; flex-wrap: wrap; }
.shop-notice-dots i { height: 5px; width: 18px; border-radius: 4px; background: #ecdde4; }
.shop-notice-dots i.current { background: #c84f7f; }
.shop-notice-dialog.notification-editor { max-width: 560px; border-color: var(--line); border-radius: var(--admin-radius); background: var(--admin-surface); color: var(--ink); box-shadow: var(--shadow); }
.notification-editor #notificationForm { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.notification-editor .shop-notice-top { background: var(--admin-surface-soft); }
.notification-editor .shop-notice-footer { background: var(--admin-surface-soft); border-color: var(--line); }
.notification-editor .notification-close { color: var(--cherry); }
.notification-editor form { display: flex; flex-direction: column; min-height: 0; }
.notification-editor .shop-notice-top h2 { color: #98244f; }
.notification-editor .notification-close { border-radius: 50%; color: #a56880; }
.notification-editor .notification-close:hover { background: #ffe5ef; }
.notification-editor .shop-notice-body label { color: #70535f; font-weight: 700; margin-bottom: 8px; }
.notification-editor .shop-notice-body input[type=text], .notification-editor .shop-notice-body textarea { border: 1.5px solid var(--line); border-radius: 14px; background: var(--admin-surface); padding: 12px 14px; color: var(--ink); }
.notification-editor .shop-notice-body input:focus-visible, .notification-editor .shop-notice-body textarea:focus-visible { outline: none; border-color: var(--rose-600); box-shadow: 0 0 0 4px var(--admin-focus); }
.notification-editor .notification-toggle { margin-top: 20px; padding: 12px 14px; background: #fff1f6; border-radius: 12px; }
.notification-editor .notification-editor-buttons .table-action-button { border-radius: 12px; min-height: 46px; background: #fff; color: #986279; }
.shop-notice-rich { white-space: normal; }
.shop-notice-rich p { margin: .7em 0; }
.shop-notice-rich h1, .shop-notice-rich h2, .shop-notice-rich h3 { margin: 1em 0 .5em; line-height: 1.4; }
.shop-notice-rich ul, .shop-notice-rich ol { padding-left: 1.5em; margin: .7em 0; }
.shop-notice-rich blockquote { border-left: 3px solid #cd7c9b; padding: 8px 14px; margin: 1em 0; background: #fff1f6; }
.shop-notice-rich img { max-width: 100%; height: auto; border-radius: 12px; }
.shop-notice-rich a { color: #98244f; text-decoration: underline; }
.shop-notice-rich table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 1em 0; }
.shop-notice-rich th, .shop-notice-rich td { border: 1px solid #ead5df; padding: 8px 12px; }
.shop-notice-rich pre { overflow-x: auto; background: #fff1f6; padding: 12px; border-radius: 12px; }
.shop-notice-rich hr { border: 0; border-top: 1px solid #ead5df; margin: 18px 0; }
@media (min-width: 600px) {
  .shop-notice-top { padding: 24px 30px; }
  .shop-notice-body { padding: 28px 30px; }
  .shop-notice-footer { padding: 20px 30px 28px; }
}
.notification-range-trigger { width:100%; min-height:48px; padding:14px 16px; border:1px solid var(--line); border-radius:14px; background:white; color:var(--cherry); text-align:left; overflow-wrap:anywhere; }
.notification-range-trigger[aria-expanded=true] { border-color:var(--rose-400); background:var(--rose-50); }
.notification-editor .shop-notice-body { padding:20px 12px; }
.notification-range-panel { margin:12px -6px; padding:12px 6px; border:1px solid var(--line); border-radius:18px; background:white; box-shadow:0 8px 24px rgba(152,36,79,.06); }
.notification-range-panel[hidden] { display:none; }
.notification-range-heading { display:flex; flex-direction:column; gap:4px; padding:0 8px 14px; color:var(--ink); }
.notification-range-heading span { color:var(--muted); font-size:12px; overflow-wrap:anywhere; }
.notification-range-tabs { display:grid; grid-template-columns:minmax(0,1fr) 14px minmax(0,1fr); align-items:center; gap:6px; padding:0 4px; }
.notification-range-panel button { min-height:44px; border:1px solid var(--line); border-radius:10px; background:white; color:var(--ink); padding:8px; }
.notification-range-tabs button { display:flex; flex-direction:column; gap:6px; text-align:left; min-height:76px; min-width:0; background:var(--rose-50); }
.range-endpoint-label { color:var(--muted); font-size:12px; }
.notification-range-tabs strong { font-size:14px; line-height:1.5; font-weight:700; overflow-wrap:anywhere; }
.range-arrow { color:var(--muted); text-align:center; }
.notification-range-tabs button.selected { border-color:var(--rose-400); background:var(--rose-100); color:var(--cherry); box-shadow:inset 0 0 0 1px var(--rose-400); }
.notification-calendar-nav { display:flex; align-items:center; justify-content:space-between; margin:16px 4px 10px; }
.notification-calendar-nav strong { font-size:16px; }
.notification-calendar-nav button { min-width:44px; font-size:24px; border-color:transparent; background:var(--rose-50); }
.notification-calendar-week,.notification-calendar-days { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); text-align:center; }
.notification-calendar-week { font-size:12px; color:var(--muted); padding:4px 0 10px; }
.notification-calendar-days { row-gap:4px; }
.notification-calendar-days button { position:relative; isolation:isolate; border:0; border-radius:0; font-size:15px; padding:0; background:transparent; }
.notification-calendar-days button.in-range { background:var(--rose-100); color:var(--cherry); }
.notification-calendar-days button.selected { color:white; font-weight:800; }
.notification-calendar-days button.range-start { background:linear-gradient(to right,transparent 50%,var(--rose-100) 50%); }
.notification-calendar-days button.range-end { background:linear-gradient(to left,transparent 50%,var(--rose-100) 50%); }
.notification-calendar-days button.range-start.range-end { background:transparent; }
.notification-calendar-days button.selected::before { content:''; position:absolute; inset:2px; max-width:40px; margin:auto; border-radius:12px; background:var(--cherry); z-index:-1; }
.notification-calendar-days button.today:not(.selected)::after { content:''; position:absolute; bottom:5px; left:calc(50% - 2px); width:4px; height:4px; border-radius:50%; background:var(--rose-600); }
.notification-calendar-days button:hover:not(.selected) { background:var(--rose-50); color:var(--cherry); border-radius:10px; }
.notification-range-panel button:focus-visible,.notification-range-trigger:focus-visible { outline:3px solid var(--rose-400); outline-offset:1px; }
.notification-range-panel input[type=time] { width:100%; min-height:46px; padding:10px 12px; border:1px solid var(--line); border-radius:12px; font-size:16px; background:var(--rose-50); color:var(--ink); }
.notification-range-panel #rangeSummary { margin:12px 4px; font-size:12px; line-height:1.7; overflow-wrap:anywhere; }
.notification-range-tools { display:flex; justify-content:space-between; border-top:1px solid var(--line); padding-top:6px; }
.notification-range-tools button { border:0; background:transparent; color:var(--muted); font-size:13px; }
.notification-range-tools button:hover { color:var(--cherry); }
.notification-range-actions { display:flex; gap:10px; padding:8px 4px 0; }
.notification-range-actions button { flex:1; font-size:14px; font-weight:700; }
.notification-range-actions #rangeApply { flex:1.5; background:var(--cherry); border-color:var(--cherry); color:white; }
@media(min-width:600px) { .notification-editor .shop-notice-body { padding:28px 30px; } .notification-range-panel { margin:12px 0; padding:20px; } .notification-range-heading { flex-direction:row; justify-content:space-between; align-items:center; } }
@media (prefers-reduced-motion: reduce) { .shop-notice-confirm { transition: none; } }

/* ===== 通知中心页 /notifications ===== */
.ntf-page { background:#fff9f6; flex:1; }
.ntf-container { max-width:860px;margin:0 auto;padding:40px 24px 72px; }
.ntf-hero { display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:26px;flex-wrap:wrap; }
.ntf-hero h1 { margin:0;font-family:'Baloo 2','Nunito','Segoe UI',sans-serif;font-size:34px;letter-spacing:-.02em;color:#392b35; }
.ntf-hero p { margin:6px 0 0;color:#927681;font-size:14px; }
.ntf-markall { border:0;background:none;color:#a63f5c;font:inherit;font-size:14px;font-weight:800;cursor:pointer;padding:10px 16px;border-radius:999px; }
.ntf-markall:hover { background:#f8e9ed; }
.ntf-list { display:flex;flex-direction:column;gap:14px; }
.ntf-card { background:#fff;border:1.5px solid #f3e4e9;border-radius:16px;padding:20px 22px;box-shadow:0 2px 10px rgba(120,60,80,.05);cursor:pointer;transition:border-color .2s,box-shadow .2s; }
.ntf-card:hover { border-color:#d889aa;box-shadow:0 6px 20px rgba(120,60,80,.10); }
.ntf-card.unread { background:#fff1f6;border-color:#f3dce6; }
.ntf-head { display:flex;align-items:center;gap:10px;margin-bottom:6px; }
.ntf-dot { width:9px;height:9px;border-radius:50%;background:#e5484d;flex-shrink:0; }
.ntf-new { font-size:11px;font-weight:800;letter-spacing:.08em;color:#98244f;background:#fbd7e4;border-radius:999px;padding:2px 10px; }
.ntf-date { margin-left:auto;font-size:12px;color:#b99aa6;white-space:nowrap; }
.ntf-title { margin:0 0 6px;font-size:18px;font-weight:800;color:#392b35;overflow-wrap:anywhere; }
.ntf-excerpt { margin:0;font-size:14px;line-height:1.7;color:#66565e;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden; }
.ntf-card.unread .ntf-excerpt { color:#5d4a54; }
.ntf-more { display:inline-flex;align-items:center;gap:6px;margin-top:10px;font-size:13px;font-weight:800;color:#a63f5c; }
.ntf-more svg { transition:transform .2s; }
.ntf-card:hover .ntf-more svg { transform:translateX(3px); }
.ntf-card.open { cursor:default; }
.ntf-content { margin:10px 0 0;font-size:15px;line-height:1.9;color:#4d3e46; }
.ntf-content p { margin:.6em 0; }
.ntf-actions { margin-top:18px;padding-top:16px;border-top:1px solid #f5e6ec;display:flex;gap:12px;flex-wrap:wrap;align-items:center; }
.ntf-btn { display:inline-block;border-radius:12px;font-weight:800;font-size:14px;padding:12px 26px;text-decoration:none;cursor:pointer;font-family:inherit; }
.ntf-btn.primary { border:0;background:linear-gradient(135deg,#c84f7f,#a82e5c);color:#fff;box-shadow:0 5px 14px rgba(168,46,92,.15); }
.ntf-btn.ghost { border:1.5px solid #c84f7f;background:#fff;color:#a63f5c; }
.ntf-collapse { margin-left:auto;border:0;background:none;color:#b99aa6;font:inherit;font-size:13px;font-weight:700;cursor:pointer; }
.ntf-collapse:hover { color:#a63f5c; }
.ntf-empty { text-align:center;padding:80px 20px;color:#b99aa6; }
.ntf-empty-icon { display:flex;justify-content:center;margin-bottom:14px;color:#d889aa; }
.ntf-empty strong { color:#927681; }
@media(max-width:600px) {
  .ntf-container { padding:26px 16px 48px; }
  .ntf-hero h1 { font-size:26px; }
  .ntf-date { white-space:normal;text-align:right; }
  .ntf-card { padding:16px; }
  .ntf-actions { gap:10px; }
  .ntf-btn { padding:11px 18px; }
}

/* Markdown 渲染出的图片不允许撑破弹窗或列表卡片 */
.shop-notice-rich img, .ntf-content img { max-width: 100%; height: auto; }
