:root {
  /* 浅色莫兰迪底 + 温馨暖灰 */
  --bg: #f0ebe4;
  --bg-warm: #ebe4dc;
  --surface: #faf8f5;
  --card: #fffcf8;
  --border: rgba(90, 75, 85, 0.12);
  --text: #3a3640;
  --muted: #7a7380;
  /* 莫兰迪主色：灰粉、豆沙绿、雾蓝、藕紫 */
  --m-rose: #c4a8a4;
  --m-sage: #a3b0a0;
  --m-blue: #8fa8bc;
  --m-mauve: #b5a8c4;
  --m-sand: #d8cfc4;
  --accent: #6d8499;
  --accent-tech: #7a9eb8;
  --accent2: #a8909e;
  --success: #8faa96;
  --warn: #c4a574;
  --danger: #c08088;
  --radius: 16px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-display: var(--font);
  /* 七彩虹（瑰丽主色带，略提高饱和仍适配浅色底） */
  --r-1: #e85a7a;
  --r-2: #f0924a;
  --r-3: #e8c038;
  --r-4: #4ec995;
  --r-5: #38b8e0;
  --r-6: #6b8cff;
  --r-7: #b56bff;
  --rainbow-strip: linear-gradient(
    90deg,
    var(--r-1),
    var(--r-2),
    var(--r-3),
    var(--r-4),
    var(--r-5),
    var(--r-6),
    var(--r-7),
    var(--r-1)
  );
  --strip-accent: var(--rainbow-strip);
  --shadow-soft: 0 4px 24px rgba(58, 54, 64, 0.07);
  --shadow-lift: 0 10px 36px rgba(58, 54, 64, 0.1);
  --shadow-zone: 0 2px 0 rgba(255, 255, 255, 0.9) inset, var(--shadow-lift);
  --glow-rainbow: 0 4px 20px rgba(232, 90, 122, 0.22), 0 4px 28px rgba(56, 184, 224, 0.15), 0 4px 24px rgba(181, 107, 255, 0.12);
  --app-tabbar-h: 58px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-padding-top: calc(4.5rem + env(safe-area-inset-top, 0px));
}

@keyframes strip-flow {
  to {
    background-position: 200% center;
  }
}

@keyframes strip-flow-v {
  to {
    background-position: center 200%;
  }
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  position: relative;
  isolation: isolate;
}

/* 温馨浅色底 + 极淡科技网格 */
body::before {
  content: "";
  position: fixed;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(rgba(110, 132, 155, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 132, 155, 0.045) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 90% 60% at 8% 15%, rgba(232, 90, 122, 0.14) 0%, transparent 50%),
    radial-gradient(ellipse 75% 55% at 92% 20%, rgba(107, 140, 255, 0.13) 0%, transparent 48%),
    radial-gradient(ellipse 70% 50% at 75% 85%, rgba(181, 107, 255, 0.12) 0%, transparent 45%),
    radial-gradient(ellipse 65% 45% at 25% 90%, rgba(78, 201, 149, 0.11) 0%, transparent 42%),
    radial-gradient(ellipse 55% 40% at 50% 50%, rgba(56, 184, 224, 0.08) 0%, transparent 50%),
    linear-gradient(175deg, #faf5ef 0%, var(--bg) 45%, #ebe4dc 100%);
  pointer-events: none;
}

.shell {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0.85rem clamp(0.5rem, 1.5vw, 1.75rem) 3rem;
  box-sizing: border-box;
}

header.site {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem calc(1.2rem + 6px);
  margin-bottom: 1.5rem;
  position: relative;
  border-radius: calc(var(--radius) + 6px);
  border: 3px solid transparent;
  background-image: linear-gradient(180deg, #fffefb, #fff9f5), var(--rainbow-strip);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  background-size: 100% 100%, 400% 100%;
  background-position: 0 0, 0 0;
  box-shadow: var(--shadow-zone), var(--glow-rainbow);
}

header.site::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0.85rem;
  right: 0.85rem;
  height: 5px;
  border-radius: 3px;
  background: var(--strip-accent);
  background-size: 200% 100%;
  animation: strip-flow 12s linear infinite;
  box-shadow: 0 2px 14px rgba(232, 90, 122, 0.35), 0 2px 18px rgba(56, 184, 224, 0.25);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand h1 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: var(--rainbow-strip);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: strip-flow 10s linear infinite;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.85));
}

.brand span {
  font-size: 0.78rem;
  color: var(--muted);
  display: block;
}

.brand-tagline {
  font-size: 0.72rem;
  line-height: 1.4;
  max-width: min(100%, 19rem);
  font-weight: 500;
  color: var(--text);
  opacity: 0.88;
}

.logo {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--rainbow-strip);
  background-size: 200% 200%;
  animation: strip-flow 8s linear infinite;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  box-shadow: var(--glow-rainbow), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.75);
}

.user-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.user-bar input {
  background: var(--surface);
  border: 1px solid rgba(122, 158, 184, 0.28);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  color: var(--text);
  font-size: 0.875rem;
  width: 140px;
  box-shadow: 0 1px 3px rgba(58, 54, 64, 0.04);
}

.user-bar input::placeholder {
  color: var(--muted);
}

.user-bar input.wide {
  width: min(320px, 100%);
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s, filter 0.15s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--rainbow-strip);
  background-size: 220% auto;
  animation: strip-flow 6s linear infinite;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 0 rgba(58, 54, 64, 0.12), 0 6px 22px rgba(232, 90, 122, 0.28), 0 6px 22px rgba(107, 140, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.55);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
  filter: brightness(1.06) saturate(1.05);
  transform: translateY(-1px);
  box-shadow: 0 5px 0 rgba(58, 54, 64, 0.1), 0 10px 28px rgba(181, 107, 255, 0.25), 0 8px 24px rgba(56, 184, 224, 0.2);
}

.btn-ghost {
  border: 2px solid transparent;
  background-image: linear-gradient(var(--card), var(--card)), var(--rainbow-strip);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  background-size: 100% 100%, 260% 100%;
  animation: strip-flow 10s linear infinite;
  color: var(--text);
  box-shadow: 0 2px 10px rgba(58, 54, 64, 0.06);
  font-weight: 600;
}

.btn-ghost:hover {
  background-image: linear-gradient(var(--surface), var(--surface)), var(--rainbow-strip);
  box-shadow: 0 4px 16px rgba(107, 140, 255, 0.14), 0 4px 16px rgba(232, 90, 122, 0.12);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
}

/* 发布者删除自己的梦想 */
.btn-delete-dream {
  border: 2px dashed rgba(192, 128, 136, 0.65) !important;
  color: #a05058 !important;
  font-weight: 600;
}

.btn-delete-dream:hover {
  background: rgba(192, 128, 136, 0.1) !important;
  border-color: var(--danger) !important;
  color: #8a3540 !important;
}

/* 首页：左 | 中瀑布流（尽量宽）| 右 */
.layout-home {
  display: grid;
  grid-template-columns: minmax(220px, 15vw) 1fr minmax(220px, 15vw);
  gap: clamp(0.65rem, 1.2vw, 1.1rem);
  align-items: start;
}

.layout-home > .wall-main {
  position: relative;
  border-radius: calc(var(--radius) + 6px);
  border: 3px solid transparent;
  background-image: linear-gradient(165deg, #fffcf9, #f8fafc 55%, #fff9fb), var(--rainbow-strip);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  background-size: 100% 100%, 350% 100%;
  padding: 1.2rem 1.25rem 1.4rem;
  box-shadow: var(--shadow-zone), 0 0 0 1px rgba(255, 255, 255, 0.65) inset, var(--glow-rainbow);
  min-height: 320px;
  min-width: 0;
}

.panel-lead {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
  margin: -0.35rem 0 0.85rem;
}

.panel-done {
  border-color: rgba(78, 201, 149, 0.38);
  background: linear-gradient(165deg, #f9fdfb 0%, #faf8f5 100%);
}

@media (max-width: 1100px) {
  .layout-home {
    grid-template-columns: 1fr;
  }

  .layout-home .panel.panel-publish-left,
  .layout-home .panel.panel-publish-right {
    max-height: none;
  }

  .layout-home .panel.panel-publish-left .panel-scroll,
  .layout-home .panel.panel-publish-right .panel-scroll {
    flex: none;
    min-height: 0;
    max-height: none;
    overflow: visible;
  }

  .layout-home .panel .panel-sticky-actions {
    position: static;
    margin-top: 0.5rem;
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 0;
    background: transparent;
    border-top: none;
  }
}

.wall-count {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}

.toolbar-row .wall-count {
  flex-shrink: 0;
}

.card-dream-done {
  border-color: rgba(78, 201, 149, 0.45);
  background: linear-gradient(180deg, #f8fdfb 0%, #faf9f6 100%);
}

.card-dream-realized {
  border-color: rgba(107, 140, 255, 0.55);
  background-color: #fffcf9;
  background-image: linear-gradient(
    125deg,
    rgba(255, 252, 249, 0.95) 0%,
    rgba(200, 236, 255, 0.55) 28%,
    rgba(255, 206, 220, 0.55) 52%,
    rgba(220, 210, 255, 0.5) 78%,
    rgba(248, 255, 250, 0.95) 100%
  );
  background-size: 220% 220%;
  animation: card-realized-rainbow-bg 6s ease-in-out infinite;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.85) inset,
    0 0 0 4px rgba(232, 90, 122, 0.35),
    0 0 0 8px rgba(56, 184, 224, 0.22),
    0 0 0 12px rgba(107, 140, 255, 0.16),
    0 10px 40px rgba(181, 107, 255, 0.12);
}

@keyframes card-realized-rainbow-bg {
  0%,
  100% {
    background-position: 0% 40%;
    box-shadow:
      0 0 0 2px rgba(255, 255, 255, 0.85) inset,
      0 0 0 4px rgba(232, 90, 122, 0.42),
      0 0 0 8px rgba(56, 184, 224, 0.28),
      0 0 0 12px rgba(107, 140, 255, 0.2),
      0 12px 44px rgba(78, 201, 149, 0.14);
  }
  50% {
    background-position: 100% 60%;
    box-shadow:
      0 0 0 2px rgba(255, 255, 255, 0.85) inset,
      0 0 0 4px rgba(107, 140, 255, 0.45),
      0 0 0 8px rgba(181, 107, 255, 0.26),
      0 0 0 12px rgba(232, 90, 122, 0.18),
      0 12px 44px rgba(56, 184, 224, 0.16);
  }
}

.dream-done-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0;
  background: linear-gradient(135deg, rgba(78, 201, 149, 0.35), rgba(56, 184, 224, 0.28));
  color: #1e5c40;
  border: 1px solid rgba(56, 184, 224, 0.35);
}

.dream-done-badge--inline {
  margin-bottom: 0;
  vertical-align: middle;
}

.dream-trace-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.45rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  border-radius: 8px;
  border: 1px solid rgba(109, 132, 153, 0.45);
  background: rgba(255, 252, 249, 0.92);
  color: var(--accent-tech);
  text-decoration: none;
  line-height: 1.2;
}

.dream-trace-btn:hover {
  background: rgba(255, 252, 249, 1);
  border-color: var(--accent-tech);
}

.dream-trace-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  border: 1px solid rgba(109, 132, 153, 0.45);
  background: rgba(255, 252, 249, 0.92);
  color: var(--accent-tech);
  text-decoration: none;
  font-size: 1rem;
  line-height: 1;
  vertical-align: middle;
}

.dream-trace-icon:hover {
  border-color: var(--accent-tech);
  background: rgba(255, 252, 249, 1);
}

.modal-done-trace-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
  margin: 0.35rem 0 0.65rem;
  font-size: 0.85rem;
}

.achievement-story {
  margin: 0.65rem 0 0.5rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: rgba(78, 201, 149, 0.08);
  border: 1px dashed rgba(78, 201, 149, 0.35);
  font-size: 0.82rem;
  line-height: 1.55;
}

.achievement-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.achievement-story p {
  margin: 0;
  color: var(--text);
}

.achievement-gallery {
  margin: 0.5rem 0 0.25rem;
}

.achievement-gallery.dream-media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  width: 100%;
  max-width: 100%;
}

