/* 基础 reset：部分页面（如 /notifications）只挂本样式， body 默认 8px 外边距会造成四周白边 */
body { margin: 0; }
.site-header, .site-footer {
  font-family: 'Nunito', 'Segoe UI', 'Trebuchet MS', system-ui, sans-serif;
  color: #392b35;
  background: #fff9f6;
  font-size: 16px;
  line-height: 1.6;
}
.site-header *, .site-footer * { box-sizing: border-box; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 12px 20px;
  border-bottom: 1px solid #eedfe0;
}
.site-header-inner {
  max-width: 1200px;
  min-height: 44px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: #392b35;
  font-family: 'Baloo 2', 'Segoe UI', 'Trebuchet MS', system-ui, sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.02em;
  text-decoration: none;
}
.site-logo span { overflow-wrap: anywhere; }
.site-brand-icon { display: block; width: 44px; height: 44px; flex-shrink: 0; border-radius: 14px; }
.site-nav-links { display: none; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.site-nav-link {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .02em;
  color: #76616b;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.site-nav-link:hover, .site-nav-link.site-active { background: #f8e9ed; color: #a63f5c; }
.site-nav-toggle {
  display: flex;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1.5px solid #f8e9ed;
  border-radius: 999px;
  background: #fff;
  color: #a63f5c;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(210, 152, 164, .1);
}
/* 手机菜单：右上角下拉小卡片 + 页面遮罩 */
.site-nav-actions { position: relative; display: flex; align-items: center; gap: 10px; }
/* 通知铃铛：桌面端单独留在最右；移动端在汉堡按钮左侧 */
.notice-bell {
  position: relative; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; border: 1.5px solid #f8e9ed; border-radius: 999px;
  background: #fff; color: #a63f5c; text-decoration: none; cursor: pointer;
  box-shadow: 0 2px 12px rgba(210, 152, 164, .1);
  transition: background .2s, color .2s;
}
.notice-bell:hover { background: #f8e9ed; }
.notice-bell .bell-dot {
  position: absolute; top: 5px; right: 6px; width: 11px; height: 11px; border-radius: 50%;
  background: #e5484d; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(229, 72, 77, .35);
}
.notice-bell .bell-dot[hidden] { display: none; }
.notice-bell.bell-pulse { animation: bell-pulse .45s ease; }
@keyframes bell-pulse { 0% { transform: scale(1); } 35% { transform: scale(1.18) rotate(8deg); } 70% { transform: scale(.94) rotate(-4deg); } 100% { transform: scale(1); } }
.site-nav-toggle .ico-close { display: none; }
.site-nav-toggle[aria-expanded="true"] .ico-burger { display: none; }
.site-nav-toggle[aria-expanded="true"] .ico-close { display: block; }
.site-mobile-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 101;
  display: grid;
  gap: 2px;
  width: min(236px, calc(100vw - 32px));
  padding: 8px;
  border: 1px solid #f3e3e7;
  border-radius: 18px;
  background: #fffdf8;
  box-shadow: 0 22px 44px -20px rgba(150, 50, 85, .45), 0 2px 10px rgba(150, 50, 85, .06);
  transform-origin: top right;
  animation: site-menu-in .18s cubic-bezier(.22, 1, .36, 1) both;
}
.site-mobile-menu[hidden] { display: none; }
.site-mobile-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  color: #76616b;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .01em;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.site-mobile-link:hover, .site-mobile-link.is-active { background: #f8e9ed; color: #a63f5c; }
.site-nav-scrim { position: fixed; inset: 0; z-index: 95; background: rgba(57, 43, 53, .22); animation: site-scrim-in .18s ease both; }
.site-nav-scrim[hidden] { display: none; }
@keyframes site-menu-in { from { opacity: 0; transform: translateY(-6px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes site-scrim-in { from { opacity: 0; } to { opacity: 1; } }
.site-footer { padding: 28px 20px; border-top: 1px solid #eadbda; text-align: center; }
.site-footer-inner { max-width: 1200px; margin: 0 auto; }
.site-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin-bottom: 16px; }
.site-footer-link { font-size: 13px; font-weight: 700; color: #76616b; text-decoration: none; }
.site-footer-link:hover { color: #a63f5c; text-decoration: underline; text-underline-offset: 4px; }
.site-footer-text { margin: 0; color: #76616b; font-size: 12px; }
.site-header a:focus-visible, .site-header button:focus-visible, .site-footer a:focus-visible { outline: 3px solid #a63f5c; outline-offset: 5px; }
@media (min-width: 768px) {
  .site-header { padding: 16px 40px; }
  .site-nav-links { display: flex; }
  .site-nav-toggle, .site-mobile-menu { display: none; }
}
@media (max-width: 640px) {
  .shop-page + .site-footer { padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px)); }
}
.site-public-page { display:flex; flex-direction:column; min-height:100dvh; }
.site-public-page > .site-header,.site-public-page > .site-footer { flex-shrink:0; }
.site-public-page > main,.site-public-page > .state-page,.site-public-page > .error-page { flex:1; min-height:0; }
.site-public-page > .site-footer { position:relative; margin-top:auto; }
.selection-view .tag-bar { position:relative; top:auto; }
.selection-view .sheet-overlay,.submission-view-view .lightbox,.selection-view .lightbox { z-index:200; }
.selection-view #successPage { z-index:210!important; }
.selection-view .site-footer,.submission-view-view .site-footer { padding-bottom:calc(100px + env(safe-area-inset-bottom,0px)); }
@media (prefers-reduced-motion: reduce) {
  .site-nav-link { transition: none; }
  .notice-bell { transition: none; }
  .notice-bell.bell-pulse { animation: none; }
}
