/* 论坛 · 韩系 INS 白系编辑风 */
.miya-forum-app {
  --fr-white: #ffffff;
  --fr-cream: #faf9f7;
  --fr-ivory: #f5f2ed;
  --fr-pearl: #ece8e2;
  --fr-mist: rgba(255, 255, 255, 0.72);
  --fr-ink: #1a1a1a;
  --fr-ink-soft: #3d3d3d;
  --fr-muted: rgba(26, 26, 26, 0.42);
  --fr-faint: rgba(26, 26, 26, 0.12);
  --fr-line: rgba(26, 26, 26, 0.08);
  --fr-line-strong: rgba(26, 26, 26, 0.18);
  --fr-accent: #c4a882;
  --fr-accent-soft: rgba(196, 168, 130, 0.22);
  --fr-rose: #d4a5a5;
  --fr-display: "Cormorant Garamond", "Noto Serif SC", serif;
  --fr-serif: "Playfair Display", "Noto Serif SC", serif;
  --fr-script: "Great Vibes", cursive;
  --fr-caps: "Cinzel", "Noto Serif SC", serif;
  --fr-ui: "Jost", "Noto Sans SC", sans-serif;
  --fr-kr: "Noto Serif SC", serif;
  --fr-nav-h: calc(72px + env(safe-area-inset-bottom, 0px));
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  flex-direction: column;
  background: var(--fr-cream);
  color: var(--fr-ink);
  font-family: var(--fr-ui);
  overflow: hidden;
  letter-spacing: 0.02em;
}

.miya-forum-app[hidden] {
  display: none !important;
}

.miya-forum-app.is-open {
  opacity: 1;
  visibility: visible;
}

/* ── 氛围层 ── */
.fr-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 90% 60% at 0% 0%, rgba(255, 255, 255, 0.95) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 20%, rgba(196, 168, 130, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(212, 165, 165, 0.04) 0%, transparent 45%);
}

.fr-veil::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.fr-veil::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: radial-gradient(circle at 50% 50%, rgba(26, 26, 26, 0.025) 0.6px, transparent 0.6px);
  background-size: 14px 14px;
}

.fr-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}

.fr-orb--a {
  top: -8%;
  right: -12%;
  width: 55%;
  height: 38%;
  background: radial-gradient(circle, rgba(196, 168, 130, 0.12) 0%, transparent 70%);
}

.fr-orb--b {
  bottom: 18%;
  left: -18%;
  width: 48%;
  height: 32%;
  background: radial-gradient(circle, rgba(212, 165, 165, 0.08) 0%, transparent 70%);
}

.fr-frame {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.fr-frame--tl,
.fr-frame--br {
  width: 32px;
  height: 32px;
  border-color: var(--fr-line-strong);
  border-style: solid;
  opacity: 0.55;
}

.fr-frame--tl {
  top: calc(8px + env(safe-area-inset-top, 0px));
  left: 10px;
  border-width: 1.5px 0 0 1.5px;
}

.fr-frame--br {
  right: 10px;
  bottom: calc(var(--fr-nav-h) + 8px);
  border-width: 0 1.5px 1.5px 0;
}

.fr-ticker {
  position: absolute;
  top: calc(4px + env(safe-area-inset-top, 0px));
  left: 0;
  right: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.45;
}

.fr-ticker__track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: fr-ticker 28s linear infinite;
  font-family: var(--fr-caps);
  font-size: 8px;
  letter-spacing: 0.28em;
  color: var(--fr-muted);
}

@keyframes fr-ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── 主舞台 ── */
.fr-stage {
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.fr-page {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.985);
  transition: opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.42s;
  overflow: hidden;
}

.fr-page.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.fr-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(var(--fr-nav-h) + 16px);
  scrollbar-width: none;
}

.fr-scroll::-webkit-scrollbar {
  display: none;
}

/* ── 顶栏 ── */
.fr-top {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: end;
  gap: 8px;
  padding: calc(28px + env(safe-area-inset-top, 0px)) 16px 10px;
  flex-shrink: 0;
}

.fr-back {
  width: 36px;
  height: 36px;
  border: 1px solid var(--fr-line-strong);
  border-radius: 50%;
  background: var(--fr-mist);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--fr-ink);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.fr-back:active {
  transform: scale(0.94);
}

.fr-top__brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fr-top__kicker {
  font-family: var(--fr-caps);
  font-size: 7px;
  letter-spacing: 0.32em;
  color: var(--fr-muted);
  text-transform: uppercase;
}

.fr-top__title {
  margin: 0;
  font-family: var(--fr-display);
  font-size: 26px;
  font-weight: 300;
  letter-spacing: 0.06em;
  line-height: 1;
}

.fr-top__title em {
  font-family: var(--fr-script);
  font-style: normal;
  font-size: 1.15em;
  color: var(--fr-accent);
  margin-left: 4px;
}

.miya-forum-app.is-discover-sub .fr-top,
.miya-forum-app.is-discover-sub .fr-disc-head {
  display: none;
}

.fr-top__badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.fr-top__stamp {
  width: 32px;
  height: 32px;
  border: 1.5px double var(--fr-line-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--fr-serif);
  font-size: 13px;
  font-style: italic;
  background: var(--fr-white);
  box-shadow: 0 4px 16px rgba(26, 26, 26, 0.06);
}

.fr-top__vol {
  font-family: var(--fr-caps);
  font-size: 6px;
  letter-spacing: 0.2em;
  color: var(--fr-muted);
}

/* ── 首页 · 编辑流 ── */
.fr-home-head {
  padding: 0 16px 14px;
}

.fr-home-head__row {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.fr-home-head__main {
  flex: 0 0 auto;
  min-width: 0;
}

.fr-home-head__aside {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: stretch;
}

.fr-home-head__display {
  margin: 0;
  font-family: var(--fr-display);
  font-size: 34px;
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.01em;
}

.fr-home-head__display span {
  display: block;
  font-family: var(--fr-caps);
  font-size: 11px;
  letter-spacing: 0.35em;
  color: var(--fr-muted);
  margin-bottom: 4px;
}

.fr-home-head__script {
  font-family: var(--fr-script);
  font-size: 22px;
  color: var(--fr-accent);
  transform: rotate(-6deg);
  margin-top: -8px;
}

.fr-home-head__meta {
  margin: 6px 0 0;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--fr-muted);
  line-height: 1.6;
}

/* ── 拍立得照片墙 · 横排四张 ── */
.fr-polaroid-wall {
  position: relative;
  flex: 1 1 0;
  width: 100%;
  min-height: 88px;
}

.fr-polaroid-wall__wire {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 28px;
  pointer-events: none;
  z-index: 2;
}

.fr-polaroid-wall__grid {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  width: 100%;
  height: 100%;
  padding-top: 10px;
  gap: 0;
}

.fr-polaroid {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  margin: 0 -2px;
  padding: 4px 3px 10px;
  background: var(--fr-white);
  border: 1px solid var(--fr-line);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 6px 18px rgba(26, 26, 26, 0.09),
    0 2px 5px rgba(26, 26, 26, 0.05);
  transform-origin: center bottom;
}

.fr-polaroid--slot-0 {
  transform: rotate(-5deg) translateY(2px);
  z-index: 1;
}

.fr-polaroid--slot-1 {
  transform: rotate(3deg) translateY(-3px);
  z-index: 3;
  padding-bottom: 12px;
}

.fr-polaroid--slot-2 {
  transform: rotate(-2deg) translateY(1px);
  z-index: 2;
}

.fr-polaroid--slot-3 {
  transform: rotate(6deg) translateY(3px);
  z-index: 1;
}