.achievement-gallery.dream-media-grid .dream-open-media__thumb {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.achievement-gallery.dream-media-grid .dream-open-media__thumb img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  display: block;
}

.panel {
  position: sticky;
  top: 1rem;
  background: linear-gradient(165deg, #fffdf9 0%, #faf6f1 100%);
  border-radius: calc(var(--radius) + 6px);
  border: 2px solid rgba(232, 90, 122, 0.28);
  padding: 1.3rem 1.3rem 1.4rem calc(1.15rem + 10px);
  box-shadow: var(--shadow-zone), var(--glow-rainbow);
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  background: linear-gradient(180deg, var(--r-1), var(--r-2), var(--r-3), var(--r-4), var(--r-5), var(--r-6), var(--r-7), var(--r-1));
  background-size: 100% 280%;
  animation: strip-flow-v 16s linear infinite;
  border-radius: calc(var(--radius) + 6px) 0 0 calc(var(--radius) + 6px);
  box-shadow: 2px 0 12px rgba(107, 140, 255, 0.2);
  z-index: 0;
}

.panel > * {
  position: relative;
  z-index: 1;
}

.panel h2 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  padding-bottom: 0.65rem;
  border-bottom: 2px dashed rgba(107, 140, 255, 0.28);
  position: relative;
  z-index: 1;
}

.panel h2.panel-side-title {
  margin-bottom: 0.65rem;
}

/* 首页左右发布栏：限高 + 内部滚动，发布条吸底便于随时提交 */
.layout-home .panel.panel-publish-left,
.layout-home .panel.panel-publish-right {
  display: flex;
  flex-direction: column;
  max-height: min(82vh, 720px);
  max-height: min(82dvh, 720px);
  align-self: start;
  min-height: 0;
}

.layout-home .panel.panel-publish-left .panel-scroll,
.layout-home .panel.panel-publish-right .panel-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.35rem;
}

.layout-home .panel .panel-sticky-actions {
  position: sticky;
  bottom: 0;
  margin-top: 0.35rem;
  padding-top: 0.75rem;
  padding-bottom: 0.2rem;
  margin-bottom: -0.1rem;
  background: linear-gradient(
    to top,
    rgba(255, 253, 249, 0.97) 65%,
    rgba(255, 253, 249, 0)
  );
  border-top: 1px solid rgba(232, 90, 122, 0.14);
  z-index: 2;
}

.layout-home .panel.panel-done .panel-sticky-actions {
  background: linear-gradient(
    to top,
    rgba(249, 253, 251, 0.97) 65%,
    rgba(249, 253, 251, 0)
  );
  border-top-color: rgba(78, 201, 149, 0.22);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.65rem 0.9rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
}

.form-group textarea {
  min-height: 88px;
  resize: vertical;
}

.reward-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.reward-row--split {
  flex-direction: column;
  align-items: stretch;
}

.reward-row--split .reward-row__main {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.reward-row--split .reward-row__none {
  display: flex;
  justify-content: center;
}

.reward-row label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  text-transform: none;
  letter-spacing: 0;
  background: var(--surface);
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.reward-row input {
  width: auto;
  accent-color: var(--r-6);
}

.hint {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

#authModalBody .auth-reg-intro {
  margin-top: 0;
  margin-bottom: 0.85rem;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--muted);
}

.toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding: 1.35rem 1.1rem 1.05rem;
  border-radius: 16px;
  border: 2px solid transparent;
  background-image: linear-gradient(135deg, rgba(255, 252, 248, 0.98), rgba(240, 245, 252, 0.95)), var(--rainbow-strip);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  background-size: 100% 100%, 280% 100%;
  box-shadow: 0 4px 18px rgba(58, 54, 64, 0.07), 0 0 20px rgba(107, 140, 255, 0.06);
  position: relative;
}

.toolbar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0.75rem;
  right: 0.75rem;
  height: 5px;
  z-index: 0;
  border-radius: 0 0 6px 6px;
  background: var(--rainbow-strip);
  background-size: 200% 100%;
  animation: strip-flow 12s linear infinite;
  box-shadow: 0 3px 12px rgba(232, 90, 122, 0.25);
}

.toolbar > * {
  position: relative;
  z-index: 1;
}

.toolbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.toolbar p {
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 520px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.filters input[type="search"] {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  color: var(--text);
  font-size: 0.85rem;
  min-width: 160px;
  flex: 1 1 140px;
  max-width: 240px;
}

.filters select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  color: var(--text);
  font-size: 0.8rem;
  font-family: inherit;
}

.pager {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pager span {
  font-size: 0.8rem;
  color: var(--muted);
}

.data-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border);
}

/* Waterfall：大屏多列，充分利用全屏宽度 */
.masonry {
  column-count: 4;
  column-gap: 1rem;
}

@media (max-width: 1600px) {
  .masonry {
    column-count: 3;
  }
}

@media (max-width: 1100px) {
  .masonry {
    column-count: 2;
  }
}

@media (max-width: 560px) {
  .masonry {
    column-count: 1;
  }
}

.card-video-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0.75rem;
  aspect-ratio: 16 / 9;
  background: linear-gradient(145deg, #e8e4df 0%, #dcd6ce 100%);
  border: 2px solid rgba(107, 140, 255, 0.25);
}

.card-video-wrap iframe,
.card-video-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.card-video-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(232, 90, 122, 0.92), rgba(107, 140, 255, 0.88));
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  box-shadow: 0 2px 10px rgba(58, 54, 64, 0.15);
}

.modal-video-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin-bottom: 1rem;
  background: #e8e4df;
}

.modal-video-wrap iframe,
.modal-video-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.card-dream {
  break-inside: avoid;
  margin-bottom: 1rem;
  background: linear-gradient(180deg, #fffcf9 0%, #faf7f3 100%);
  border: 2px solid rgba(181, 168, 196, 0.4);
  border-radius: var(--radius);
  padding: 1.15rem 1.1rem 1.15rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.card-dream:hover {
  box-shadow: var(--shadow-lift), 0 0 24px rgba(56, 184, 224, 0.08);
  border-color: rgba(107, 140, 255, 0.35);
}

.card-dream.highlight {
  box-shadow:
    0 0 0 3px rgba(107, 140, 255, 0.45),
    0 0 0 6px rgba(232, 90, 122, 0.12),
    var(--shadow-lift);
}

.card-dream::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--rainbow-strip);
  background-size: 200% 100%;
  animation: strip-flow 10s linear infinite;
  box-shadow: 0 2px 10px rgba(181, 107, 255, 0.25);
}

.match-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(78, 201, 149, 0.35), rgba(56, 184, 224, 0.3));
  color: #2a5c48;
  border: 2px solid rgba(56, 184, 224, 0.4);
  box-shadow: 0 2px 8px rgba(78, 201, 149, 0.25);
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  padding-right: 4rem;
}

.author {
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--rainbow-strip);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: strip-flow 12s linear infinite;
}

.author.bl {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: var(--danger);
  animation: none;
}

.reward-tag {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: rgba(216, 207, 196, 0.45);
  color: var(--muted);
  border: 1px solid rgba(181, 168, 196, 0.25);
}

.reward-tag.paid {
  color: #8a7349;
  background: rgba(196, 165, 116, 0.22);
  border-color: rgba(196, 165, 116, 0.35);
}

.reward-tag.swap {
  color: #6d5a72;
  background: rgba(181, 168, 196, 0.28);
  border-color: rgba(181, 168, 196, 0.4);
}

.reward-tag.free {
  color: #4d6352;
  background: rgba(163, 176, 160, 0.35);
  border-color: rgba(143, 170, 150, 0.35);
}

.reward-tag.none {
  color: #5c6470;
  background: rgba(232, 234, 238, 0.75);
  border-color: rgba(120, 130, 145, 0.35);
}

.card-time-limit {
  margin: 0.15rem 0 0.4rem;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}

