/**
 * 流月笔记
 * 夜：纯黑 + 底部少量光线（对齐月历 dashboard-bg 底光）
 * 昼：淡紫青粉光底（有玻璃光感），侧栏/卡片/页脚不套玻璃壳
 * 加载：themeTokens → styles.css → siteTheme → 本文件
 */

/* ── 社交：表内裁切 PNG（夜白 / 昼墨）── */
.flow-notes-social__pic {
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
}

.flow-notes-social__img {
  grid-area: 1 / 1;
  display: block;
  width: 1.55rem;
  height: 1.55rem;
  object-fit: contain;
}

.flow-notes-social__img--day {
  display: none;
}

body.theme-day .flow-notes-social__img--night {
  display: none;
}

body.theme-day .flow-notes-social__img--day {
  display: block;
}

.flow-notes-social__item {
  width: 2.55rem;
  height: 2.55rem;
}

.flow-notes-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* ══════════════════════════════════════
   夜晚 · 纯黑 + 底部少量光线（参考月历）
   ══════════════════════════════════════ */
body.theme-night.flow-notes-page--editorial,
html.theme-night body.flow-notes-page--editorial {
  background: #000 !important;
}

body.theme-night.flow-notes-page .flow-notes-bg,
body.theme-night.flow-notes-page--editorial .flow-notes-bg {
  opacity: 1 !important;
  background:
    /* 底部微光 · 对齐月历 dashboard-bg 底缘 */
    radial-gradient(ellipse 120% 70% at 50% 100%, rgba(2, 16, 42, 0.95), transparent 55%),
    radial-gradient(ellipse 90% 45% at 50% 100%, rgba(0, 90, 160, 0.16), transparent 58%),
    #000 !important;
}

body.theme-night.flow-notes-page .flow-notes-bg::before,
body.theme-night.flow-notes-page--editorial .flow-notes-bg::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 80% at 50% 100%, rgba(40, 140, 220, 0.1), transparent 62%),
    radial-gradient(ellipse 40% 50% at 32% 100%, rgba(80, 120, 200, 0.06), transparent 55%);
  filter: blur(18px);
  opacity: 0.9;
}

body.theme-night.flow-notes-page .flow-notes-bg::after,
body.theme-night.flow-notes-page--editorial .flow-notes-bg::after {
  content: none;
}

/* 右侧语言条 · 夜黑底可读（玻璃胶囊） */
body.theme-night.flow-notes-page--editorial .site-locale-switch {
  --locale-track: rgba(8, 10, 14, 0.55) !important;
  --locale-track-border: rgba(255, 255, 255, 0.22) !important;
  --locale-fg: rgba(255, 255, 255, 0.68) !important;
  --locale-fg-active: #121417 !important;
  --locale-pill: rgba(255, 255, 255, 0.96) !important;
  --locale-accent: rgba(45, 212, 191, 0.95) !important;
  border-color: var(--locale-track-border) !important;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.02) 50%, rgba(0, 0, 0, 0.2) 100%),
    var(--locale-track) !important;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

body.theme-night.flow-notes-page--editorial .site-locale-bar__link {
  color: var(--locale-fg) !important;
  background: transparent !important;
}

body.theme-night.flow-notes-page--editorial .site-locale-switch__tab + .site-locale-switch__tab {
  border: none !important;
}

body.theme-night.flow-notes-page--editorial .site-locale-switch__tab:not(.is-active):hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
}

body.theme-night.flow-notes-page--editorial .site-locale-switch__tab.is-active {
  color: var(--locale-fg-active) !important;
  background: var(--locale-pill) !important;
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

/* ══════════════════════════════════════
   白天 · 淡紫青粉光底（玻璃光感，无分块壳）
   ══════════════════════════════════════ */
body.theme-day.flow-notes-page--editorial {
  background: transparent !important;
}

body.theme-day.flow-notes-page .flow-notes-bg {
  opacity: 1 !important;
  pointer-events: none !important;
  background:
    radial-gradient(ellipse 60% 70% at 88% 22%, rgba(180, 120, 255, 0.48), transparent 58%),
    radial-gradient(ellipse 55% 60% at 10% 78%, rgba(60, 220, 230, 0.36), transparent 55%),
    radial-gradient(ellipse 50% 48% at 48% 8%, rgba(255, 140, 200, 0.34), transparent 52%),
    radial-gradient(ellipse 40% 40% at 70% 85%, rgba(120, 170, 255, 0.24), transparent 50%),
    linear-gradient(165deg, #eef3ff 0%, #e4ecfb 40%, #f6eaf6 100%) !important;
}

body.theme-day.flow-notes-page .flow-notes-bg::before {
  content: "" !important;
  display: block !important;
  position: absolute;
  inset: -12%;
  pointer-events: none;
  background:
    radial-gradient(circle at 28% 32%, rgba(255, 255, 255, 0.5), transparent 42%),
    radial-gradient(circle at 72% 58%, rgba(200, 180, 255, 0.26), transparent 46%),
    radial-gradient(circle at 50% 80%, rgba(120, 220, 230, 0.18), transparent 44%);
  filter: blur(36px);
  opacity: 0.88;
}

body.theme-day.flow-notes-page .flow-notes-bg::after {
  content: "" !important;
  display: block !important;
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 90% 80% at 50% 40%, transparent 40%, rgba(230, 235, 250, 0.28) 100%);
  filter: none;
}