.fr-polaroid__photo {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  margin-bottom: 5px;
  background: linear-gradient(145deg, var(--fr-ivory), var(--fr-pearl));
}

.fr-polaroid__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fr-polaroid__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 40%, transparent 30%, rgba(26, 26, 26, 0.1) 100%);
  pointer-events: none;
}

.fr-polaroid__leak {
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(255, 210, 150, 0.18) 0%, transparent 48%);
  pointer-events: none;
}

.fr-polaroid__grain {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 128 128' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  pointer-events: none;
}

.fr-polaroid__cap {
  margin: 0;
  font-family: var(--fr-script);
  font-size: 8px;
  line-height: 1.1;
  text-align: center;
  color: var(--fr-ink-soft);
  opacity: 0.78;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fr-polaroid__tape {
  position: absolute;
  top: -4px;
  left: 50%;
  width: 26px;
  height: 9px;
  margin-left: -13px;
  background: rgba(255, 252, 245, 0.78);
  border: 1px solid rgba(196, 168, 130, 0.2);
  box-shadow: 0 1px 2px rgba(26, 26, 26, 0.05);
  transform: rotate(-2deg);
  z-index: 2;
}

.fr-polaroid__clip {
  position: absolute;
  top: -5px;
  left: 50%;
  width: 12px;
  height: 18px;
  margin-left: -6px;
  border: 1.5px solid var(--fr-line-strong);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  opacity: 0.5;
  z-index: 2;
}

.fr-polaroid__clip::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 6px;
  height: 3px;
  margin-left: -3px;
  background: var(--fr-accent);
  border-radius: 1px;
  opacity: 0.55;
}

.fr-polaroid__pin {
  position: absolute;
  top: -6px;
  left: 50%;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--fr-accent);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6);
  z-index: 2;
  opacity: 0.7;
}

/* 不对称 Bento 网格 */
.fr-bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 10px;
  padding: 0 16px 20px;
}

.fr-card {
  position: relative;
  border-radius: 2px;
  background: var(--fr-white);
  border: 1px solid var(--fr-line);
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 8px 28px rgba(26, 26, 26, 0.04);
}

.fr-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.6) 0%, transparent 40%);
  z-index: 1;
}

.fr-card--hero {
  grid-column: 1 / -1;
  min-height: 200px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}

.fr-card--hero .fr-card__media {
  min-height: 200px;
  background: linear-gradient(155deg, #ebe6df 0%, #d8d0c6 45%, #c9bfb3 100%);
  position: relative;
}

.fr-card--hero .fr-card__media::after {
  content: "01";
  position: absolute;
  bottom: 12px;
  left: 12px;
  font-family: var(--fr-caps);
  font-size: 42px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1;
}

.fr-card--hero .fr-card__body {
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.fr-card--tall {
  grid-row: span 2;
  min-height: 220px;
}

.fr-card--wide {
  grid-column: span 2;
}

.fr-card--tilt-l {
  transform: rotate(-1.2deg);
}

.fr-card--tilt-r {
  transform: rotate(1.4deg);
}

.fr-card__media {
  min-height: 100px;
  background: linear-gradient(135deg, var(--fr-ivory), var(--fr-pearl));
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.fr-card__media--real {
  min-height: 0;
  background: none;
}

.fr-card__media--real img {
  display: block;
  width: 100%;
  height: auto;
}

.fr-card--hero .fr-card__media--real {
  min-height: 0;
}

.fr-card__media--a {
  background: linear-gradient(160deg, #f0ebe4, #ddd5ca);
}

.fr-card__media--b {
  background: linear-gradient(200deg, #e8e2db, #cfc5b8);
}

.fr-card__media--c {
  background: linear-gradient(120deg, #ede8e1, #d4ccc0);
}

.fr-card__pin {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  font-family: var(--fr-caps);
  font-size: 7px;
  letter-spacing: 0.2em;
  padding: 3px 8px;
  background: var(--fr-white);
  border: 1px solid var(--fr-line);
  color: var(--fr-muted);
}

.fr-card__ribbon {
  position: absolute;
  top: 14px;
  left: -28px;
  z-index: 2;
  width: 100px;
  padding: 3px 0;
  background: var(--fr-ink);
  color: var(--fr-white);
  -webkit-text-fill-color: var(--fr-white);
  font-family: var(--fr-caps);
  font-size: 6px;
  letter-spacing: 0.25em;
  text-align: center;
  transform: rotate(-42deg);
}

.fr-card__body {
  padding: 12px 12px 14px;
  position: relative;
  z-index: 2;
}

.fr-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--fr-caps);
  font-size: 7px;
  letter-spacing: 0.22em;
  color: var(--fr-accent);
  margin-bottom: 6px;
}

.fr-card__tag::before {
  content: "";
  width: 12px;
  height: 1px;
  background: var(--fr-accent);
}

.fr-card__title {
  margin: 0 0 6px;
  font-family: var(--fr-display);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.fr-card__desc {
  margin: 0;
  font-size: 10px;
  line-height: 1.55;
  color: var(--fr-muted);
  letter-spacing: 0.04em;
}

.fr-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--fr-line);
  font-size: 9px;
  color: var(--fr-muted);
}

.fr-card__author {
  display: flex;
  align-items: center;
  gap: 6px;
}

.fr-card__author-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--fr-pearl);
  border: 1px solid var(--fr-line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 600;
  color: var(--fr-muted);
  flex-shrink: 0;
}

.fr-card__author-ava {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--fr-pearl) center/cover no-repeat;
  border: 1px solid var(--fr-line);
  flex-shrink: 0;
}

.fr-card__likes {
  font-family: var(--fr-caps);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.fr-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 16px 16px;
  font-family: var(--fr-caps);
  font-size: 7px;
  letter-spacing: 0.3em;
  color: var(--fr-muted);
}

.fr-divider::before,
.fr-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--fr-line-strong), transparent);
}

/* ── 发现 · 轨道画廊 ── */
.fr-disc-head {
  padding: 0 16px 8px;
  text-align: center;
}

.fr-disc-head__orbit-label {
  font-family: var(--fr-caps);
  font-size: 8px;
  letter-spacing: 0.35em;
  color: var(--fr-muted);
}

.fr-disc-head__title {
  margin: 6px 0 0;
  font-family: var(--fr-display);
  font-size: 28px;
  font-weight: 300;
}

.fr-disc-head__kr {
  font-family: var(--fr-kr);
  font-size: 13px;
  color: var(--fr-muted);
  letter-spacing: 0.2em;
  margin-top: 4px;
}

.fr-orbit-stage {
  position: relative;
  height: 240px;
  margin: 8px 16px 20px;
}

.fr-orbit-stage__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--fr-line);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.fr-orbit-stage__ring--1 {
  width: 88%;
  height: 88%;
  border-style: dashed;
  opacity: 0.5;
  animation: fr-spin 24s linear infinite reverse;
}

.fr-orbit-stage__ring--2 {
  width: 62%;
  height: 62%;
  border-color: var(--fr-accent-soft);
}

.fr-orbit-stage__ring--3 {
  width: 36%;
  height: 36%;
  background: radial-gradient(circle, var(--fr-white) 0%, var(--fr-ivory) 100%);
  box-shadow: 0 8px 32px rgba(26, 26, 26, 0.06);
}

.fr-orbit-stage__core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
}

.fr-orbit-stage__core-num {
  font-family: var(--fr-caps);
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--fr-muted);
}

.fr-orbit-stage__core-title {
  font-family: var(--fr-serif);
  font-size: 20px;
  font-style: italic;
  margin-top: 2px;
}

.fr-orbit-bubble {
  position: absolute;
  padding: 8px 14px;
  background: var(--fr-white);
  border: 1px solid var(--fr-line);
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--fr-ink);
  box-shadow: 0 4px 16px rgba(26, 26, 26, 0.05);
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
}