.modal-dream-detail__timelimit {
  margin: 0.25rem 0 0.5rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

.modal-dream-detail__timelimit-k {
  display: inline-block;
  margin-right: 0.35rem;
  font-weight: 700;
  color: var(--text);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  line-height: 1.3;
}

.card-desc {
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 0.65rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.tag {
  font-size: 0.68rem;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: rgba(181, 168, 196, 0.22);
  color: #5d5568;
  border: 1px solid rgba(181, 168, 196, 0.35);
}

.tag.hit {
  background: rgba(163, 176, 160, 0.38);
  color: #3d4a40;
  border-color: rgba(143, 170, 150, 0.5);
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

/* 梦想卡片底部：仅图标操作栏 */
.card-dream-come-true-mark {
  flex-shrink: 0;
  text-align: center;
  font-size: clamp(1.85rem, 6.5vw, 2.85rem);
  font-weight: 900;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  line-height: 1;
  margin: 0.15rem 0 0.05rem;
  color: rgba(58, 54, 64, 0.065);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
  pointer-events: none;
  user-select: none;
}

.card-dream-realized .card-dream-come-true-mark {
  color: rgba(90, 75, 95, 0.09);
}

.card-dream:has(.card-dream-come-true-mark) .dream-actions-host {
  margin-top: 0.35rem;
  padding-top: 0.45rem;
}

.dream-actions-host {
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(90, 75, 85, 0.1);
}

.dream-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: space-between;
  gap: 0.2rem;
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.dream-action-slot {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.dream-action-slot--grow {
  flex: 1.15;
}

.dream-action-slot--spacer {
  visibility: hidden;
  pointer-events: none;
}

.dream-action-cell {
  flex: 1 1 auto;
  min-height: 3.45rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0.34rem 0.22rem 0.26rem;
  border-radius: 12px;
  background: rgba(110, 132, 155, 0.1);
  border: 1px solid rgba(122, 158, 184, 0.24);
  box-sizing: border-box;
}

/** 瀑布流梦想卡底栏：仅保留图标与数字，不要灰底外框（弹窗内详情底栏仍用上面默认样式） */
.masonry .dream-actions-host .dream-action-cell {
  background: transparent;
  border: none;
  box-shadow: none;
}

.masonry .dream-actions-host .dream-action-cell:has(.dream-action-btn.is-on),
.masonry .dream-actions-host .dream-action-cell:has(.dream-action-btn[data-a='like'].is-on),
.masonry .dream-actions-host .dream-action-cell:has(.dream-action-btn--claim),
.masonry .dream-actions-host .dream-action-cell:has(.dream-action-btn--del) {
  background: transparent;
  border: none;
}

.dream-action-cell--spacer {
  visibility: hidden;
  pointer-events: none;
  background: transparent !important;
  border-color: transparent !important;
}

.dream-action-cell--block {
  padding: 0.34rem 0.2rem 0.26rem;
}

.dream-action-cell--celebrate {
  background: transparent;
  border-color: transparent;
}

/** 梦想成真结案格：与左侧点赞等格同高同内边距 */
.dream-action-cell--block.dream-action-cell--celebrate {
  justify-content: center;
  align-items: stretch;
  min-height: 3.45rem;
  padding: 0.34rem 0.18rem 0.26rem;
  box-sizing: border-box;
}

.dream-action-cell--block.dream-action-cell--celebrate .dream-come-true-slot {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.dream-action-btn {
  flex: 1 1 auto;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.12rem;
  font: inherit;
  min-height: 0;
  transition: color 0.15s, transform 0.12s;
}

.dream-action-btn:active {
  transform: scale(0.96);
}

.dream-action-glyph {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 1.42rem;
  color: inherit;
}

.dream-action-svg {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
  flex-shrink: 0;
}

.dream-action-btn.is-on .dream-action-svg__heart {
  fill: currentColor;
  stroke: currentColor;
}

.dream-action-btn.is-on .dream-action-svg__star {
  fill: currentColor;
  stroke: none;
}

.dream-action-num {
  font-size: 0.62rem;
  line-height: 1;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  min-height: 0.72rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dream-action-num--empty {
  visibility: hidden;
}

.dream-action-cell:has(.dream-action-btn.is-on) {
  background: rgba(232, 90, 122, 0.12);
  border-color: rgba(232, 90, 122, 0.28);
}

.dream-action-cell:has(.dream-action-btn[data-a='like'].is-on) {
  background: rgba(255, 193, 120, 0.3);
  border-color: rgba(255, 180, 90, 0.45);
}

.dream-action-btn[data-a='like'].is-on {
  color: #7a5210;
}

.dream-action-btn.is-on {
  color: #a84858;
}

.dream-action-btn--claim .dream-action-glyph {
  color: #2d6b52;
}

.dream-action-cell:has(.dream-action-btn--claim) {
  background: rgba(78, 201, 149, 0.16);
  border-color: rgba(78, 201, 149, 0.35);
}

.dream-action-btn--unclaim .dream-action-glyph {
  color: #6a5a4a;
}

.dream-action-btn--del .dream-action-glyph {
  color: #8b3a45;
}

.dream-action-cell:has(.dream-action-btn--del) {
  background: rgba(232, 90, 122, 0.08);
  border-color: rgba(232, 90, 122, 0.22);
}

.dream-action-btn--dream-real {
  color: #2d6b52;
  min-width: 0;
  white-space: normal;
}

.dream-action-btn--dream-real .dream-action-real__t1,
.dream-action-btn--dream-real .dream-action-real__t2 {
  display: block;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0.04em;
}

.dream-action-btn--dream-real .dream-action-real__t1 {
  font-size: 0.68rem;
}

.dream-action-cell--block .dream-come-true-slot {
  width: 100%;
  margin: 0 auto;
}

.dream-action-pending-realize {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 1.85rem;
  padding: 0.2rem;
  color: var(--muted);
}

.dream-action-pending-realize .dream-action-svg {
  opacity: 0.9;
}

.dream-action-btn.is-disabled,
.dream-action-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.35);
}

/** 梦想完成：工具栏原「领取」位 — 彩虹醒目、上下两行 */
@keyframes dream-come-true-rainbow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.dream-come-true-slot {
  width: 100%;
  box-sizing: border-box;
  flex: 0 0 auto;
  min-width: 0;
  margin: 0;
  padding: 0.28rem 0.2rem 0.32rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.02rem;
  line-height: 1.05;
  user-select: none;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 0 0 1px rgba(255, 107, 157, 0.25),
    0 2px 14px rgba(110, 201, 255, 0.35),
    0 4px 18px rgba(181, 107, 255, 0.22);
  background: linear-gradient(
    110deg,
    #ff6b9d,
    #ffc857,
    #7af2b8,
    #5ec9ff,
    #b388ff,
    #ff8fab,
    #ff6b9d
  );
  background-size: 220% 220%;
  animation: dream-come-true-rainbow 3.2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .dream-come-true-slot {
    animation: none;
    background-size: 100% 100%;
  }
}

.dream-come-true-slot__line1,
.dream-come-true-slot__line2 {
  display: block;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  color: #fff;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.35),
    0 0 12px rgba(255, 255, 255, 0.45);
}

.dream-come-true-slot__line1 {
  font-size: 0.7rem;
}

.dream-come-true-slot__line2 {
  font-size: 0.62rem;
  opacity: 0.98;
}

/** 梦想卡片：发布者进展时间线 */
.dream-progress-block {
  margin: 0.45rem 0 0.55rem;
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(122, 158, 184, 0.2);
}

.dream-progress-list {
  list-style: none;
  margin: 0 0 0.5rem;
  padding: 0;
}

.dream-progress-item + .dream-progress-item {
  margin-top: 0.45rem;
  padding-top: 0.45rem;
  border-top: 1px dashed rgba(90, 75, 85, 0.12);
}

.dream-progress-time {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.dream-progress-text {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #2d2830;
  white-space: pre-wrap;
  word-break: break-word;
}

.card-dream-progress-slot {
  flex-shrink: 0;
  margin: 0 0 0.4rem;
  padding: 0 0.05rem;
}

.card-dream-progress-slot .dream-progress-block {
  margin-top: 0;
}

.dream-progress-editor {
  margin-top: 0.35rem;
}

.dream-progress-input {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 0.4rem;
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  border: 1px solid rgba(122, 158, 184, 0.35);
  font: inherit;
  font-size: 0.84rem;
  resize: vertical;
  min-height: 2.6rem;
  background: rgba(255, 255, 255, 0.75);
}

.dream-progress-photo-pick {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.45rem;
  max-width: 100%;
}

.dream-progress-photo-pick__lbl {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(122, 158, 184, 0.35);
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  user-select: none;
}

.dream-progress-photo-pick .dream-progress-file {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  font-size: 0;
}

.dream-progress-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: stretch;
}

.dream-progress-actions-row .dream-progress-submit {
  flex: 1;
  min-width: 0;
}

.dream-progress-actions-row .dream-progress-submit.dream-progress-submit--narrow {
  flex: 0 0 48%;
  max-width: 50%;
  padding-left: 0.55rem;
  padding-right: 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.dream-progress-actions-row .dream-progress-realize {
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid rgba(78, 201, 149, 0.45);
  color: #2d6b52;
  font-weight: 700;
}

.dream-progress-actions-row .dream-progress-realize-request {
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid rgba(122, 158, 184, 0.45);
  color: #2d4a5c;
  font-weight: 700;
}

.dream-progress-pending-note {
  flex: 1 1 100%;
  font-size: 0.76rem;
  color: var(--muted);
  text-align: center;
  padding: 0.2rem 0;
}

.dream-pending-realize-hint {
  font-size: 0.78rem;
  font-weight: 600;
  color: #b45309;
}

.dream-progress-img-wrap {
  margin-top: 0.35rem;
  max-width: 100%;
}

.dream-progress-img-wrap.dream-open-media {
  margin-top: 0.35rem;
  margin-bottom: 0;
}

.dream-progress-img-wrap .dream-open-media__grid {
  max-width: 220px;
}

.me-list--taken {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.me-taken-card {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 252, 249, 0.75);
}

.me-taken-main {
  flex: 1;
  min-width: 0;
  text-align: left;
  border: none;
  background: transparent;
  font: inherit;
  cursor: pointer;
  padding: 0;
}

.me-taken-main h3 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
}

.me-taken-main p {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  color: var(--muted);
}

/** 进行中梦想：发布时附带的图片与外链 */
.dream-open-media {
  margin: 0.45rem 0 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  align-items: stretch;
}

.dream-media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  width: 100%;
  max-width: 100%;
}

.dream-media-grid--solo {
  grid-template-columns: 1fr;
  max-width: 220px;
}

.dream-open-media__grid .dream-open-media__thumb {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(122, 158, 184, 0.28);
  box-shadow: 0 2px 10px rgba(58, 54, 64, 0.06);
}

.dream-open-media__grid .dream-open-media__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}

.dream-open-media__thumb {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  max-width: 100%;
  border: 1px solid rgba(122, 158, 184, 0.28);
  box-shadow: 0 2px 10px rgba(58, 54, 64, 0.06);
}

.dream-open-media__thumb img {
  display: block;
  max-width: 100%;
  max-height: 220px;
  width: auto;
  height: auto;
  object-fit: contain;
}

button.dream-open-media__thumb {
  padding: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
  font: inherit;
  text-align: left;
}

button.dream-open-media__thumb:focus-visible {
  outline: 2px solid rgba(56, 184, 224, 0.65);
  outline-offset: 2px;
}

.dream-open-media__video {
  width: 100%;
  min-width: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(122, 158, 184, 0.28);
  background: #000;
}

.dream-open-media__video iframe,
.dream-open-media__video video {
  display: block;
  width: 100%;
  min-height: 180px;
  max-height: 260px;
  border: none;
}

.dream-open-media__link {
  display: inline-block;
  max-width: 100%;
  padding: 0.35rem 0.55rem;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  word-break: break-all;
  color: var(--accent2, #2a7ab8);
  background: rgba(110, 132, 155, 0.1);
  text-decoration: none;
}

.dream-open-media__link:hover {
  text-decoration: underline;
}

/** 「我」页：编辑 / 退出图标按钮 */
.me-profile-icon-tools {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

.me-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  min-width: 1.5rem;
  min-height: 1.5rem;
  padding: 0;
  border: none;
  border-radius: 9px;
  background: rgba(110, 132, 155, 0.1);
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, transform 0.12s;
  flex-shrink: 0;
  box-sizing: border-box;
}

.me-icon-btn:hover {
  background: rgba(110, 132, 155, 0.2);
}

.me-icon-btn:active {
  transform: scale(0.96);
}

.me-icon-btn svg {
  display: block;
}

.me-icon-btn--logout {
  color: #8b3a45;
  background: rgba(232, 90, 122, 0.12);
}

.me-icon-btn--logout:hover {
  background: rgba(232, 90, 122, 0.22);
}

/** 配图全屏预览（整图 + 滚轮/按钮缩放，可拖动滚动查看） */
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
  flex-direction: column;
  align-items: stretch;
  justify-content: stretch;
  padding: max(0.75rem, env(safe-area-inset-top)) max(0.75rem, env(safe-area-inset-right))
    max(0.75rem, env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
  box-sizing: border-box;
}

.image-lightbox.open {
  display: flex;
}

.image-lightbox__inner {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.35rem;
}

.image-lightbox__tools {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  justify-content: center;
  padding: 0.1rem 0 0.15rem;
}

.image-lightbox__tool {
  min-width: 2.35rem;
  padding: 0.32rem 0.55rem;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.image-lightbox__tool:hover {
  background: rgba(255, 255, 255, 0.24);
}

.image-lightbox__tool:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 2px;
}

.image-lightbox__hint {
  flex: 0 0 100%;
  margin: 0;
  text-align: center;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.55);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.image-lightbox__stage {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  touch-action: pan-x pan-y pinch-zoom;
}

.image-lightbox__stage.is-grabbing {
  cursor: grabbing;
}

.image-lightbox__zoomwrap {
  display: inline-block;
  line-height: 0;
  transform-origin: center center;
  transition: transform 0.07s ease-out;
  margin: auto;
}

.image-lightbox__counter {
  flex: 0 0 auto;
  margin: 0;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

@media (max-width: 900px) {
  .image-lightbox__hint {
    display: none;
  }
}

.image-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.4rem;
  height: 3.2rem;
  border: none;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.image-lightbox__nav--prev {
  left: max(0.35rem, env(safe-area-inset-left));
}

.image-lightbox__nav--next {
  right: max(0.35rem, env(safe-area-inset-right));
}

.image-lightbox__nav[hidden] {
  display: none !important;
}

.image-lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  margin: 0;
  background: rgba(8, 8, 12, 0.88);
  cursor: zoom-out;
}

.image-lightbox__close {
  position: absolute;
  top: max(0.5rem, env(safe-area-inset-top));
  right: max(0.5rem, env(safe-area-inset-right));
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.image-lightbox__img {
  position: relative;
  z-index: 1;
  display: block;
  max-width: min(96vw, 1680px);
  max-height: min(78vh, 1200px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(58, 54, 64, 0.35);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* 分享弹层：复制链接（微信等）、微博/QQ 官方分享页、可选系统分享 */
.share-sheet {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0.5rem;
  padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

.share-sheet.open {
  pointer-events: auto;
  opacity: 1;
}

.share-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(58, 54, 64, 0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.share-sheet__panel {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: min(85vh, 520px);
  overflow-y: auto;
  border-radius: 20px 20px 16px 16px;
  padding: 1rem 1.1rem 1.1rem;
  margin-bottom: 0.15rem;
  background: linear-gradient(180deg, #fffcf9, #faf7f3);
  border: 2px solid rgba(122, 158, 184, 0.28);
  box-shadow: var(--shadow-lift);
}

.share-sheet__title {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.share-sheet__wechat-hint {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
  margin: 0 0 0.65rem;
}

.share-sheet__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.share-sheet__input {
  width: 100%;
  font-size: 0.8rem;
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  border: 1px solid rgba(122, 158, 184, 0.35);
  background: var(--surface);
  color: var(--text);
  margin-bottom: 0.65rem;
  box-sizing: border-box;
}

.share-sheet__sub {
  font-size: 0.72rem;
  color: var(--muted);
  margin: 0.5rem 0 0.35rem;
}

.share-sheet__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.share-sheet__row--links {
  margin-bottom: 0.35rem;
}

.share-sheet__row--links .btn {
  flex: 1 1 auto;
  justify-content: center;
  text-align: center;
}

.share-sheet__native {
  width: 100%;
  margin-top: 0.35rem;
}

.share-sheet__close {
  width: 100%;
  margin-top: 0.55rem;
}

.modal {
  border-radius: 22px;
  border: 3px solid transparent;
  background-image: linear-gradient(180deg, #fffcf9, #faf7f3), var(--rainbow-strip);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  background-size: 100% 100%, 280% 100%;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lift), var(--glow-rainbow);
}

.modal header {
  padding: 1rem 1.25rem;
  border-bottom: 2px solid rgba(107, 140, 255, 0.2);
  font-family: var(--font-display);
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  background: linear-gradient(90deg, rgba(255, 252, 249, 0.98), rgba(248, 250, 255, 0.95));
}

.modal header > span:first-of-type,
.modal header #authModalTitle,
.modal header #modalTitle {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 1rem;
  line-height: 1.35;
}

.btn-icon-header {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 999px;
  background: rgba(122, 158, 184, 0.14);
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
  transition:
    background 0.15s ease,
    transform 0.1s ease;
}

.btn-icon-header:hover {
  background: rgba(122, 158, 184, 0.26);
}

.btn-icon-header:active {
  transform: scale(0.94);
}

.share-sheet__close.btn-icon-header {
  margin-top: 0.75rem;
  align-self: flex-end;
}

/* 全站顶栏：仅网页端（≥901px）显示；手机端隐藏，主导航与登录走底部 Tab、「我」页等 */
.site-app-topbar {
  position: sticky;
  top: 0;
  z-index: 220;
  background: linear-gradient(180deg, rgba(255, 252, 249, 0.97), rgba(250, 248, 245, 0.95));
  border-bottom: 1px solid rgba(122, 158, 184, 0.28);
  box-shadow: 0 4px 18px rgba(58, 54, 64, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-top-banners.site-top-banners--topbar {
  margin: 0 auto 0.2rem;
  padding: 0.35rem 0.85rem 0;
  max-width: 1180px;
}

.site-top-banners.site-top-banners--topbar:empty {
  display: none;
  margin: 0;
  padding: 0;
}

.site-app-topbar__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem 0.85rem;
  padding: 0.42rem 0.85rem 0.52rem;
  max-width: 1180px;
  margin: 0 auto;
  min-width: 0;
}

.site-app-topbar__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.site-app-topbar__link {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.34rem 0.72rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  border: 1px solid transparent;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

.site-app-topbar__link:hover {
  color: var(--text);
  background: rgba(122, 158, 184, 0.12);
}

.site-app-topbar__link.is-active {
  color: var(--text);
  background: rgba(232, 90, 122, 0.12);
  border-color: rgba(232, 90, 122, 0.3);
}

.site-app-topbar__profile {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: flex-end;
}

.site-app-topbar__auth {
  flex-shrink: 0;
}

.site-app-topbar__auth--about {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  justify-content: flex-end;
}

.shell--about-page {
  padding-top: 0.25rem;
}

@media (max-width: 900px) {
  /* 梦想墙首页顶栏隐藏（主导航走底部 Tab）；「关于本站」等页使用 .site-app-topbar--show-mobile 保留顶栏 */
  .site-app-topbar:not(.site-app-topbar--show-mobile) {
    display: none !important;
  }
}

.me-profile-edit-modal {
  max-width: min(100%, 26rem);
}

/**
 * 「我」页全屏弹窗：用 body.page-me（见 me.html），避免依赖 :has（部分 WebView 无效）。
 * 盖过桌面 @media 里 .modal .body .msg-list 的 max-height。
 */
body.page-me #modalRoot.open {
  padding: 0;
  align-items: stretch;
  justify-content: stretch;
}

body.page-me #modalRoot.open #modalBox {
  max-width: none !important;
  width: 100%;
  height: 100%;
  max-height: none !important;
  min-height: 100vh;
  min-height: 100dvh;
  border-radius: 0;
  border-width: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.page-me #modalRoot.open .modal header {
  flex-shrink: 0;
}

body.page-me #modalRoot.open .modal .body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 0.75rem max(0.75rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom))
    max(0.75rem, env(safe-area-inset-left));
}

body.page-me #modalRoot.open .modal .body .msg-list {
  max-height: none !important;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

body.page-me #meProfileEditBackdrop.open {
  padding: 0;
  align-items: stretch;
  justify-content: stretch;
}

body.page-me #meProfileEditBackdrop.open .me-profile-edit-modal {
  max-width: none !important;
  width: 100%;
  height: 100%;
  max-height: none !important;
  min-height: 100vh;
  min-height: 100dvh;
  border-radius: 0;
  border-width: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.page-me #meProfileEditBackdrop.open .me-profile-edit-modal header {
  flex-shrink: 0;
}

body.page-me #meProfileEditBackdrop.open .me-profile-edit-modal .body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal .body {
  padding: 1.25rem;
  overflow-y: auto;
}

/** 梦想详情：全屏沉浸式（无弹窗顶栏与多余导航） */
#modalRoot[data-modal-tab='detail'].open {
  padding: 0;
  align-items: stretch;
  justify-content: stretch;
}

#modalRoot[data-modal-tab='detail'].open #modalBox {
  max-width: none;
  width: 100%;
  height: 100%;
  max-height: none;
  min-height: 100vh;
  min-height: 100dvh;
  border-radius: 0;
  border-width: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#modalRoot[data-modal-tab='detail'] .modal header {
  display: none;
}

#modalRoot[data-modal-tab='detail'] .modal .body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: max(0.5rem, env(safe-area-inset-top)) max(0.75rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom))
    max(0.75rem, env(safe-area-inset-left));
}

.dream-detail-fullscreen-close {
  position: fixed;
  z-index: 130;
  top: max(0.4rem, env(safe-area-inset-top, 0px));
  right: max(0.4rem, env(safe-area-inset-right, 0px));
  box-shadow: 0 2px 14px rgba(58, 54, 64, 0.12);
}

#modalRoot[data-modal-tab='detail'] .modal-dream-detail {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.dream-actions-host--modal-detail {
  margin-top: 0.55rem;
  padding-top: 0.5rem;
}

.modal-dream-detail-comments {
  margin-top: 0.85rem;
  padding-top: 0.65rem;
  border-top: 1px dashed rgba(122, 158, 184, 0.28);
}

.modal-dream-detail-comments__title {
  margin: 0 0 0.45rem;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text);
}

.dream-comments-thread--modal-detail-readonly {
  max-height: none;
  overflow: visible;
  margin-bottom: 0.5rem;
}

.msg-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-height: 220px;
  overflow-y: auto;
  margin-bottom: 0.75rem;
}

