/* Warm paper and dusty violet echo the existing pink wallpaper and mascot. */
.site-header {
  --header-ink: #644c68;
  --header-muted: #796779;
  --header-paper: #fff9fb;
}
html body .site-header.site-header {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap;
  gap: 24px; min-height: 90px; padding: 14px clamp(20px, 4vw, 64px);
  background: var(--header-paper) !important;
  border: 0 !important; border-bottom: 1px solid #eadde7 !important;
  border-radius: 0 !important; box-shadow: none !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  color: var(--header-ink);
}
.site-header__identity { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1; }
html body .site-header .site-header__home {
  display: flex; flex: 0 0 60px; width: 60px; height: 60px; padding: 0;
  background: none !important; border: 0; border-radius: 0; text-decoration: none;
}
.site-header__home img { width: 100%; height: 100%; display: block; object-fit: contain; }
.site-header__copy { min-width: 0; }
html body .site-header .brand.site-header__title {
  display: block; margin: 0; font-family: "Songti SC", "Noto Serif CJK SC", "SimSun", serif !important;
  font-size: 27px; font-weight: 700; line-height: 1.25; letter-spacing: .14em;
  white-space: nowrap; background: none !important;
  color: var(--header-ink) !important; -webkit-text-fill-color: var(--header-ink) !important;
}
.site-header__subtitle { display: flex; align-items: center; gap: 8px; margin-top: 5px; font-size: 12px; line-height: 1.5; min-width: 0; color: var(--header-muted); }
.site-header__subtitle > span:first-child { flex: none; }
html body .site-header .site-header__subtitle #who,
html body .site-header .site-header__subtitle #count { min-width: 0; max-width: 240px; font: inherit; color: inherit !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-header__divider { color: #bea7b9; }
.site-header__actions, .site-header__menu { display: flex; align-items: center; gap: 8px; flex: none; }
.site-header__more { position: relative; }
.site-header__more > summary { display: none; }
html body .site-header .site-header__actions > a,
html body .site-header .site-header__menu > a,
html body .site-header .site-header__menu > button,
html body .site-header #read-all {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: 8px 12px; border: 0 !important; border-radius: 8px !important;
  font: 500 13px/1.3 var(--font); color: var(--header-ink) !important;
  white-space: nowrap; text-decoration: none; background: transparent !important;
}
html body .site-header .site-header__actions a:hover,
html body .site-header .site-header__menu > button:hover,
html body .site-header #read-all:hover { background: #f4eaf1 !important; color: #523b57 !important; }
html body .site-header #top-upload { background: #94627f !important; color: #fff !important; gap: 6px; }
html body .site-header #top-upload:hover { background: #7d4e6b !important; }
html body .site-header #topbar-checkin { position: static; transform: none; margin: 0; flex-direction: column; gap: 3px; color: #ab5866 !important; font-size: 11px; }
.site-header a:focus-visible, .site-header button:focus-visible, .site-header summary:focus-visible { outline: 2px solid #94627f !important; outline-offset: 3px; }
html body .site-header .fpnav-btn { color: var(--header-ink) !important; font-size: 13px; letter-spacing: 0; }
html body .topbar.site-header.float,
html body .rz-top.site-header { top: 12px; left: 12px; right: 12px; min-height: 86px; padding: 12px 24px; border: 1px solid #eadde7 !important; border-radius: 12px !important; }
html body .rz-top.site-header { z-index: 80; }
.has-site-header .wl-head { top: 116px; }
.has-site-header .rz-search { top: 110px; }
html body .fan-head.site-header { padding: 14px 20px; border: 1px solid #eadde7 !important; border-radius: 12px !important; margin-bottom: 12px; }
.site-header__note { margin: 0 0 18px; }
@media (min-width: 900px) {
  html body .site-header #topbar-checkin { position: static; transform: none; margin-left: auto; padding: 0 10px 0 6px; }
}
@media (max-width: 640px) {
  html body .site-header.site-header { min-height: 78px; padding: 10px 14px; gap: 8px; }
  .site-header__identity { gap: 8px; }
  html body .site-header .site-header__home { width: 48px; height: 48px; flex-basis: 48px; }
  html body .site-header .brand.site-header__title { font-size: 21px; letter-spacing: .1em; }
  .site-header__subtitle { gap: 5px; font-size: 11px; margin-top: 4px; }
  html body .site-header .site-header__subtitle #who { max-width: 102px; }
  .site-header__actions { gap: 3px; }
  html body .site-header .site-header__actions > a,
  html body .site-header #read-all { padding: 7px 9px; font-size: 12px; }
  .site-header__more > summary { display: flex; align-items: center; justify-content: center; width: 40px; height: 44px; cursor: pointer; list-style: none; border-radius: 8px; }
  .site-header__more > summary::-webkit-details-marker { display: none; }
  .site-header__more[open] > summary { background: #f4eaf1; }
  .site-header__menu { position: absolute; top: calc(100% + 10px); right: 0; display: flex; flex-direction: column; align-items: stretch; gap: 3px; min-width: 150px; padding: 8px; background: #fff9fb; border: 1px solid #eadde7; border-radius: 10px; box-shadow: 0 8px 24px #644c6820; z-index: 1500; }
  html body .site-header .site-header__menu > a,
  html body .site-header .site-header__menu > button { justify-content: flex-start; width: 100%; }
  html body .topbar.site-header.float,
  html body .rz-top.site-header { min-height: 78px; padding: 10px 12px; top: 10px; left: 10px; right: 10px; }
  .has-site-header .wl-head { top: 104px; left: 16px; max-width: calc(100vw - 32px); }
  .has-site-header .rz-search { top: 100px; }
  html body .site-header .site-header__subtitle #count { display: inline; max-width: 96px; }
  .site-header .fpnav { display: block; margin: 0; }
  .site-header .fpnav-btn { min-height: 44px; display: flex; align-items: center; }
  .site-header .fpnav-panel { position: fixed; top: 150px; left: 16px; right: 16px; width: auto; min-width: 0; }
  html body .fan-head.site-header { padding: 10px 12px; }
}
@media (max-width: 374px) {
  html body .site-header .brand.site-header__title { font-size: 19px; }
  html body .site-header .site-header__home { width: 42px; height: 46px; flex-basis: 42px; }
  .site-header__more > summary { width: 34px; }
  .site-header__subtitle { font-size: 10px; }
}

/* PC refinement: a compact navigation surface that lets the wallpaper continue. */
@media (min-width: 901px) {
  html body .site-header.site-header {
    min-height: 72px; padding: 9px max(28px, calc((100vw - 1200px) / 2)); gap: 20px;
    background: rgba(255, 249, 252, .82) !important;
    border-bottom: 1px solid rgba(164, 127, 155, .12) !important;
    backdrop-filter: blur(14px) !important; -webkit-backdrop-filter: blur(14px) !important;
  }
  .site-header__identity { gap: 12px; }
  html body .site-header .site-header__home { width: 54px; height: 54px; flex-basis: 54px; }
  html body .site-header .brand.site-header__title {
    font-size: 24px; line-height: 1.25; letter-spacing: .07em; font-weight: 600;
    color: #594b60 !important; -webkit-text-fill-color: #594b60 !important;
  }
  .site-header__subtitle { margin-top: 2px; font-size: 11px; gap: 7px; }
  .site-header__actions, .site-header__menu { gap: 10px; }
  html body .site-header #top-upload { box-shadow: none !important; }
  html body .topbar.site-header.float,
  html body .rz-top.site-header {
    min-height: 72px; padding: 9px 22px; border: 0 !important; border-radius: 12px !important;
  }
  html body .fan-head.site-header { min-height: 72px; padding: 9px 18px; border: 0 !important; }
  .has-site-header .wl-head { top: 104px; }
  .has-site-header .rz-search { top: 96px; }
}