.fr-orbit-bubble:active {
  transform: scale(0.96);
}

.fr-orbit-bubble--a { top: 8%; left: 12%; transform: rotate(-4deg); }
.fr-orbit-bubble--b { top: 4%; right: 8%; transform: rotate(3deg); }
.fr-orbit-bubble--c { bottom: 18%; left: 4%; transform: rotate(2deg); }
.fr-orbit-bubble--d { bottom: 12%; right: 6%; transform: rotate(-3deg); }
.fr-orbit-bubble--e { top: 42%; right: -2%; transform: rotate(5deg); }
.fr-orbit-bubble--f { top: 22%; left: 38%; transform: rotate(-2deg); }
.fr-orbit-bubble--g { bottom: 32%; right: 22%; transform: rotate(4deg); }
.fr-orbit-bubble--h { top: 55%; left: 8%; transform: rotate(-5deg); }

.fr-orbit-bubble em {
  font-family: var(--fr-caps);
  font-size: 7px;
  letter-spacing: 0.15em;
  color: var(--fr-accent);
  margin-right: 4px;
  font-style: normal;
}

.fr-orbit-bubble.is-active {
  background: var(--fr-ink);
  color: var(--fr-white);
  -webkit-text-fill-color: var(--fr-white);
  border-color: var(--fr-ink);
}

.fr-orbit-bubble.is-active em {
  color: var(--fr-accent-soft);
}

/* ── 发现 · 专题区帖子流 ── */
.fr-disc-topic {
  padding: 0 0 24px;
}

.fr-disc-topic__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 12px;
}

.fr-disc-topic__meta {
  flex: 1;
  min-width: 0;
}

.fr-disc-topic__back {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 1px solid var(--fr-line);
  border-radius: 50%;
  background: var(--fr-white);
  font-size: 16px;
  color: var(--fr-ink);
  cursor: pointer;
}

.fr-disc-sub-refresh {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--fr-line-strong);
  border-radius: 50%;
  background: var(--fr-white);
  color: var(--fr-ink);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.fr-disc-sub-refresh:active {
  transform: scale(0.94);
}

.fr-disc-topic__label {
  margin: 0;
  font-family: var(--fr-caps);
  font-size: 8px;
  letter-spacing: 0.28em;
  color: var(--fr-muted);
}

.fr-disc-topic__title {
  margin: 4px 0 0;
  font-family: var(--fr-display);
  font-size: 22px;
  font-weight: 400;
}

.fr-disc-topic .fr-bento {
  padding: 0 12px;
}

.fr-disc-topic .fr-feed-empty {
  padding: 32px 16px;
}

.fr-disc-collection {
  padding: 0 0 24px;
}

.fr-disc-collection__desc {
  margin: 6px 0 0;
  font-size: 11px;
  color: var(--fr-muted);
  line-height: 1.45;
  letter-spacing: 0.02em;
}

.fr-disc-collection .fr-bento {
  padding: 0 16px;
}

.fr-disc-collection .fr-feed-empty {
  padding: 32px 16px;
}

.fr-coll-editor {
  position: absolute;
  inset: 0;
  z-index: 130;
  display: flex;
  flex-direction: column;
  background: var(--fr-cream);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.fr-coll-editor.is-open {
  transform: translateX(0);
}

.fr-coll-editor[hidden] {
  display: none !important;
}

.fr-coll-editor__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--fr-line);
  background: var(--fr-mist);
}

.fr-coll-editor__back,
.fr-coll-editor__add {
  background: none;
  border: none;
  font-size: 14px;
  cursor: pointer;
  color: var(--fr-ink);
}

.fr-coll-editor__add {
  font-family: var(--fr-caps);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--fr-accent);
}

.fr-coll-editor__title {
  margin: 0;
  font-family: var(--fr-display);
  font-size: 18px;
  font-weight: 400;
  text-align: center;
}

.fr-coll-editor__hint {
  margin: 0;
  padding: 12px 16px;
  font-size: 10px;
  color: var(--fr-muted);
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--fr-line);
}

.fr-coll-editor__list {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px 24px;
}

.fr-coll-editor__empty {
  margin: 0;
  padding: 32px 0;
  text-align: center;
  font-size: 11px;
  color: var(--fr-muted);
}

.fr-coll-editor__item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--fr-line);
}

.fr-coll-editor__item-name {
  margin: 0;
  font-family: var(--fr-display);
  font-size: 16px;
  font-weight: 400;
}

.fr-coll-editor__item-desc {
  margin: 6px 0 0;
  font-size: 11px;
  color: var(--fr-muted);
  line-height: 1.45;
}

.fr-coll-editor__item-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fr-coll-editor__item-btn {
  padding: 4px 10px;
  font-size: 10px;
  letter-spacing: 0.06em;
  background: none;
  border: 1px solid var(--fr-line);
  border-radius: 2px;
  cursor: pointer;
  color: var(--fr-ink);
}

.fr-coll-editor__item-btn--del {
  color: #a85858;
  border-color: rgba(168, 88, 88, 0.35);
}

.fr-note-editor__select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--fr-muted) 50%), linear-gradient(135deg, var(--fr-muted) 50%, transparent 50%);
  background-position: calc(100% - 16px) calc(50% - 2px), calc(100% - 11px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 28px;
}

.fr-collections {
  padding: 0 16px 20px;
}

.fr-collections__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}

.fr-collections__title {
  margin: 0;
  font-family: var(--fr-display);
  font-size: 20px;
  font-weight: 400;
}

.fr-collections__more {
  font-family: var(--fr-caps);
  font-size: 8px;
  letter-spacing: 0.2em;
  color: var(--fr-muted);
  background: none;
  border: none;
  cursor: pointer;
}

.fr-coll-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0 -16px;
  padding: 0 16px 4px;
}

.fr-coll-scroll::-webkit-scrollbar {
  display: none;
}

.fr-coll-grid {
  display: flex;
  gap: 10px;
  width: max-content;
  min-width: 100%;
}

.fr-coll-item {
  position: relative;
  flex: 0 0 148px;
  width: 148px;
  min-height: 110px;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid var(--fr-line);
  background: var(--fr-white);
}

.fr-coll-item--main {
  flex: 0 0 200px;
  width: 200px;
  min-height: 230px;
}

.fr-coll-empty,
.fr-topic-empty {
  margin: 0;
  padding: 24px 0;
  font-size: 11px;
  color: var(--fr-muted);
  text-align: center;
  letter-spacing: 0.04em;
}

.fr-coll-item__desc {
  font-size: 9px;
  opacity: 0.75;
  margin: 4px 0 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fr-coll-item__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, #ece7e0, #d5cdc2);
}

.fr-coll-item__bg--2 {
  background: linear-gradient(145deg, #f2ede6, #e0d8cc);
}

.fr-coll-item__bg--3 {
  background: linear-gradient(200deg, #e8e3dc, #ccc4b8);
}

.fr-coll-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(26, 26, 26, 0.55) 0%, transparent 55%);
  z-index: 1;
}

.fr-coll-item__copy {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px;
  z-index: 2;
  color: var(--fr-white);
}

.fr-coll-item__vol {
  font-family: var(--fr-caps);
  font-size: 7px;
  letter-spacing: 0.25em;
  opacity: 0.7;
}

.fr-coll-item__name {
  margin: 4px 0 0;
  font-family: var(--fr-display);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.2;
}

.fr-coll-item__count {
  font-size: 9px;
  opacity: 0.65;
  margin-top: 4px;
}

.fr-topic-list {
  padding: 0 16px 24px;
}