.bubble {
  font-size: 0.85rem;
  padding: 0.5rem 0.75rem;
  border-radius: 12px;
  max-width: 90%;
}

.bubble.me {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(143, 168, 188, 0.28), rgba(181, 168, 196, 0.22));
  margin-left: auto;
  border: 1px solid rgba(122, 158, 184, 0.3);
}

.bubble.them {
  align-self: flex-start;
  background: var(--surface);
}

.bubble small {
  display: block;
  font-size: 0.65rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.comment-item {
  font-size: 0.82rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.comment-item:last-child {
  border-bottom: none;
}

.modal-comments-heading {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text);
  margin: 0.5rem 0 0.4rem;
}

#modalCommentsMount {
  margin-bottom: 0.5rem;
}

.dream-comments-thread {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-height: min(40vh, 320px);
  overflow-y: auto;
  margin-bottom: 0.75rem;
  padding-right: 0.2rem;
}

.dream-comment-row {
  padding: 0.5rem 0.6rem;
  border-radius: 12px;
  background: rgba(255, 252, 249, 0.9);
  border: 1px solid rgba(122, 158, 184, 0.2);
}

.dream-comment-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.6rem;
  margin-bottom: 0.25rem;
  font-size: 0.8rem;
}

.dream-comment-time {
  font-size: 0.65rem;
  color: var(--muted);
  font-weight: 500;
}

.dream-comment-text {
  font-size: 0.84rem;
  line-height: 1.45;
  margin: 0 0 0.4rem;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}

.dream-comment-like {
  font-size: 0.72rem;
}

.dream-comment-like.is-on {
  color: var(--accent-tech);
  font-weight: 700;
  border-color: rgba(122, 158, 184, 0.45);
  background: rgba(122, 158, 184, 0.12);
}

.dream-comment-compose {
  padding-top: 0.35rem;
  border-top: 1px dashed rgba(122, 158, 184, 0.22);
}

.modal-comment-action-bar {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.4rem;
  padding-top: 0.45rem;
  border-top: 1px dashed rgba(122, 158, 184, 0.22);
}

.modal-comment-action-bar__spacer {
  flex: 1 1 auto;
  min-width: 0.25rem;
}

.modal-icon-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(122, 158, 184, 0.35);
  background: rgba(255, 252, 249, 0.85);
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
  transition:
    background 0.15s ease,
    transform 0.1s ease,
    border-color 0.15s ease;
}

.modal-icon-btn:hover {
  background: rgba(255, 252, 249, 0.98);
  border-color: rgba(122, 158, 184, 0.5);
}

.modal-icon-btn:active {
  transform: scale(0.95);
}

.modal-icon-btn--primary {
  border-color: rgba(109, 132, 153, 0.45);
  background: linear-gradient(165deg, rgba(122, 158, 184, 0.22), rgba(181, 107, 255, 0.12));
  font-size: 1.15rem;
}

.modal-icon-btn--danger {
  border-color: rgba(192, 128, 136, 0.4);
  color: var(--danger);
  background: rgba(255, 248, 248, 0.9);
}

.dream-comments-empty {
  margin: 0 0 0.75rem;
}

.empty-state {
  text-align: center;
  padding: 2.5rem 1rem 3rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.empty-state__inner {
  max-width: 22rem;
  margin: 0 auto;
}

.empty-state__glyph {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.65rem;
  opacity: 0.45;
  filter: grayscale(0.2);
}

.empty-state__title {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--text);
}

.empty-state__hint {
  margin: 0 0 1.1rem;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--muted);
}

.empty-state__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
}

.empty-state__btn {
  min-width: 6.5rem;
}

.empty-state--error .empty-state__msg {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--danger);
  max-width: 26rem;
  margin-inline: auto;
}

.blacklist-panel {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border);
  font-size: 0.78rem;
  color: var(--muted);
}

.blacklist-panel ul {
  margin-top: 0.5rem;
  padding-left: 0;
  list-style: none;
}

.blacklist-panel li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.25rem 0;
  border-bottom: 1px solid var(--border);
}

.blacklist-panel li button {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0.2rem;
}

.blacklist-panel li button:hover {
  color: var(--danger);
}

.toast-host {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: min(360px, calc(100vw - 2rem));
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.88rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  animation: toast-in 0.25s ease;
}

.toast.info {
  background: var(--card);
  color: var(--text);
  box-shadow: var(--shadow-lift);
}

.toast.ok {
  background: rgba(163, 176, 160, 0.35);
  color: #3d4a40;
  border-color: rgba(143, 170, 150, 0.45);
}

.toast.err {
  background: rgba(192, 128, 136, 0.2);
  color: #6a3d42;
  border-color: rgba(192, 128, 136, 0.4);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hidden-input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

/* —— 全站导航 —— */
.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

.header-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  justify-content: flex-end;
  flex-shrink: 0;
  min-width: 0;
}

.header-row--home {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(0, auto);
  align-items: center;
  gap: 0.65rem 1rem;
  width: 100%;
}

/* 全时可见粘性顶区：公告 + 主导航一行 */
.app-sticky-head {
  position: sticky;
  top: 0;
  z-index: 160;
  margin: 0 0 0.85rem;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(250, 248, 245, 0.94);
  backdrop-filter: saturate(1.15) blur(12px);
  -webkit-backdrop-filter: saturate(1.15) blur(12px);
  border-radius: 0 0 calc(var(--radius) + 4px) calc(var(--radius) + 4px);
  border: 1px solid rgba(122, 158, 184, 0.22);
  border-top: none;
  box-shadow: 0 6px 24px rgba(58, 54, 64, 0.07);
}

.app-sticky-head--simple {
  margin-bottom: 1rem;
}

.site-top-banners--sticky {
  padding: 0.35rem 0.5rem 0;
}

.site-top-banners--sticky:empty {
  display: none;
}

.app-sticky-head .site.site-header--sticky-bar {
  margin-bottom: 0;
  padding: 0.5rem 0.65rem 0.55rem;
  border: none;
  background: transparent;
  box-shadow: none;
}

.app-sticky-head .site.site-header--sticky-bar::after {
  display: none;
}

.header-app-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  width: 100%;
}

.header-app-strip--about {
  justify-content: space-between;
}

.site-nav--header {
  flex: 1 1 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.header-user-cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
  flex: 0 1 auto;
  margin-left: auto;
}

.header-auth-inline {
  display: flex;
  align-items: center;
}

.header-about-link {
  font-size: 0.74rem;
  color: var(--muted);
  text-decoration: none;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(122, 158, 184, 0.22);
  background: rgba(255, 255, 255, 0.55);
}

.header-about-link:hover {
  color: var(--text);
  border-color: rgba(122, 158, 184, 0.4);
}

.auth-cluster--inline {
  border-left: none;
  margin: 0;
  padding: 0;
  gap: 0.35rem;
}

.brand--compact {
  gap: 0.55rem;
}

.brand--compact .logo {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-size: 1.05rem;
  border-width: 1px;
}

.brand--compact h1 {
  font-size: 1.12rem;
}

.brand--compact .brand-tagline {
  max-width: 11rem;
}

.brand-text-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "title title"
    "tagline about";
  align-items: end;
  column-gap: 0.4rem;
}

.brand-text-wrap h1 {
  grid-area: title;
}

.brand-text-wrap .brand-tagline {
  grid-area: tagline;
}

.header-about-link--brand-corner {
  grid-area: about;
  justify-self: end;
  align-self: end;
  padding: 0.14rem 0.4rem;
  font-size: 0.68rem;
  line-height: 1.1;
}

.hp-inline {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  text-align: left;
}

.hp-mini-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--rainbow-strip);
  background-size: 200% 200%;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 2px 8px rgba(58, 54, 64, 0.08);
}

.hp-mini-avatar--guest {
  background: linear-gradient(145deg, rgba(181, 168, 196, 0.55), rgba(163, 176, 160, 0.5));
  color: var(--text);
  font-size: 0.72rem;
}

.hp-inline-text {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  min-width: 0;
}

.hp-inline-name {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  max-width: 10rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hp-inline-dim {
  font-size: 0.65rem;
  color: var(--muted);
  line-height: 1.35;
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 手机端：带底栏的应用页顶栏只保留站名 + 用户区（主导航用底栏切换） */
@media (max-width: 900px) {
  .shell--app .header-app-strip {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.45rem;
    justify-content: space-between;
  }

  .shell--app .header-app-strip .site-nav--header {
    display: none !important;
  }

  .shell--app .header-user-cluster {
    margin-left: auto;
    flex-shrink: 0;
  }

  .shell--app .header-about-link {
    display: none;
  }

  .shell--app .header-about-link--brand-corner {
    display: inline-block;
  }

  .shell--app .brand--compact {
    min-width: 0;
    flex: 1 1 auto;
  }

  .shell--app .header-profile-inline:has(.hp-mini-avatar--guest) {
    display: none;
  }

  .shell--app .site-header--app .hp-inline-dim {
    display: none;
  }

  .shell--app .hp-mini-avatar {
    width: 30px;
    height: 30px;
    font-size: 0.74rem;
    border-radius: 9px;
  }

  .shell--app .hp-inline-name {
    max-width: 42vw;
  }
}

/* —— 个人主页「我」 —— */
.me-page {
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

.me-profile-card {
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid rgba(122, 158, 184, 0.35);
  background: linear-gradient(165deg, rgba(255, 252, 249, 0.98) 0%, rgba(248, 252, 250, 0.95) 100%);
  padding: 1.1rem 1.15rem 1.2rem;
  box-shadow: 0 8px 28px rgba(58, 54, 64, 0.08), 0 1px 0 rgba(255, 255, 255, 0.85) inset;
  margin-bottom: 1rem;
}

.me-profile-head {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.me-profile-top-row {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 0.65rem;
}

.me-profile-top-main {
  flex: 1;
  min-width: 0;
}

.me-profile-name-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin-bottom: 0.35rem;
}

.me-profile-name-actions .me-profile-name {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  line-height: 1.35;
}

.me-profile-top-main .me-info-meta-dots {
  margin: 0;
}

.me-stats-full-row {
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  gap: 0.35rem;
  padding: 0.45rem 0.35rem;
  margin-bottom: 0.65rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(122, 158, 184, 0.28);
  box-shadow: 0 2px 12px rgba(56, 184, 224, 0.06);
}

.me-stat-inline {
  flex: 1;
  min-width: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
}

.me-stat-inline strong {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}

.me-stat-inline span {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
}

@media (max-width: 380px) {
  .me-profile-top-row {
    flex-wrap: wrap;
  }
}

.me-avatar {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: var(--rainbow-strip);
  background-size: 200% 200%;
  display: grid;
  place-items: center;
  font-size: 1.65rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.me-avatar--photo {
  padding: 0;
  background: var(--surface);
}

.me-avatar--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.me-profile-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin-bottom: 0.75rem;
}

.me-profile-name {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
  color: var(--text);
  flex: 1 1 auto;
  min-width: 0;
}

.me-edit-home-btn {
  flex-shrink: 0;
}

.me-info-panel {
  margin: 0;
  padding: 0.75rem 0.85rem 0.8rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(181, 168, 196, 0.22);
  border-left: 3px solid rgba(56, 184, 224, 0.55);
  box-shadow: 0 2px 14px rgba(58, 54, 64, 0.05);
}

.me-info-meta-dots {
  margin: 0 0 0.55rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
  word-break: break-word;
}

.me-info-line {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text);
}

.me-info-line + .me-info-line {
  margin-top: 0.45rem;
}

.me-info-k {
  font-weight: 700;
  color: var(--muted);
  margin-right: 0.2rem;
}

.me-info-v {
  font-weight: 600;
  word-break: break-word;
}

.me-info-v--bio {
  font-weight: 500;
  color: var(--muted);
  white-space: pre-wrap;
}

.modal-dream-complete {
  margin: 0 0 1rem;
  padding: 0.85rem 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(122, 158, 184, 0.35);
  background: linear-gradient(165deg, rgba(255, 252, 249, 0.98), rgba(248, 252, 255, 0.94));
  box-shadow: 0 4px 18px rgba(58, 54, 64, 0.06);
}

.modal-dream-complete__title {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
}

.modal-dream-complete__submit-wrap {
  margin-top: 0.5rem;
  padding-top: 0.65rem;
  border-top: 1px dashed rgba(122, 158, 184, 0.35);
}

.modal-dream-complete-form .form-group {
  margin-bottom: 0.65rem;
}

.modal-dream-complete-form .form-group:last-of-type {
  margin-bottom: 0;
}

.me-bio-block {
  margin-top: 0.85rem;
}

.me-bio-block label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.me-bio-block textarea {
  width: 100%;
  min-height: 72px;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 0.55rem 0.75rem;
  font-family: inherit;
  font-size: 0.88rem;
  resize: vertical;
  background: var(--surface);
  color: var(--text);
}

.me-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.me-tabs--single-row {
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: stretch;
  gap: 0.25rem;
  padding-bottom: 0.15rem;
}

.me-tabs--single-row .me-tab {
  flex: 1 1 0;
  min-width: 0;
  white-space: nowrap;
  padding: 0.4rem 0.2rem;
  font-size: 0.74rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}


.card-head--with-author {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.card-author-cluster {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 0.45rem 0.55rem;
  min-width: 0;
  flex: 1 1 auto;
}

.card-author-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  min-width: 0;
}

.author.author--card {
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.2;
}

.author-skills-inline {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.35;
  max-width: 100%;
  word-break: break-word;
}

.author-skills-inline::before {
  content: '擅长：';
  margin-right: 0.15rem;
  color: var(--muted);
  font-weight: 700;
}

.card-author-avatar {
  width: 2.05rem;
  height: 2.05rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(122, 158, 184, 0.5);
  background: linear-gradient(145deg, rgba(232, 90, 122, 0.85), rgba(56, 184, 224, 0.75));
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(58, 54, 64, 0.12);
}

.card-author-avatar:hover {
  filter: brightness(1.05);
}

.author-view {
  text-align: center;
}

.author-view-avatar {
  width: 4.25rem;
  height: 4.25rem;
  margin: 0 auto 0.65rem;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  background: var(--rainbow-strip);
  background-size: 200% 200%;
  border: 2px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.author-view-avatar--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.author-view-name {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 0.65rem;
  color: var(--text);
}

.author-view-dl {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 4.2rem 1fr;
  gap: 0.35rem 0.5rem;
  text-align: left;
  font-size: 0.82rem;
}

.author-view-dl dt {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.author-view-dl dd {
  margin: 0;
  color: var(--text);
  word-break: break-word;
}

.author-view-bio {
  margin: 0.75rem 0 0;
  text-align: left;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}

.author-view-pm-hint {
  margin: 0.65rem 0 0;
  font-size: 0.75rem !important;
  text-align: left;
}

.me-tab {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.me-tab:hover {
  color: var(--text);
  border-color: rgba(122, 158, 184, 0.45);
}

.me-tab.is-active {
  color: #fff;
  border-color: transparent;
  background: var(--rainbow-strip);
  background-size: 220% auto;
  box-shadow: 0 2px 12px rgba(107, 140, 255, 0.2);
}

.me-swipe-hint {
  margin: 0.4rem 0 0.15rem;
  font-size: 0.72rem;
  line-height: 1.45;
  text-align: center;
  color: var(--muted);
}

.me-inbox-loading {
  margin: 0.5rem 0;
}

.me-inbox-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.me-inbox-item {
  margin: 0;
}

.me-inbox-link {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  width: 100%;
  min-width: 0;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-soft);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.me-inbox-link:hover {
  border-color: rgba(107, 140, 255, 0.35);
  box-shadow: var(--shadow-lift);
}

.me-inbox-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.me-inbox-unread {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.35rem;
  font-size: 0.62rem;
  font-weight: 800;
  color: #fff;
  background: #e85a7a;
  border-radius: 999px;
}

.me-inbox-peer {
  font-size: 0.72rem;
  color: var(--accent-tech);
  font-weight: 600;
}

.me-inbox-preview {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.me-inbox-time {
  font-size: 0.65rem;
  color: var(--muted);
}

.me-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.me-swipe-row {
  --me-swipe-w: 4.75rem;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  touch-action: pan-y;
}

.me-swipe-row__track {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--me-swipe-w);
  width: calc(100% + var(--me-swipe-w));
  transform: translate3d(0, 0, 0);
  transition: transform 0.22s ease-out;
  will-change: transform;
}

.me-swipe-row.is-dragging .me-swipe-row__track {
  transition: none;
}

.me-swipe-row.is-open .me-swipe-row__track {
  transform: translate3d(calc(-1 * var(--me-swipe-w)), 0, 0);
}

.me-swipe-row__front {
  min-width: 0;
}

.me-swipe-row__behind {
  display: flex;
  align-items: stretch;
}

.me-swipe-row__del {
  flex: 1;
  margin: 0;
  padding: 0.35rem 0.45rem;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  background: linear-gradient(160deg, #e85a7a, #c94a68);
  border: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer;
  box-shadow: none;
}

.me-swipe-row__del:hover {
  filter: brightness(1.05);
}

.me-taken-card.me-swipe-row {
  display: block;
  padding: 0;
  overflow: hidden;
}

.me-taken-card.me-swipe-row .me-swipe-row__front {
  padding: 0.65rem 0 0.65rem 0.75rem;
}

.me-taken-card.me-swipe-row .me-taken-main {
  display: block;
  width: 100%;
}

.me-taken-card.me-swipe-row .me-swipe-row__behind {
  align-self: stretch;
}

.me-edit-avatar-preview {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 12px;
  overflow: hidden;
  margin: 0 0 0.5rem;
  border: 1px solid var(--border);
  background: var(--surface);
}

.me-edit-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.me-list-item {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 0.75rem 0.9rem;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.15s, border-color 0.15s;
}

.me-list-item:hover {
  border-color: rgba(107, 140, 255, 0.35);
  box-shadow: var(--shadow-lift);
}

.me-list-item h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: var(--text);
}

.me-list-item p {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.45;
}

.me-list-item .me-list-meta {
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

button.me-list-item.me-list-item--dream {
  width: 100%;
  text-align: left;
  font: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.me-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted);
  font-size: 0.88rem;
  border-radius: var(--radius);
  border: 1px dashed var(--border);
  background: rgba(255, 252, 249, 0.6);
}

.me-guest-actions {
  justify-content: center;
}

.me-admin-panel {
  margin-top: 1.25rem;
  padding: 1rem 1rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 252, 249, 0.85);
  text-align: left;
}

.me-admin-panel__title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.me-admin-lead {
  margin: 0 0 0.65rem !important;
  font-size: 0.82rem;
}

.me-admin-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.me-admin-row--wrap {
  flex-wrap: wrap;
}

.me-admin-q,
.me-admin-mute-user {
  flex: 1;
  min-width: 0;
  font: inherit;
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
}

.me-admin-days {
  width: 4.2rem;
  flex: 0 0 auto;
  font: inherit;
  padding: 0.45rem 0.35rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
}

.me-admin-dream-list {
  margin-top: 0.35rem;
  max-height: 220px;
  overflow: auto;
  font-size: 0.86rem;
}

.me-admin-dream-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(90, 75, 85, 0.08);
}

.me-admin-muted-list {
  margin-top: 0.35rem;
  font-size: 0.86rem;
}

.me-admin-muted-ul {
  margin: 0;
  padding-left: 1.1rem;
}

.dream-comment-like-static {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.dream-comments-demo-hint {
  margin-top: 0.75rem;
}

.header-profile-inline {
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 0;
}

.auth-cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.6rem;
  padding-left: 0.5rem;
  border-left: 1px solid rgba(122, 158, 184, 0.25);
  margin-left: 0.15rem;
}

@media (max-width: 900px) {
  .header-row--home {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .header-end {
    justify-content: space-between;
    border-left: none;
    margin-left: 0;
    padding-left: 0;
    width: 100%;
  }

  .auth-cluster {
    border-left: none;
    padding-left: 0;
    margin-left: 0;
  }

  .hp-inline-dim {
    max-width: 42vw;
  }
}

@media (max-width: 640px) {
  .auth-cluster {
    width: 100%;
    justify-content: flex-start;
  }
}

/* 首页主题轮播（横幅） */
.home-hero {
  position: relative;
  width: 100%;
  max-width: min(1180px, 100%);
  margin: 0 auto 0.85rem;
  height: clamp(240px, 38vh, 420px);
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: var(--shadow-lift), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  border: 2px solid rgba(255, 255, 255, 0.65);
}

.home-hero .hero-slide {
  position: absolute;
  inset: 0;
  background-color: rgba(122, 158, 184, 0.22);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.15s ease-in-out;
  transform: scale(1.03);
}

.home-hero .hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 1.15s ease-in-out,
    transform 8s ease-out;
}

.home-hero .hero-slide.hero-slide--dream-thumb {
  cursor: pointer;
  z-index: 0;
}

.home-hero .hero-slide.hero-slide--dream-thumb:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.95);
  outline-offset: -4px;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(35, 32, 40, 0.5) 0%, transparent 55%, rgba(35, 32, 40, 0.35) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-footer {
  position: absolute;
  bottom: clamp(0.55rem, 2.2vw, 1.1rem);
  left: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem 1rem;
  pointer-events: none;
}

.hero-caption {
  position: static;
  flex: 1 1 220px;
  min-width: 0;
  margin: 0;
  color: #fff;
  text-shadow:
    0 0 28px rgba(0, 0, 0, 0.55),
    0 3px 18px rgba(0, 0, 0, 0.5),
    0 1px 0 rgba(255, 255, 255, 0.12);
  font-size: clamp(1.2rem, 4.2vw, 2.35rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-align: center;
  line-height: 1.2;
  padding: 0.35rem 0.75rem;
  text-transform: none;
  font-family: var(--font-display);
  -webkit-text-stroke: 0.35px rgba(0, 0, 0, 0.25);
}

/* 首页顶部：最新梦想横向滚动条（约 30 秒无交互后收起） */
.dream-ticker-bar {
  width: 100%;
  max-width: min(1180px, 100%);
  margin: 0 auto 0.85rem;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: var(--shadow-lift), 0 0 0 1px rgba(255, 255, 255, 0.55) inset;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: linear-gradient(120deg, rgba(255, 252, 254, 0.96), rgba(244, 248, 255, 0.92) 45%, rgba(255, 250, 252, 0.94));
  transition:
    max-height 0.38s ease,
    opacity 0.32s ease,
    margin 0.32s ease,
    padding 0.32s ease,
    border-width 0.32s ease;
  max-height: 5.5rem;
  opacity: 1;
}

.dream-ticker-bar.is-collapsed {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-width: 0;
  pointer-events: none;
  overflow: hidden;
}

.dream-ticker-bar__inner {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.65rem 0.5rem;
  min-height: 2.35rem;
}

.dream-ticker-bar__badge {
  flex: 0 0 auto;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent2);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(232, 90, 122, 0.28);
  border-radius: 999px;
  padding: 0.2rem 0.45rem;
  line-height: 1;
}

.dream-ticker-bar__viewport {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
}

.dream-ticker-bar__track {
  overflow: hidden;
}

.dream-ticker-bar__loop {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.45rem;
  width: max-content;
  animation: dream-ticker-marquee 48s linear infinite;
}

@keyframes dream-ticker-marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dream-ticker-bar__loop {
    animation: none;
  }
}

.dream-ticker-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: min(100%, 20rem);
  padding: 0.28rem 0.55rem 0.3rem;
  border-radius: 999px;
  border: 1px solid rgba(122, 158, 184, 0.35);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  font: inherit;
  font-size: 0.78rem;
  line-height: 1.25;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 1px 0 rgba(58, 54, 64, 0.06);
}