.fr-topic-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--fr-line);
}

.fr-topic-row__idx {
  font-family: var(--fr-caps);
  font-size: 18px;
  font-weight: 500;
  color: rgba(26, 26, 26, 0.15);
  line-height: 1;
}

.fr-topic-row__title {
  margin: 0;
  font-family: var(--fr-display);
  font-size: 15px;
}

.fr-topic-row__sub {
  margin: 2px 0 0;
  font-size: 9px;
  color: var(--fr-muted);
  letter-spacing: 0.06em;
}

.fr-topic-row__heat {
  font-family: var(--fr-caps);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--fr-accent);
  padding: 4px 8px;
  border: 1px solid var(--fr-accent-soft);
  border-radius: 999px;
}

/* ── 消息 · 信笺廊 ── */
.fr-inbox-head {
  padding: 0 16px 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 12px;
}

.fr-inbox-head__title {
  margin: 0;
  font-family: var(--fr-display);
  font-size: 30px;
  font-weight: 300;
}

.fr-inbox-head__sub {
  margin: 4px 0 0;
  font-size: 10px;
  color: var(--fr-muted);
  letter-spacing: 0.08em;
}

.fr-inbox-head__seal {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #d4a5a5, #b88888);
  box-shadow:
    0 2px 8px rgba(180, 120, 120, 0.3),
    inset 0 -2px 4px rgba(0, 0, 0, 0.1);
  display: grid;
  place-items: center;
  font-family: var(--fr-serif);
  font-size: 16px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
  transform: rotate(-8deg);
}

.fr-inbox-tabs {
  display: flex;
  gap: 0;
  padding: 0 16px 12px;
  border-bottom: 1px solid var(--fr-line);
}

.fr-inbox-tab {
  flex: 1;
  padding: 8px 0;
  background: none;
  border: none;
  font-family: var(--fr-caps);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--fr-muted);
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}

.fr-inbox-tab.is-active {
  color: var(--fr-ink);
}

.fr-inbox-tab.is-active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 20%;
  right: 20%;
  height: 1.5px;
  background: var(--fr-ink);
}

.fr-letter-list {
  padding: 8px 16px 24px;
}

.fr-letter {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px dashed var(--fr-line);
  position: relative;
}

.fr-letter--unread::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--fr-rose);
}

.fr-letter__env {
  width: 48px;
  height: 36px;
  position: relative;
  background: var(--fr-ivory);
  border: 1px solid var(--fr-line-strong);
  border-radius: 2px;
}

.fr-letter__env::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(135deg, transparent 49%, var(--fr-line-strong) 49%, var(--fr-line-strong) 51%, transparent 51%);
}

.fr-letter__env-mark {
  position: absolute;
  bottom: 4px;
  right: 4px;
  font-family: var(--fr-caps);
  font-size: 6px;
  letter-spacing: 0.1em;
  color: var(--fr-muted);
}

.fr-letter__from {
  margin: 0;
  font-family: var(--fr-display);
  font-size: 15px;
}

.fr-letter__preview {
  margin: 4px 0 0;
  font-size: 10px;
  line-height: 1.5;
  color: var(--fr-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fr-letter__time {
  font-family: var(--fr-caps);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--fr-muted);
  white-space: nowrap;
}

.fr-letter__badge {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  font-family: var(--fr-caps);
  font-size: 7px;
  letter-spacing: 0.15em;
  border: 1px solid var(--fr-line);
  color: var(--fr-muted);
}

/* ── 我的 · 身份层叠 ── */
.fr-me-hero {
  position: relative;
  margin: 0 16px 20px;
  padding: 24px 20px 20px;
  background: var(--fr-white);
  border: 1px solid var(--fr-line);
  box-shadow: 0 12px 40px rgba(26, 26, 26, 0.05);
}

.fr-me-hero::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border: 1px solid var(--fr-line);
  pointer-events: none;
}

.fr-me-hero__corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--fr-accent);
  border-style: solid;
  opacity: 0.6;
}

.fr-me-hero__corner--tl { top: 4px; left: 4px; border-width: 1.5px 0 0 1.5px; }
.fr-me-hero__corner--br { bottom: 4px; right: 4px; border-width: 0 1.5px 1.5px 0; }

.fr-me-hero__top {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  align-items: center;
}

.fr-me-hero__ava {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--fr-white);
  box-shadow: 0 0 0 1px var(--fr-line-strong), 0 8px 24px rgba(26, 26, 26, 0.08);
  background: linear-gradient(145deg, var(--fr-ivory), var(--fr-pearl));
  display: grid;
  place-items: center;
  font-family: var(--fr-script);
  font-size: 28px;
  color: var(--fr-accent);
}

.fr-me-hero__name {
  margin: 0;
  font-family: var(--fr-display);
  font-size: 24px;
  font-weight: 400;
}

.fr-me-hero__handle {
  margin: 2px 0 0;
  font-family: var(--fr-caps);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--fr-muted);
}

.fr-me-hero__bio {
  margin: 14px 0 0;
  font-size: 11px;
  line-height: 1.65;
  color: var(--fr-ink-soft);
  letter-spacing: 0.04em;
}

.fr-me-hero__sig {
  margin-top: 12px;
  font-family: var(--fr-script);
  font-size: 20px;
  color: var(--fr-accent);
  text-align: right;
}

.fr-me-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0 16px 20px;
  background: var(--fr-line);
  border: 1px solid var(--fr-line);
}

.fr-me-stat {
  padding: 14px 8px;
  background: var(--fr-white);
  text-align: center;
}

.fr-me-stat__num {
  display: block;
  font-family: var(--fr-display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}

.fr-me-stat__lbl {
  display: block;
  margin-top: 4px;
  font-family: var(--fr-caps);
  font-size: 7px;
  letter-spacing: 0.22em;
  color: var(--fr-muted);
}

.fr-me-board {
  padding: 0 16px 24px;
}

.fr-me-board__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}

.fr-me-board__title {
  margin: 0;
  font-family: var(--fr-display);
  font-size: 18px;
}

.fr-me-board__edit {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--fr-muted);
  background: none;
  border: none;
  cursor: pointer;
}

.fr-me-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.fr-me-mosaic__cell {
  aspect-ratio: 1;
  background: linear-gradient(145deg, var(--fr-ivory), var(--fr-pearl));
  border: 1px solid var(--fr-line);
  position: relative;
  overflow: hidden;
}

.fr-me-mosaic__cell--span2 {
  grid-column: span 2;
  aspect-ratio: 2 / 1;
}

.fr-me-mosaic__cell--has-img {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.fr-me-mosaic__cell-label {
  position: absolute;
  bottom: 6px;
  left: 8px;
  font-family: var(--fr-caps);
  font-size: 7px;
  letter-spacing: 0.15em;
  color: var(--fr-muted);
}

/* ── 我的版面编辑器 ── */
.fr-me-board-editor {
  position: absolute;
  inset: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  background: var(--fr-cream);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.fr-me-board-editor.is-open {
  transform: translateX(0);
}

.fr-me-board-editor[hidden] {
  display: none !important;
}

.fr-me-board-editor__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--fr-line);
  background: var(--fr-mist);
}

.fr-me-board-editor__back {
  border: none;
  background: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--fr-ink);
}

.fr-me-board-editor__title {
  margin: 0;
  flex: 1;
  font-family: var(--fr-display);
  font-size: 18px;
  font-weight: 400;
}

.fr-me-board-editor__save {
  border: none;
  background: var(--fr-ink);
  color: var(--fr-white);
  -webkit-text-fill-color: var(--fr-white);
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 8px 14px;
  border-radius: 2px;
  cursor: pointer;
}