.dream-ticker-chip:hover {
  border-color: rgba(232, 90, 122, 0.45);
  background: #fff;
}

.dream-ticker-chip:focus-visible {
  outline: 2px solid var(--accent2);
  outline-offset: 2px;
}

.dream-ticker-chip__st {
  flex: 0 0 auto;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.dream-ticker-chip__ti {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dream-ticker-chip__au {
  flex: 0 0 auto;
  font-size: 0.68rem;
  color: var(--muted);
  max-width: 5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-link {
  text-decoration: none;
  color: inherit;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(122, 158, 184, 0.22);
  background: rgba(255, 255, 255, 0.45);
  transition: color 0.15s, border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.site-nav a:hover {
  color: var(--text);
  border-color: var(--accent-tech);
  background: var(--surface);
  box-shadow: 0 2px 10px rgba(122, 158, 184, 0.15);
}

.site-nav a[aria-current="page"] {
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: var(--rainbow-strip);
  background-size: 220% auto;
  animation: strip-flow 8s linear infinite;
  box-shadow: 0 4px 16px rgba(232, 90, 122, 0.25), 0 4px 18px rgba(107, 140, 255, 0.2);
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

/* —— 内容页 / 关于 / 联系 —— */
.content-page {
  max-width: 720px;
  margin: 0 auto;
  border-radius: calc(var(--radius) + 8px);
  border: 3px solid transparent;
  background-image: linear-gradient(180deg, #fffcf9, #faf8f5), var(--rainbow-strip);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  background-size: 100% 100%, 320% 100%;
  padding: calc(1.65rem + 10px) 1.65rem 2rem;
  box-shadow: var(--shadow-zone), var(--glow-rainbow);
  position: relative;
}

.content-page::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.25rem;
  right: 1.25rem;
  height: 6px;
  z-index: 0;
  border-radius: 0 0 8px 8px;
  background: var(--rainbow-strip);
  background-size: 200% 100%;
  animation: strip-flow 11s linear infinite;
  box-shadow: 0 4px 14px rgba(181, 107, 255, 0.2);
}

.content-page > * {
  position: relative;
  z-index: 1;
}

.content-page.wide {
  max-width: 960px;
}

.content-page--full {
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
}

.content-page--full.prose {
  max-width: none;
}

.page-lead {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
  line-height: 1.65;
}

.prose {
  color: var(--text);
  font-size: 0.95rem;
}

.prose h2 {
  font-size: 1.15rem;
  margin: 1.75rem 0 0.75rem;
  color: var(--text);
}

.prose p {
  margin-bottom: 1rem;
}

.prose ul,
.prose ol {
  margin: 0.5rem 0 1rem 1.25rem;
}

.prose li {
  margin-bottom: 0.45rem;
}

.prose a {
  color: var(--accent-tech);
  font-weight: 500;
}

.prose a:hover {
  color: var(--accent2);
}

.dream-essay {
  margin-bottom: 2rem;
  border-color: rgba(107, 140, 255, 0.28);
  background: linear-gradient(
    165deg,
    rgba(255, 252, 248, 0.99) 0%,
    rgba(248, 250, 255, 0.97) 55%,
    rgba(255, 249, 252, 0.98) 100%
  );
}

.dream-essay > h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.35rem;
  font-family: var(--font-display);
  padding-bottom: 0;
  border-bottom: none;
  color: var(--text);
}

.dream-essay-lead {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 1.35rem;
}

.dream-essay p {
  line-height: 1.75;
  margin-bottom: 1.05rem;
}

.dream-essay p:last-of-type {
  margin-bottom: 0;
}

.about-rules-heading {
  margin-top: 2.25rem;
}

.rule-box {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 252, 249, 0.98) 0%, rgba(245, 240, 236, 0.95) 100%);
  border: 2px solid rgba(196, 168, 164, 0.35);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem 1.25rem calc(1.2rem + 10px);
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-soft), 0 0 20px rgba(107, 140, 255, 0.05);
  overflow: hidden;
}

.rule-box::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 7px;
  background: linear-gradient(180deg, var(--r-4), var(--r-5), var(--r-6), var(--r-7), var(--r-1), var(--r-2));
  background-size: 100% 260%;
  animation: strip-flow-v 18s linear infinite;
  border-radius: var(--radius) 0 0 var(--radius);
}

.rule-box h3 {
  font-size: 0.95rem;
  margin-bottom: 0.65rem;
  background: var(--rainbow-strip);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: strip-flow 15s linear infinite;
  font-weight: 700;
}

.rule-box > * {
  position: relative;
  z-index: 1;
}

.contact-hero {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.avatar-placeholder {
  width: 96px;
  height: 96px;
  border-radius: 20px;
  background: var(--strip-accent);
  background-size: 200% 200%;
  animation: strip-flow 20s linear infinite;
  display: grid;
  place-items: center;
  font-size: 2.5rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-soft);
  border: 2px solid rgba(255, 255, 255, 0.75);
}

.contact-meta {
  flex: 1;
  min-width: 200px;
}

.contact-meta h2 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.contact-meta .role {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  color: var(--accent-tech);
  font-weight: 600;
}

.contact-list {
  list-style: none;
  padding: 0;
}

.contact-list li {
  margin-bottom: 0.65rem;
  font-size: 0.92rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.contact-list strong {
  color: var(--muted);
  min-width: 4.5rem;
  font-weight: 600;
}

.contact-list a {
  color: var(--accent-tech);
  text-decoration: none;
  font-weight: 500;
}

.contact-list a:hover {
  text-decoration: underline;
  color: var(--accent2);
}

.coop-note {
  background: linear-gradient(135deg, rgba(181, 168, 196, 0.18), rgba(163, 176, 160, 0.15));
  border: 1px solid rgba(143, 168, 188, 0.35);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 1.25rem;
  box-shadow: var(--shadow-soft);
}

/* —— 梦想成真 / 展播 —— */
.showcase-intro {
  margin-bottom: 1.5rem;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.story-card {
  background: var(--card);
  border: 1px solid rgba(181, 168, 196, 0.32);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
  position: relative;
}

.story-card:hover {
  box-shadow: var(--shadow-lift);
}

.story-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--strip-accent);
  background-size: 200% 100%;
  animation: strip-flow 16s linear infinite;
  z-index: 1;
}

.story-media {
  position: relative;
  background: linear-gradient(145deg, #e8e4df 0%, #dcd6ce 100%);
  aspect-ratio: 16 / 9;
}

.story-media iframe,
.story-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.story-media .media-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 1rem;
  text-align: center;
}

.story-body {
  padding: 1rem 1.1rem 1.15rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.story-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  line-height: 1.35;
}

.story-meta {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.65rem;
}

.story-text {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
  white-space: pre-wrap;
  margin-bottom: 0.75rem;
  flex: 1;
}

.story-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 0.4rem;
}

.story-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.showcase-form-panel {
  border-radius: calc(var(--radius) + 4px);
  border: 3px solid transparent;
  background-image: linear-gradient(165deg, #fffdf9, #f7f2ec), var(--rainbow-strip);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  background-size: 100% 100%, 300% 100%;
  padding: 1.35rem 1.35rem 1.35rem calc(1.35rem + 10px);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-zone), var(--glow-rainbow);
  position: relative;
}

.showcase-form-panel::after {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 6px;
  z-index: 0;
  background: linear-gradient(180deg, var(--r-7), var(--r-1), var(--r-3), var(--r-5));
  background-size: 100% 240%;
  animation: strip-flow-v 14s linear infinite;
  border-radius: 4px;
  opacity: 0.9;
}

.showcase-form-panel h2 {
  font-size: 1.08rem;
  margin-bottom: 1rem;
  font-weight: 800;
  padding-bottom: 0.65rem;
  border-bottom: 2px dashed rgba(232, 90, 122, 0.35);
  background: var(--rainbow-strip);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: strip-flow 12s linear infinite;
}

.showcase-form-panel > * {
  position: relative;
  z-index: 1;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.sync-panel {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border);
}

.sync-panel select {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
}