.fr-me-board-editor__hint {
  margin: 0;
  padding: 12px 16px 0;
  font-size: 11px;
  color: var(--fr-muted);
  letter-spacing: 0.04em;
}

.fr-me-board-editor__mosaic {
  padding: 16px;
}

.fr-me-board-editor__cell {
  cursor: pointer;
}

.fr-me-board-editor__cell-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--fr-muted);
  background: rgba(255, 252, 248, 0.45);
  pointer-events: none;
}

.fr-me-mosaic__cell--has-img .fr-me-board-editor__cell-hint {
  opacity: 0;
  transition: opacity 0.2s;
}

.fr-me-board-editor__cell:hover .fr-me-board-editor__cell-hint {
  opacity: 1;
}

.fr-me-board-editor__cell-rm {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 2;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: rgba(26, 26, 26, 0.55);
  color: var(--fr-white);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.fr-me-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 16px 24px;
}

.fr-me-card {
  display: grid;
  grid-template-columns: 4px 1fr;
  gap: 12px;
  padding: 14px 14px 14px 0;
  background: var(--fr-white);
  border: 1px solid var(--fr-line);
}

.fr-me-card__bar {
  background: linear-gradient(180deg, var(--fr-accent), var(--fr-rose));
}

.fr-me-card--action {
  cursor: pointer;
}

.fr-me-card--action:active {
  opacity: 0.85;
}

.fr-me-card__title {
  margin: 0;
  font-family: var(--fr-display);
  font-size: 14px;
}

.fr-me-card__desc {
  margin: 4px 0 0;
  font-size: 10px;
  color: var(--fr-muted);
  line-height: 1.5;
}

/* ── 底栏导航 ── */
.fr-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  padding: 0 12px calc(8px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}

.fr-nav__bar {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 56px 1fr 1fr;
  align-items: end;
  gap: 0;
  padding: 10px 8px 12px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  box-shadow:
    0 -1px 0 rgba(255, 255, 255, 0.9) inset,
    0 8px 32px rgba(26, 26, 26, 0.08),
    0 2px 8px rgba(26, 26, 26, 0.04);
  pointer-events: auto;
  overflow: visible;
}

.fr-nav__bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--fr-line-strong), transparent);
}

.fr-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--fr-muted);
  transition: color 0.25s, transform 0.2s;
}

.fr-nav__item.is-active {
  color: var(--fr-ink);
}

.fr-nav__item:active {
  transform: scale(0.92);
}

.fr-nav__glyph {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
}

.fr-nav__glyph svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fr-nav__lbl {
  font-family: var(--fr-caps);
  font-size: 7px;
  letter-spacing: 0.14em;
}

.fr-nav__fab-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: -28px;
  position: relative;
  z-index: 3;
}

.fr-nav__fab-wrap::before {
  content: "";
  position: absolute;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--fr-white);
  border: 1px solid var(--fr-line);
  box-shadow: 0 2px 12px rgba(26, 26, 26, 0.06);
  pointer-events: none;
}

.fr-nav__fab {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: var(--fr-ink);
  color: var(--fr-white);
  -webkit-text-fill-color: var(--fr-white);
  cursor: pointer;
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  box-shadow:
    0 4px 16px rgba(26, 26, 26, 0.25),
    0 0 0 3px var(--fr-white),
    0 0 0 4px var(--fr-line);
  transition: transform 0.25s, box-shadow 0.25s;
}

.fr-nav__fab::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px dashed var(--fr-faint);
  animation: fr-spin 12s linear infinite;
}

.fr-nav__fab:active {
  transform: scale(0.94);
}

.fr-nav__fab svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.fr-nav__fab-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid var(--fr-accent-soft);
  opacity: 0.6;
}

/* ── 发布浮层 ── */
.fr-compose {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
  pointer-events: none;
}

.fr-compose.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.fr-compose__veil {
  position: absolute;
  inset: 0;
  background: rgba(250, 249, 247, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.fr-compose__sheet {
  position: relative;
  z-index: 1;
  margin: 0 12px calc(var(--fr-nav-h) + 4px);
  padding: 20px 18px 18px;
  background: var(--fr-white);
  border: 1px solid var(--fr-line);
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(26, 26, 26, 0.12);
  transform: translateY(24px);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.fr-compose.is-open .fr-compose__sheet {
  transform: none;
}

.fr-compose__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}

.fr-compose__title {
  margin: 0;
  font-family: var(--fr-display);
  font-size: 22px;
  font-weight: 400;
}

.fr-compose__close {
  width: 28px;
  height: 28px;
  border: 1px solid var(--fr-line);
  border-radius: 50%;
  background: var(--fr-cream);
  font-size: 14px;
  cursor: pointer;
  color: var(--fr-muted);
}

.fr-compose__opts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.fr-compose__opt {
  padding: 18px 14px;
  background: var(--fr-cream);
  border: 1px solid var(--fr-line);
  border-radius: 2px;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.fr-compose__opt:active {
  background: var(--fr-ivory);
  border-color: var(--fr-line-strong);
}

.fr-compose__opt-icon {
  font-family: var(--fr-serif);
  font-size: 20px;
  font-style: italic;
  color: var(--fr-accent);
  margin-bottom: 6px;
}

.fr-compose__opt-name {
  margin: 0;
  font-family: var(--fr-display);
  font-size: 14px;
}

.fr-compose__opt-desc {
  margin: 4px 0 0;
  font-size: 9px;
  color: var(--fr-muted);
  letter-spacing: 0.04em;
}

.fr-toast {
  position: absolute;
  left: 50%;
  bottom: calc(var(--fr-nav-h) + 20px);
  transform: translateX(-50%) translateY(12px);
  z-index: 30;
  padding: 10px 20px;
  background: var(--fr-ink);
  color: var(--fr-white);
  -webkit-text-fill-color: var(--fr-white);
  font-family: var(--fr-caps);
  font-size: 9px;
  letter-spacing: 0.18em;
  border-radius: 999px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
  pointer-events: none;
  white-space: nowrap;
}

.fr-toast.is-show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ── 额外装饰 ── */
.fr-side-rule {
  position: absolute;
  top: 120px;
  right: 6px;
  writing-mode: vertical-rl;
  font-family: var(--fr-caps);
  font-size: 7px;
  letter-spacing: 0.35em;
  color: var(--fr-faint);
  pointer-events: none;
  z-index: 1;
  opacity: 0.55;
}

.fr-float-mark {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  font-family: var(--fr-caps);
  font-size: 8px;
  letter-spacing: 0.2em;
  color: var(--fr-muted);
  opacity: 0.35;
}

.fr-float-mark--a { top: 18%; left: 4%; transform: rotate(-90deg); }
.fr-float-mark--b { bottom: 28%; right: 3%; }

.fr-deco-line {
  height: 1px;
  margin: 0 16px 16px;
  background: linear-gradient(90deg, var(--fr-accent-soft), transparent 70%);
}

.fr-page[data-fr-page="home"] .fr-scroll {
  position: relative;
}

.fr-page[data-fr-page="discover"]::after {
  content: "EXPLORE";
  position: absolute;
  bottom: calc(var(--fr-nav-h) + 40px);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--fr-caps);
  font-size: 64px;
  letter-spacing: 0.2em;
  color: rgba(26, 26, 26, 0.03);
  pointer-events: none;
  z-index: 0;
}

.fr-card__deco-num {
  position: absolute;
  top: 8px;
  left: 10px;
  font-family: var(--fr-caps);
  font-size: 28px;
  font-weight: 500;
  color: rgba(26, 26, 26, 0.06);
  line-height: 1;
  z-index: 2;
  pointer-events: none;
}

.fr-home-head {
  position: relative;
}

/* ── 顶栏操作按钮（刷新 / 设置） ── */
.fr-top__action {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--fr-line-strong);
  border-radius: 50%;
  background: var(--fr-white);
  color: var(--fr-ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(26, 26, 26, 0.06);
  flex-shrink: 0;
}

.fr-top__action-icon {
  font-size: 18px;
  line-height: 1;
}

.fr-top__action--settings .fr-top__action-icon {
  font-size: 15px;
}

.fr-top__action:active {
  transform: scale(0.96);
}

/* ── 动态 feed ── */
.fr-feed-status {
  padding: 8px 20px 0;
  font-size: 12px;
  color: var(--fr-accent);
  letter-spacing: 0.08em;
  text-align: center;
}

.fr-feed-empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--fr-muted);
  font-size: 13px;
}