/* 减弱动画：系统「减少动态效果」时保持静态配色 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .brand h1 {
    color: var(--text);
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
  }

  .author:not(.bl) {
    color: #5a5660;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
  }

  .rule-box h3,
  .showcase-form-panel h2 {
    color: var(--accent-tech);
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
  }

  .btn-primary {
    background: linear-gradient(135deg, #d4728a, #6b8cff);
    background-size: 100% 100%;
  }

  .site-nav a[aria-current="page"] {
    background: linear-gradient(135deg, #d4728a, #5a9ec4);
    background-size: 100% 100%;
  }

  .logo,
  .avatar-placeholder {
    background: linear-gradient(145deg, var(--r-1), var(--r-4), var(--r-6));
    animation: none;
  }

  header.site::after,
  .card-dream::before,
  .story-card::before,
  .toolbar::before,
  .content-page::before,
  .panel::before,
  .rule-box::before,
  .showcase-form-panel::after {
    animation: none;
  }
}

/* 站点公告 / 维护条（首页） */
.site-top-banners {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.site-banner {
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  line-height: 1.45;
  border: 1px solid var(--border);
}

.site-banner--notice {
  background: linear-gradient(120deg, rgba(107, 140, 255, 0.12), rgba(56, 184, 224, 0.1));
  color: var(--text);
}

.site-banner--maintenance {
  background: rgba(192, 128, 136, 0.15);
  border-color: rgba(192, 128, 136, 0.35);
  color: #5c3d42;
}

/* 梦想成真 → 原帖 */
.original-dream-bar {
  margin: 0.35rem 0 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
}

.original-dream-bar .link-original-dream-btn {
  flex-shrink: 0;
}

.modal-original-dream-wrap {
  margin: 0.5rem 0 0.85rem;
}

.modal-original-missing {
  margin: 0.35rem 0 0.75rem;
}

.original-dream-row {
  margin: 0.5rem 0 0.35rem;
  font-size: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.6rem;
}

.link-original-dream {
  color: var(--accent-tech);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed rgba(122, 158, 184, 0.5);
}

.link-original-dream:hover {
  color: var(--m-blue);
  border-bottom-color: var(--m-blue);
}

.original-dream-hint,
.modal-original-dream .original-dream-hint {
  color: var(--muted);
  font-size: 0.78rem;
}

.modal-original-dream {
  margin: 0.5rem 0 0.25rem;
}

/* —— 首页单栏梦想墙 —— */
.layout-feed {
  width: 100%;
  max-width: min(1180px, 100%);
  margin: 0 auto;
}

.layout-feed .wall-main {
  position: relative;
  border-radius: calc(var(--radius) + 6px);
  border: 3px solid transparent;
  background-image: linear-gradient(165deg, #fffcf9, #f8fafc 55%, #fff9fb), var(--rainbow-strip);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  background-size: 100% 100%, 350% 100%;
  padding: 1.2rem 1.25rem 1.4rem;
  box-shadow: var(--shadow-zone), 0 0 0 1px rgba(255, 255, 255, 0.65) inset, var(--glow-rainbow);
  min-height: 320px;
  min-width: 0;
}

/* 手机首页（仅 index 的 shell--dream-feed）：一屏一条梦想，纵向滑动切换；卡内不嵌套纵向滚动，避免滑不动切不了卡 */
@media (max-width: 900px) {
  .shell--app.shell--dream-feed .home-hero {
    display: none;
  }

  .shell--app.shell--dream-feed {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    /* 锁在视口内，否则 flex 子项会随内容无限增高，masonry 无法出现内部滚动 */
    min-height: 100dvh;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: calc(1rem + var(--app-tabbar-h) + env(safe-area-inset-bottom, 0px));
  }

  .shell--app.shell--dream-feed .layout-feed {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    margin: 0;
    max-width: none;
  }

  .shell--app.shell--dream-feed .layout-feed .wall-main {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 0.45rem 0.55rem 0.65rem;
    position: relative;
  }

  /* 浮动筛选：默认不占中间版面 */
  .shell--app.shell--dream-feed .dream-feed-filter-fab {
    position: fixed;
    z-index: 168;
    top: calc(env(safe-area-inset-top, 0px) + 0.55rem);
    right: max(0.55rem, env(safe-area-inset-right, 0px));
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.55rem;
    height: 2.55rem;
    padding: 0;
    border-radius: 999px;
    border: 1px solid rgba(122, 158, 184, 0.35);
    background: rgba(255, 252, 249, 0.42);
    color: var(--text);
    box-shadow: 0 4px 18px rgba(58, 54, 64, 0.08);
    cursor: pointer;
    font-family: inherit;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.12s ease, background 0.2s ease;
  }

  .shell--app.shell--dream-feed .dream-feed-filter-fab__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    opacity: 0.88;
  }

  .shell--app.shell--dream-feed .dream-feed-filter-fab__icon svg {
    display: block;
  }

  .shell--app.shell--dream-feed .dream-feed-filter-fab:active {
    transform: scale(0.96);
  }

  .shell--app.shell--dream-feed .dream-feed-filter-fab:hover {
    background: rgba(255, 252, 249, 0.55);
  }

  .shell--app.shell--dream-feed .dream-feed-filter-scrim {
    position: fixed;
    inset: 0;
    z-index: 169;
    background: rgba(35, 32, 40, 0.38);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.26s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0.26s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .shell--app.shell--dream-feed .wall-main--filters-open .dream-feed-filter-scrim {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .shell--app.shell--dream-feed .dream-filter-host {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 170;
    max-height: min(78vh, 520px);
    overflow: hidden auto;
    padding: 0 0.55rem 0.65rem;
    padding-top: env(safe-area-inset-top, 0px);
    background: linear-gradient(180deg, rgba(255, 252, 249, 0.99), rgba(250, 248, 245, 0.98));
    border-radius: 0 0 18px 18px;
    border: 1px solid rgba(122, 158, 184, 0.28);
    border-top: none;
    box-shadow: 0 12px 40px rgba(58, 54, 64, 0.14);
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    will-change: transform, opacity;
    transition:
      transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.26s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0.32s;
  }

  .shell--app.shell--dream-feed .wall-main--filters-open .dream-filter-host {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .shell--app.shell--dream-feed .dream-filter-host__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.55rem 0.15rem 0.45rem;
    position: sticky;
    top: 0;
    z-index: 1;
    touch-action: pan-y;
    background: linear-gradient(180deg, rgba(255, 252, 249, 0.98), rgba(255, 252, 249, 0.92));
    border-bottom: 1px dashed rgba(122, 158, 184, 0.22);
    margin-bottom: 0.35rem;
  }

  .shell--app.shell--dream-feed .dream-filter-host__title {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text);
  }

  .shell--app.shell--dream-feed .dream-filter-host__mobile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding: 0.1rem 0.45rem 0.55rem;
    border-bottom: 1px dashed rgba(122, 158, 184, 0.22);
    margin-bottom: 0.3rem;
    justify-content: center;
  }

  .shell--app.shell--dream-feed .dream-filter-host__mobile-actions .dream-filter-host__pill {
    flex: 1 1 42%;
    min-width: 0;
    justify-content: center;
    text-align: center;
    font-weight: 700;
    font-size: 0.78rem;
  }

  .shell--app.shell--dream-feed .dream-filter-host__mobile-actions .dream-filter-host__pill:only-child {
    flex: 1 1 auto;
    max-width: 100%;
  }

  .shell--app.shell--dream-feed .dream-filter-host .toolbar {
    margin-bottom: 0;
    padding: 0.55rem 0.45rem 0.65rem;
  }

  .shell--app.shell--dream-feed .masonry {
    flex: 1 1 auto;
    min-height: 0;
    /* 不用多列布局，避免 column 与 flex 高度计算异常导致几乎不能滚动 */
    display: flex;
    flex-direction: column;
    gap: 0;
    column-count: unset;
    columns: unset;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
  }

  .shell--app.shell--dream-feed .masonry .card-dream {
    flex: 0 0 100%;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    margin-bottom: 0;
    padding: 0.55rem 0.6rem 0.5rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .shell--app.shell--dream-feed .masonry .card-dream .card-dream-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: hidden;
    padding-right: 0.1rem;
  }

  .shell--app.shell--dream-feed .masonry .card-dream .dream-actions-host {
    margin-top: 0;
    flex-shrink: 0;
    padding-top: 0.35rem;
  }

  .shell--app.shell--dream-feed .masonry .card-dream[data-dream-collapsed='1'] .card-desc {
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    overflow: visible;
  }

  .shell--app.shell--dream-feed .masonry .card-dream[data-dream-collapsed='1'] .achievement-story p {
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    overflow: visible;
  }

  .shell--app.shell--dream-feed .masonry .card-dream .card-video-wrap {
    max-height: min(26vh, 168px);
    flex-shrink: 0;
    aspect-ratio: 16 / 9;
  }
}

/* 桌面：梦想墙卡片不点进详情（与 app.js 行为一致），指针不用手型 */
@media (min-width: 901px) {
  .shell--app.shell--dream-feed .masonry .card-dream {
    cursor: default;
  }
}

/* 桌面：筛选条常驻，隐藏手机 FAB 与下拉壳层样式 */
@media (min-width: 901px) {
  .dream-feed-filter-fab,
  .dream-feed-filter-scrim {
    display: none !important;
  }

  .dream-filter-host__mobile-actions {
    display: none !important;
  }

  .dream-filter-host__head {
    display: none !important;
  }

  .dream-filter-host {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }

  .shell--app.shell--dream-feed .masonry .card-dream .card-dream-scroll {
    display: block;
    min-width: 0;
  }

  /* 网页端梦想墙：列数少一些，卡片更宽，视频更清晰 */
  .shell--app.shell--dream-feed .masonry {
    column-count: 2;
    column-gap: 1.15rem;
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
  }

  .shell--app.shell--dream-feed .card-dream .card-video-wrap {
    max-height: none;
  }

  .modal-video-wrap {
    width: 100%;
    max-width: min(920px, 100%);
    margin-left: auto;
    margin-right: auto;
    min-height: 200px;
  }

  .modal .body .msg-list {
    max-height: min(380px, 48vh);
  }

  .modal-backdrop .modal {
    max-width: min(920px, calc(100vw - 2rem));
  }
}

@media (min-width: 1280px) {
  .shell--app.shell--dream-feed .masonry {
    column-count: 3;
    max-width: 1180px;
  }
}

/* —— 发布 / 成真 独立页 —— */
.form-page-main {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.panel-publish-page {
  position: relative;
  top: auto;
  max-height: none;
  align-self: stretch;
}

.panel-scroll--page {
  flex: none;
  min-height: 0;
  max-height: none;
  overflow: visible;
}

.panel-sticky-actions--page {
  position: sticky;
  bottom: 0;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  padding-bottom: 0.35rem;
  background: linear-gradient(to top, rgba(255, 253, 249, 0.98) 70%, rgba(255, 253, 249, 0));
  border-top: 1px solid rgba(232, 90, 122, 0.14);
  z-index: 2;
}

.panel-done.panel-publish-page .panel-sticky-actions--page {
  background: linear-gradient(to top, rgba(249, 253, 251, 0.98) 70%, rgba(249, 253, 251, 0));
  border-top-color: rgba(78, 201, 149, 0.22);
}

.btn-submit-wide {
  width: 100%;
}

a.btn {
  text-decoration: none;
  display: inline-block;
  text-align: center;
  box-sizing: border-box;
}

.btn-dream-complete {
  line-height: 1.25;
}

.complete-dream-lead {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  margin: 0 0 0.35rem;
}

/* —— 底部 Tab（手机端，类短视频 App） —— */
.app-tabbar {
  display: none;
  position: fixed;
  z-index: 90;
  left: 0;
  right: 0;
  bottom: 0;
  align-items: stretch;
  justify-content: space-around;
  gap: 0;
  min-height: var(--app-tabbar-h);
  padding: 0.35rem 0.5rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
  background: rgba(16, 16, 20, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
}

.app-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  min-width: 0;
  padding: 0.2rem 0.35rem;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 10px;
  transition: color 0.15s, background 0.15s;
}

.app-tab:hover {
  color: rgba(255, 255, 255, 0.65);
}

.app-tab.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.app-tab__icon {
  font-size: 1.05rem;
  line-height: 1;
  opacity: 0.88;
}

.app-tab.is-active .app-tab__icon {
  opacity: 1;
}

.app-tab__label {
  line-height: 1.2;
}

/* 「我的」Tab：只保留一个主字，避免图标行与标签行重复显示「我的」 */
.app-tab__icon--solo {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0;
}

.app-tab__me-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.05rem;
}

.app-tab__me-en {
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-indent: 0.14em;
  line-height: 1;
  text-transform: lowercase;
  opacity: 0.7;
}

.app-tab--me.is-active .app-tab__me-en {
  opacity: 0.95;
}

.app-tab--me .app-tab__icon--solo {
  font-size: 1.02rem;
  line-height: 1;
}

.app-tab--me {
  position: relative;
}

.app-tab__dot {
  position: absolute;
  top: 1px;
  right: calc(50% - 1.35rem);
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  box-sizing: border-box;
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 17px;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #e85a7a, #f0924a);
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.app-tab--me .app-tab__dot {
  top: 0;
  right: calc(50% - 1.05rem);
}

@media (max-width: 900px) {
  .app-tabbar {
    display: flex;
  }

  .shell--app {
    padding-bottom: calc(1rem + var(--app-tabbar-h) + env(safe-area-inset-bottom, 0px));
  }

  .shell--form-page .form-page-main {
    padding-bottom: 0.25rem;
  }

  .toast-host {
    bottom: calc(0.5rem + var(--app-tabbar-h) + env(safe-area-inset-bottom, 0px));
    right: 0.65rem;
    left: 0.65rem;
    max-width: none;
  }

  .toast {
    font-size: 0.82rem;
    padding: 0.6rem 0.85rem;
  }
}

/* —— 手机端紧凑顶栏与按钮（精致小尺寸） —— */
@media (max-width: 900px) {
  header.site.site-header--app {
    padding: 0.5rem 0.6rem calc(0.5rem + 4px);
    margin-bottom: 0.6rem;
    border-radius: 12px;
    border-width: 2px;
  }

  header.site.site-header--app::after {
    height: 3px;
    left: 0.5rem;
    right: 0.5rem;
  }

  header.site.site-header--app .brand h1 {
    font-size: 0.98rem;
    letter-spacing: -0.02em;
  }

  header.site.site-header--app .brand-tagline {
    font-size: 0.6rem;
    max-width: 14rem;
  }

  header.site.site-header--app .logo {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    font-size: 0.95rem;
    border-width: 1px;
  }

  header.site.site-header--app .btn-sm {
    padding: 0.26rem 0.52rem;
    font-size: 0.68rem;
    font-weight: 600;
  }

  header.site.site-header--app .btn-primary.btn-sm {
    font-weight: 700;
    border-width: 1px;
    box-shadow: 0 2px 0 rgba(58, 54, 64, 0.1), 0 4px 14px rgba(232, 90, 122, 0.22);
  }

  header.site.site-header--app .site-nav a {
    font-size: 0.68rem;
    padding: 0.26rem 0.5rem;
    font-weight: 600;
  }

  header.site.site-header--app .site-nav a[aria-current="page"] {
    font-weight: 700;
    border-width: 1px;
  }

  header.site.site-header--app .hp-mini-avatar {
    width: 30px;
    height: 30px;
    font-size: 0.76rem;
    border-radius: 9px;
  }

  header.site.site-header--app .hp-inline-name {
    font-size: 0.74rem;
    max-width: 36vw;
  }

  header.site.site-header--app .hp-inline-dim {
    font-size: 0.58rem;
    max-width: 46vw;
  }

  .home-hero {
    height: clamp(150px, 26vh, 240px);
    margin-bottom: 0.6rem;
    border-radius: 12px;
  }

  .hero-footer {
    flex-direction: column;
    gap: 0.35rem;
    bottom: 0.45rem;
  }

  .hero-caption {
    font-size: clamp(0.82rem, 3.2vw, 1.05rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    -webkit-text-stroke: 0;
    padding: 0.25rem 0.5rem;
  }

  .dream-ticker-bar {
    margin-bottom: 0.55rem;
    border-radius: 12px;
  }

  .dream-ticker-bar__inner {
    padding: 0.38rem 0.5rem 0.42rem;
  }

  .layout-feed .wall-main {
    padding: 0.85rem 0.75rem 1rem;
    border-radius: 12px;
    border-width: 2px;
  }

  .toolbar {
    padding: 0.85rem 0.65rem 0.75rem;
    border-radius: 12px;
  }

  .toolbar::before {
    height: 3px;
    left: 0.5rem;
    right: 0.5rem;
  }

  .filters input[type="search"] {
    min-width: 0;
    max-width: none;
    flex: 1 1 100%;
    font-size: 0.8rem;
  }

  .filters select {
    font-size: 0.72rem;
    padding: 0.38rem 0.65rem;
  }

  .wall-count {
    font-size: 0.72rem;
  }

  .panel-publish-page {
    padding: 1rem 1rem 1.1rem calc(0.95rem + 8px);
    border-radius: 12px;
    border-width: 2px;
  }

  .panel-publish-page h2.panel-side-title {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.45rem;
  }

  .panel-publish-page .form-group label {
    font-size: 0.68rem;
  }

  .panel-publish-page .form-group input,
  .panel-publish-page .form-group textarea,
  .panel-publish-page .form-group select {
    font-size: 0.85rem;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
  }

  .panel-publish-page .btn-primary.btn-submit-wide {
    font-size: 0.82rem;
    padding: 0.48rem 1rem;
    font-weight: 700;
    border-width: 1px;
  }

  .panel-publish-page .reward-row label {
    font-size: 0.78rem;
    padding: 0.38rem 0.6rem;
  }

  .me-stat strong {
    font-size: 0.95rem;
  }

  .me-avatar {
    width: 60px;
    height: 60px;
    font-size: 1.35rem;
  }
}

/* 联系我页 · 管理台（默认折叠） */
.contact-admin-footer {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.contact-admin-toggle {
  font-weight: 700;
  color: var(--accent-tech);
  border-style: dashed;
}

.admin-reveal {
  margin-top: 0.85rem;
}

.admin-gate-section {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.admin-gate-section--contact {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.admin-gate-section h2 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.form-row-admin {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: flex-end;
  margin-bottom: 0.75rem;
}

.admin-panel {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
  align-items: center;
}

.admin-toolbar .btn.is-active {
  background: var(--card);
  border-color: var(--accent-tech);
  color: var(--accent-tech);
  box-shadow: var(--shadow-soft);
}

.admin-tab-panel {
  padding-top: 0.25rem;
}

.admin-check-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.75rem 0;
  font-size: 0.9rem;
  cursor: pointer;
}

.admin-dream-list,
.admin-muted-list {
  list-style: none;
  margin-top: 0.75rem;
}

.admin-dream-row,
.admin-muted-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

.admin-dream-meta {
  color: var(--muted);
  font-size: 0.78rem;
  flex: 1 1 100%;
}

.admin-dream-title {
  flex: 1 1 12rem;
}

.guestbook-section {
  margin-top: 1.75rem;
}

.guestbook-form .req {
  color: var(--danger);
  font-weight: 700;
}

.admin-contact-msg-list {
  list-style: none;
  margin-top: 0.75rem;
  max-height: 28rem;
  overflow-y: auto;
}

.admin-contact-msg-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}

.admin-cm-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.35rem;
}

.admin-cm-contact {
  color: var(--accent-tech);
  font-size: 0.82rem;
  margin-bottom: 0.35rem;
}

.admin-cm-body {
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text);
  margin: 0.35rem 0 0.5rem;
  line-height: 1.5;
}

.admin-cm-del {
  margin-top: 0.25rem;
}

/** 梦想卡：评论 / 进展仅预览一条 + 入口 */
.dream-card-comments-preview {
  margin: 0.45rem 0 0;
  padding: 0.5rem 0.65rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(122, 158, 184, 0.2);
}

.dream-card-comments-preview__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.dream-card-comments-preview__title {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0.02em;
}

.dream-comment-row--card-preview {
  padding: 0.45rem 0.5rem;
}

.dream-progress-block--card-preview .dream-progress-preview-head {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.dream-progress-list--preview {
  margin-bottom: 0.35rem;
}

.dream-progress-preview-more {
  margin-top: 0.25rem;
}

/** 弹窗：梦想详情与子视图顶栏 */
.modal-dream-detail {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px dashed rgba(122, 158, 184, 0.25);
}

.modal-dream-detail__author {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
}

.modal-dream-detail__title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  line-height: 1.35;
}

.modal-dream-detail__desc {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text);
}

.modal-dream-detail__tags {
  margin-bottom: 0.45rem;
}

.modal-subview-bar {
  margin: -0.15rem 0 0.65rem;
}

#modalRoot[data-modal-tab='comments'] .dream-comments-thread {
  max-height: min(58vh, 520px);
}

/** 头像与展示名（梦想卡、评论、顶栏等） */
.avatar-inline-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-author-avatar--photo,
.hp-mini-avatar--photo {
  padding: 0;
  overflow: hidden;
}

.card-author-avatar--photo .avatar-inline-img,
.hp-mini-avatar--photo .avatar-inline-img {
  border-radius: inherit;
}

.dream-comment-meta--row {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}

.dream-comment-meta-main {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.dream-comment-meta-main .dream-comment-time {
  display: block;
}

.dream-comment-av-mini {
  width: 1.65rem;
  height: 1.65rem;
  flex-shrink: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, rgba(232, 90, 122, 0.82), rgba(56, 184, 224, 0.72));
  border: 1px solid rgba(122, 158, 184, 0.45);
  overflow: hidden;
}

.dream-comment-av-mini--photo {
  padding: 0;
}

.modal-dream-detail__author {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.55rem;
}

.modal-dream-detail__author-av {
  width: 2.35rem;
  height: 2.35rem;
  flex-shrink: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, rgba(232, 90, 122, 0.85), rgba(56, 184, 224, 0.75));
  border: 1px solid rgba(122, 158, 184, 0.45);
  overflow: hidden;
}

.modal-dream-detail__author-av--photo {
  padding: 0;
}

.modal-dream-detail__author-acct {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
}

.modal-dream-detail__author strong {
  font-size: 0.95rem;
}