.fr-card__media--text {
  display: flex;
  align-items: flex-end;
  padding: 12px;
  background: linear-gradient(145deg, var(--fr-ivory), var(--fr-pearl));
}

.fr-card__media-caption {
  font-size: 11px;
  line-height: 1.5;
  color: var(--fr-ink-soft);
  max-height: 4.5em;
  overflow: hidden;
}

.fr-card__gen {
  display: block;
  margin-top: 8px;
  font-size: 10px;
  color: var(--fr-accent);
  letter-spacing: 0.1em;
}

.fr-card[role="button"] {
  cursor: pointer;
}

/* ── 加载层 ── */
.fr-loading {
  position: absolute;
  inset: 0;
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(250, 249, 247, 0.72);
  backdrop-filter: blur(6px);
}

.fr-loading[hidden] {
  display: none !important;
}

.fr-loading__box {
  text-align: center;
  padding: 24px 32px;
  background: var(--fr-white);
  border: 1px solid var(--fr-line);
  box-shadow: 0 12px 40px rgba(26, 26, 26, 0.08);
}

.fr-loading__spin {
  width: 28px;
  height: 28px;
  margin: 0 auto 12px;
  border: 2px solid var(--fr-line);
  border-top-color: var(--fr-accent);
  border-radius: 50%;
  animation: fr-spin 0.8s linear infinite;
}

@keyframes fr-spin {
  to { transform: rotate(360deg); }
}

.fr-loading__text {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--fr-ink-soft);
}

/* ── 顶部非阻塞状态条 ── */
.fr-status-bar {
  position: absolute;
  top: calc(52px + env(safe-area-inset-top, 0px));
  left: 12px;
  right: 12px;
  z-index: 15;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--fr-line);
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(26, 26, 26, 0.08);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--fr-accent);
  text-align: center;
  pointer-events: none;
  animation: fr-status-in 0.3s ease;
}

.fr-status-bar[hidden] {
  display: none !important;
}

.fr-status-bar.is-done {
  color: var(--fr-ink-soft);
}

@keyframes fr-status-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* ── 消息未读角标 ── */
.fr-nav__item {
  position: relative;
}

.fr-nav__badge {
  position: absolute;
  top: 0;
  right: calc(50% - 18px);
  min-width: 14px;
  height: 14px;
  padding: 0 4px;
  border-radius: 7px;
  background: var(--fr-rose);
  color: var(--fr-white);
  font-size: 8px;
  font-weight: 600;
  line-height: 14px;
  text-align: center;
  -webkit-text-fill-color: var(--fr-white);
}

.fr-nav__badge[hidden] {
  display: none !important;
}

.fr-inbox-empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--fr-muted);
  font-size: 13px;
}

.fr-letter[role="button"] {
  cursor: pointer;
}

.fr-letter:active {
  opacity: 0.85;
}

/* ── 图文笔记编辑器 ── */
.fr-note-editor {
  position: absolute;
  inset: 0;
  z-index: 25;
  display: flex;
  flex-direction: column;
  background: var(--fr-cream);
  transform: translateY(100%);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.fr-note-editor.is-open {
  transform: none;
}

.fr-note-editor[hidden] {
  display: none !important;
}

.fr-note-editor__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(28px + env(safe-area-inset-top, 0px)) 16px 12px;
  border-bottom: 1px solid var(--fr-line);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.fr-note-editor__back,
.fr-note-editor__send {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--fr-ui);
  font-size: 13px;
  color: var(--fr-ink);
  padding: 6px 8px;
}

.fr-note-editor__send {
  color: var(--fr-accent);
  -webkit-text-fill-color: var(--fr-accent);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.fr-note-editor__send:disabled {
  opacity: 0.4;
  cursor: default;
}

.fr-note-editor__title {
  margin: 0;
  font-family: var(--fr-display);
  font-size: 18px;
  font-weight: 400;
}

.fr-note-editor__scroll {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px calc(var(--fr-nav-h) + 16px);
  -webkit-overflow-scrolling: touch;
}

.fr-note-editor__body {
  width: 100%;
  min-height: 120px;
  border: none;
  background: transparent;
  resize: none;
  font-family: var(--fr-ui);
  font-size: 15px;
  line-height: 1.65;
  color: var(--fr-ink);
  outline: none;
}

.fr-note-editor__body::placeholder {
  color: var(--fr-muted);
}

.fr-note-editor__images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 16px 0;
}

.fr-note-editor__img-slot {
  aspect-ratio: 1;
  border: 1px dashed var(--fr-line-strong);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  background: var(--fr-ivory) center/cover no-repeat;
}

.fr-note-editor__img-slot--real {
  aspect-ratio: 1;
  min-height: 72px;
  border: none;
  background: var(--fr-ivory);
}

.fr-note-editor__img-slot--real img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fr-note-editor__img-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fr-note-editor__img-slot--text {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  font-size: 10px;
  line-height: 1.4;
  color: var(--fr-ink-soft);
  text-align: center;
}

.fr-note-editor__img-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 50%;
  background: rgba(26, 26, 26, 0.55);
  color: var(--fr-white);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  -webkit-text-fill-color: var(--fr-white);
}

.fr-note-editor__add-img {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.fr-note-editor__add-btn {
  flex: 1;
  padding: 10px;
  border: 1px dashed var(--fr-line-strong);
  border-radius: 4px;
  background: var(--fr-white);
  font-size: 11px;
  color: var(--fr-muted);
  cursor: pointer;
  letter-spacing: 0.06em;
}

.fr-note-editor__field {
  margin-bottom: 16px;
}

.fr-note-editor__label {
  display: block;
  margin-bottom: 6px;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--fr-muted);
  font-family: var(--fr-caps);
}

.fr-note-editor__input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--fr-line);
  border-radius: 4px;
  background: var(--fr-white);
  font-family: var(--fr-ui);
  font-size: 13px;
  color: var(--fr-ink);
  outline: none;
}

.fr-note-editor__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.fr-note-editor__tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--fr-accent-soft);
  border-radius: 2px;
  font-size: 11px;
  color: var(--fr-ink-soft);
}

.fr-note-editor__tag-rm {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--fr-muted);
  font-size: 12px;
  line-height: 1;
}

.fr-note-editor__tag-row {
  display: flex;
  gap: 8px;
}

.fr-note-editor__tag-row .fr-note-editor__input {
  flex: 1;
}

.fr-note-editor__tag-add {
  padding: 10px 14px;
  border: 1px solid var(--fr-line);
  border-radius: 4px;
  background: var(--fr-white);
  font-size: 12px;
  cursor: pointer;
  color: var(--fr-ink);
  white-space: nowrap;
}

.fr-detail__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}

.fr-detail__tag {
  font-size: 11px;
  color: var(--fr-accent);
  letter-spacing: 0.04em;
}

.fr-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.fr-card__tag-item {
  font-size: 9px;
  color: var(--fr-accent);
  letter-spacing: 0.06em;
}

/* ── 帖子详情 ── */
.fr-detail {
  position: absolute;
  inset: 0;
  z-index: 550;
  display: flex;
  flex-direction: column;
  background: var(--fr-cream);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.fr-detail.is-open {
  transform: translateX(0);
}

.fr-detail[hidden] {
  display: none !important;
}

.fr-detail__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: calc(28px + env(safe-area-inset-top, 0px)) 16px 12px;
  border-bottom: 1px solid var(--fr-line);
  background: var(--fr-mist);
}

.fr-detail__back {
  border: none;
  background: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--fr-ink);
}

.fr-detail__title {
  margin: 0;
  flex: 1;
  font-family: var(--fr-display);
  font-size: 18px;
  font-weight: 400;
}

.fr-detail__bookmark {
  border: none;
  background: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--fr-muted);
  padding: 4px;
}

.fr-detail__delete {
  border: none;
  background: none;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  color: var(--fr-muted);
  padding: 4px 6px;
  letter-spacing: 0.06em;
}

.fr-detail__delete:hover {
  color: #c44;
}


.fr-detail__comment-del {
  margin-left: auto;
  border: none;
  background: none;
  font-size: 10px;
  color: var(--fr-muted);
  cursor: pointer;
  padding: 0 4px;
  letter-spacing: 0.04em;
}

.fr-detail__comment-del:hover {
  color: #c44;
}

.fr-detail__bookmark.is-on {
  color: var(--fr-accent);
}

.fr-detail__scroll {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  padding-bottom: 80px;
}

.fr-detail__post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--fr-muted);
  margin-bottom: 12px;
}

.fr-detail__author-ava {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--fr-pearl) center/cover no-repeat;
  border: 1px solid var(--fr-line);
  flex-shrink: 0;
}

.fr-detail__author-ava--letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--fr-muted);
}

.fr-detail__post-text {
  font-size: 15px;
  line-height: 1.7;
  margin: 12px 0;
}

.fr-detail__location {
  font-size: 12px;
  color: var(--fr-muted);
}

.fr-detail__stats {
  font-size: 12px;
  color: var(--fr-muted);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--fr-line);
}

.fr-detail__img {
  min-height: 160px;
  margin: 12px 0;
  background: var(--fr-ivory) center/cover no-repeat;
  border: 1px solid var(--fr-line);
}

.fr-detail__img--real {
  display: block;
  width: 100%;
  min-height: 0;
  margin: 12px 0;
  border: none;
  background: none;
  overflow: visible;
}

.fr-detail__img--real img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center top;
  border: 1px solid var(--fr-line);
  background: var(--fr-ivory);
}

.fr-detail__img--real.fr-detail__img--lazy {
  min-height: 120px;
  background: var(--fr-ivory);
  border: 1px solid var(--fr-line);
}

.fr-detail__img--real.fr-detail__img--lazy img {
  min-height: 120px;
  object-fit: contain;
}

.fr-detail__img--text {
  min-height: auto;
  padding: 16px;
  font-size: 13px;
  line-height: 1.6;
  background: var(--fr-ivory);
}

.fr-detail__comments h3 {
  margin: 16px 0 12px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fr-muted);
}

.fr-detail__comment {
  padding: 10px 0;
  border-bottom: 1px solid var(--fr-line);
  cursor: pointer;
}

.fr-detail__comment--nested {
  padding: 8px 0 8px 12px;
  margin-top: 4px;
  border-bottom: none;
}

.fr-detail__comment-replies {
  margin-top: 6px;
}

.fr-detail__comment--reply {
  padding: 6px 0;
  border-bottom: none;
  cursor: pointer;
}

.fr-detail__comment--reply .fr-detail__comment-head {
  font-size: 11px;
}

.fr-detail__comment--reply .fr-detail__comment-text {
  font-size: 13px;
  color: var(--fr-ink-soft);
}

.fr-detail__comments-foot {
  margin-top: 4px;
}

.fr-detail__comment-children {
  margin-top: 4px;
}

.fr-detail__more-comments {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 10px 0;
  border: none;
  background: none;
  font-family: var(--fr-ui);
  font-size: 13px;
  color: var(--fr-muted);
  cursor: pointer;
  text-align: center;
  letter-spacing: 0.06em;
}

.fr-detail__more-comments:hover {
  color: var(--fr-ink);
}

.fr-detail__loading-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--fr-muted);
  text-align: center;
}

.fr-detail__loading-spin {
  width: 14px;
  height: 14px;
  border: 2px solid var(--fr-line);
  border-top-color: var(--fr-accent);
  border-radius: 50%;
  animation: fr-spin 0.7s linear infinite;
  flex-shrink: 0;
}


.fr-detail__comment-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  margin-bottom: 4px;
}

.fr-detail__reply {
  margin-left: 8px;
  color: var(--fr-muted);
  font-size: 11px;
}

.fr-detail__comment-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.fr-detail__comment-like {
  font-size: 11px;
  color: var(--fr-muted);
}

.fr-detail__empty {
  color: var(--fr-muted);
  font-size: 13px;
}

.fr-detail__composer {
  display: flex;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--fr-line);
  background: var(--fr-white);
}

.fr-detail__input {
  flex: 1;
  border: 1px solid var(--fr-line);
  padding: 10px 12px;
  font-family: var(--fr-ui);
  font-size: 14px;
  background: var(--fr-cream);
}

.fr-detail__send {
  border: 1px solid var(--fr-ink);
  background: var(--fr-ink);
  color: var(--fr-white);
  -webkit-text-fill-color: var(--fr-white);
  padding: 0 16px;
  font-size: 13px;
  cursor: pointer;
}

/* ── 收藏夹 / 浏览历史 / 发帖历史 ── */
.fr-favorites,
.fr-history,
.fr-myposts {
  position: absolute;
  inset: 0;
  z-index: 545;
  display: flex;
  flex-direction: column;
  background: var(--fr-cream);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.fr-favorites.is-open,
.fr-history.is-open,
.fr-myposts.is-open {
  transform: translateX(0);
}

.fr-favorites[hidden],
.fr-history[hidden],
.fr-myposts[hidden] {
  display: none !important;
}

.fr-favorites__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--fr-line);
  background: var(--fr-mist);
}

.fr-favorites__back {
  border: none;
  background: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--fr-ink);
}

.fr-favorites__title {
  margin: 0;
  font-family: var(--fr-display);
  font-size: 18px;
  font-weight: 400;
}

.fr-favorites__scroll {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.fr-favorites__empty {
  color: var(--fr-muted);
  font-size: 13px;
  text-align: center;
  margin-top: 40px;
}

.fr-favorites__item {
  padding: 14px;
  margin-bottom: 10px;
  background: var(--fr-white);
  border: 1px solid var(--fr-line);
  cursor: pointer;
}

.fr-favorites__item-head {
  font-size: 12px;
  color: var(--fr-muted);
  margin-bottom: 6px;
}

.fr-favorites__item-text {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.5;
}

.fr-favorites__item-meta {
  font-size: 11px;
  color: var(--fr-muted);
}

/* ── 论坛设置 ── */
.fr-settings {
  position: absolute;
  inset: 0;
  z-index: 540;
  display: flex;
  flex-direction: column;
  background: var(--fr-cream);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.fr-settings.is-open {
  transform: translateX(0);
}

.fr-settings[hidden] {
  display: none !important;
}

.fr-settings--sub {
  z-index: 545;
}

.fr-settings__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--fr-line);
  background: var(--fr-mist);
}

.fr-settings__back {
  border: none;
  background: none;
  font-size: 20px;
  color: var(--fr-ink);
  cursor: pointer;
}

.fr-settings__title {
  margin: 0;
  font-family: var(--fr-display);
  font-size: 18px;
  font-weight: 400;
}

.fr-settings__scroll {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  padding-bottom: calc(var(--fr-nav-h) + 16px);
}

.fr-settings__section {
  margin-bottom: 28px;
}

.fr-settings__label {
  margin: 0 0 6px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fr-settings__hint {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--fr-muted);
  line-height: 1.5;
}

.fr-settings__textarea {
  width: 100%;
  min-height: 100px;
  padding: 12px 14px;
  border: 1px solid var(--fr-line);
  background: var(--fr-white);
  font-family: var(--fr-ui);
  font-size: 14px;
  line-height: 1.55;
  resize: vertical;
  box-sizing: border-box;
}

.fr-settings__textarea:focus {
  outline: none;
  border-color: var(--fr-accent);
}

.fr-settings__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--fr-line);
  font-size: 14px;
  cursor: pointer;
}

.fr-settings__check input {
  margin-top: 3px;
}

.fr-settings__wb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--fr-line);
}

.fr-settings__wb-name {
  font-size: 14px;
  flex: 1;
}

.fr-toggle {
  width: 46px;
  height: 26px;
  border-radius: 99px;
  border: 1px solid var(--fr-line-strong);
  background: var(--fr-cream);
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}

.fr-toggle__knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: var(--fr-white);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.fr-toggle.is-on {
  background: var(--fr-accent);
  border-color: var(--fr-accent);
}

.fr-toggle.is-on .fr-toggle__knob {
  transform: translateX(20px);
}

.fr-nicknames__gen-btn {
  width: 100%;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid var(--fr-accent);
  background: var(--fr-accent-soft);
  color: var(--fr-ink);
  font-family: var(--fr-ui);
  font-size: 14px;
  cursor: pointer;
}

.fr-nicknames__row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--fr-line);
}

.fr-nicknames__pick {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.fr-nicknames__name {
  font-size: 14px;
}

.fr-nicknames__input {
  flex: 1;
  min-width: 0;
  max-width: 140px;
  border: 1px solid var(--fr-line);
  padding: 6px 10px;
  font-family: var(--fr-ui);
  font-size: 13px;
  background: var(--fr-cream);
}

.fr-settings__mask-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.fr-settings__mask {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid var(--fr-line);
  background: var(--fr-white);
  color: var(--fr-ink);
  cursor: pointer;
  text-align: left;
}

.fr-settings__mask.is-active {
  border-color: var(--fr-accent);
  background: var(--fr-accent-soft);
}

.fr-settings__mask-name {
  font-size: 14px;
}

.fr-settings__mask-tag {
  font-size: 10px;
  color: var(--fr-muted);
  letter-spacing: 0.06em;
}

.fr-settings__add-btn,
.fr-settings__row-btn {
  width: 100%;
  padding: 14px;
  border: 1px dashed var(--fr-line-strong);
  background: transparent;
  font-family: var(--fr-ui);
  font-size: 14px;
  color: var(--fr-ink);
  cursor: pointer;
  text-align: left;
}

.fr-settings__row-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-style: solid;
  background: var(--fr-white);
}

.fr-settings__section .fr-settings__row-btn + .fr-settings__row-btn {
  margin-top: 8px;
}

.fr-settings__row-arrow {
  color: var(--fr-muted);
}

.fr-settings__empty {
  font-size: 13px;
  color: var(--fr-muted);
  padding: 8px 0;
}

/* ── 角色活跃度 ── */
.fr-activity__group {
  border: 1px solid var(--fr-line);
  margin-bottom: 10px;
  background: var(--fr-white);
}

.fr-activity__summary {
  padding: 14px 16px;
  font-size: 14px;
  cursor: pointer;
  list-style: none;
}

.fr-activity__summary::-webkit-details-marker {
  display: none;
}

.fr-activity__summary span {
  color: var(--fr-muted);
  font-size: 12px;
}

.fr-activity__members {
  border-top: 1px solid var(--fr-line);
  padding: 4px 0;
}

.fr-activity__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--fr-line);
}

.fr-activity__row:last-child {
  border-bottom: none;
}

.fr-activity__name {
  font-size: 14px;
}

.fr-activity__select {
  border: 1px solid var(--fr-line);
  padding: 6px 10px;
  font-family: var(--fr-ui);
  font-size: 13px;
  background: var(--fr-cream);
}

.fr-me-hero__name[data-fr-edit],
.fr-me-hero__bio[data-fr-edit] {
  cursor: pointer;
}

.fr-me-hero__ava {
  background-size: cover;
  background-position: center;
}

/* ── iOS 适配：灵动岛安全区 & 链接色修复 ── */
.fr-settings__head,
.fr-me-board-editor__head,
.fr-favorites__head,
.fr-coll-editor__head {
  padding-top: calc(16px + env(safe-area-inset-top, 0px));
}

html.is-ios .fr-settings__head,
html.is-ios .fr-me-board-editor__head,
html.is-ios .fr-favorites__head,
html.is-ios .fr-coll-editor__head,
html.is-ios .fr-detail__head,
html.is-ios .fr-note-editor__head {
  padding-top: max(52px, calc(28px + env(safe-area-inset-top, 0px)));
}

.miya-forum-app a,
.miya-forum-app a:link,
.miya-forum-app a:visited,
.miya-forum-app a:hover,
.miya-forum-app a:active {
  color: inherit;
  text-decoration: none;
  -webkit-text-fill-color: currentColor;
}

.miya-forum-app {
  -webkit-tap-highlight-color: transparent;
}

.fr-handle,
.fr-at {
  color: inherit;
  -webkit-text-fill-color: currentColor;
  text-decoration: none;
  pointer-events: none;
}

.fr-card__author,
.fr-me-hero__handle,
.fr-detail__post-meta,
.fr-favorites__item-head,
.fr-detail__comment-head strong {
  color: var(--fr-muted);
  -webkit-text-fill-color: var(--fr-muted);
}

.fr-card__author .fr-handle,
.fr-me-hero__handle .fr-handle {
  color: var(--fr-muted);
  -webkit-text-fill-color: var(--fr-muted);
}

html.is-ios .miya-forum-app * {
  -webkit-tap-highlight-color: transparent;
}

html.is-ios .miya-forum-app button,
html.is-ios .miya-forum-app [role="button"] {
  -webkit-text-fill-color: currentColor;
}

html.is-ios .miya-forum-app .fr-me-board-editor__save,
html.is-ios .miya-forum-app .fr-detail__send,
html.is-ios .miya-forum-app .fr-nav__fab,
html.is-ios .miya-forum-app .fr-orbit-bubble.is-active,
html.is-ios .miya-forum-app .fr-card__ribbon,
html.is-ios .miya-forum-app .fr-toast,
html.is-ios .miya-forum-app .fr-me-board-editor__cell-rm,
html.is-ios .miya-forum-app .fr-note-editor__img-remove {
  color: var(--fr-white);
  -webkit-text-fill-color: var(--fr-white);
}

html.is-ios .miya-forum-app .fr-orbit-bubble.is-active em {
  color: var(--fr-accent-soft);
  -webkit-text-fill-color: var(--fr-accent-soft);
}

html.is-ios .miya-forum-app .fr-note-editor__send {
  color: var(--fr-accent);
  -webkit-text-fill-color: var(--fr-accent);
}

html.is-ios .miya-forum-app .fr-nav__fab {
  color: var(--fr-white);
  -webkit-text-fill-color: var(--fr-white);
}

html.is-ios .miya-forum-app .fr-nav__fab svg {
  stroke: var(--fr-white);
}
