/* =====================================================================
   我们的小站 · 暖调编辑风
   纸感米色 + 朱砂红点缀 + 大字标题
   ===================================================================== */

:root {
  --paper: #f6f1e7;
  --paper-2: #fdfaf3;
  --ink: #221f1a;
  --ink-soft: #6f675a;
  --ink-faint: #a39a8a;
  --line: rgba(34, 31, 26, 0.12);
  --accent: #e0492e;
  --accent-deep: #c03a20;
  --accent-soft: rgba(224, 73, 46, 0.09);

  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, "Courier New", monospace;

  --radius: 18px;
  --shadow-card: 0 24px 48px -30px rgba(96, 66, 40, 0.35), 0 2px 6px rgba(96, 66, 40, 0.06);
  --shadow-pop: 0 30px 70px -30px rgba(70, 45, 25, 0.45);
  --wrap: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 纸张颗粒质感 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--accent); color: #fff; }

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: #d8cfbe; border-radius: 8px; border: 2px solid var(--paper); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

/* ------------------------------------------------------------------
   阅读进度条
   ------------------------------------------------------------------ */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: var(--accent);
  z-index: 1300;
  transition: width 0.1s linear;
}

/* ------------------------------------------------------------------
   顶部导航
   ------------------------------------------------------------------ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 26px;
  background: rgba(246, 241, 231, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.nav-logo-face {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 15px;
  box-shadow: 0 6px 14px -6px rgba(224, 73, 46, 0.6);
}

.nav-logo-name { font-family: var(--font-display); font-weight: 900; font-size: 17px; }

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.nav-links a {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-soft);
  transition: 0.25s;
}

.nav-links a:hover { color: var(--ink); background: rgba(34, 31, 26, 0.06); }
.nav-links a.active { color: #fff; background: var(--ink); }

.nav-days {
  flex-shrink: 0;
  font-size: 13px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  background: var(--paper-2);
  border-radius: 999px;
  padding: 7px 14px;
  transition: 0.25s;
}
.nav-days b { color: var(--accent); font-variant-numeric: tabular-nums; }
.nav-days:hover { border-color: var(--accent); color: var(--ink); transform: translateY(-1px); }

/* ------------------------------------------------------------------
   首屏 · 满屏照片拼贴
   ------------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 110px 24px 80px;
}

.hero-orbits {
  position: absolute;
  inset: -12%;
  color: var(--ink);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.hero-orbits svg { width: 100%; height: 100%; }

.orbits-spin {
  transform-origin: 600px 600px;
  animation: orbitSpin 160s linear infinite;
}

@keyframes orbitSpin { to { transform: rotate(360deg); } }

/* ---- 照片拼贴层（背景：照片持续旋转） ---- */
.hero-collage {
  position: absolute;
  inset: -4%;
  z-index: 1;
  animation: collageDrift 38s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes collageDrift {
  from { transform: rotate(-1.4deg) scale(1.01); }
  to   { transform: rotate(1.4deg) scale(1.05); }
}

/* 公转由 JS 驱动（js/main.js 每帧计算椭圆轨道位置），卡片始终端正 */
.fc {
  position: absolute;
  left: 50%; top: 50%;
  width: var(--w);
  z-index: var(--z, 2);
  opacity: var(--o, 1);
  pointer-events: auto;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.fc-enter { animation: fcEnter 0.9s cubic-bezier(0.22, 0.9, 0.32, 1.24) var(--dl, 0s) both; }

@keyframes fcEnter {
  from { opacity: 0; transform: scale(0.35) rotate(16deg); }
  to   { opacity: 1; transform: none; }
}

/* 公转轨道相关样式由 JS 直接写 transform，无需关键帧 */

/* 忽大忽小 + 上下漂浮 */
.fc-breathe {
  animation: fcBreathe var(--bd, 5s) ease-in-out infinite alternate;
}

@keyframes fcBreathe {
  from { transform: scale(1) translateY(8px); }
  to   { transform: scale(var(--ba, 1.1)) translateY(-14px); }
}

/* 透明玻璃拍立得：完整显示照片原始比例 */
.fc-card {
  background: rgba(253, 250, 243, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.55);
  padding: 9px 9px 8px;
  border-radius: 10px;
  box-shadow: 0 24px 55px -26px rgba(70, 45, 25, 0.5);
  position: relative;
  transition: box-shadow 0.3s ease;
}

.fc-card img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
  cursor: zoom-in;
}

.fc-card figcaption {
  padding: 7px 2px 1px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 上传照片的删除小钮 */
.fc-del {
  position: absolute;
  top: 4px; right: 4px;
  width: 24px; height: 24px;
  border: none;
  border-radius: 50%;
  background: rgba(34, 31, 26, 0.72);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  opacity: 0;
  transition: 0.2s;
  z-index: 2;
}

.fc:hover .fc-del { opacity: 1; }
.fc-del:hover { background: var(--accent); }

.fc:hover { z-index: 60; }
.fc:hover .fc-card { box-shadow: 0 40px 85px -28px rgba(70, 45, 25, 0.65); }

/* ---- 居中内容（前景层，名字和时间始终显示在照片上方） ---- */
.hero-center { position: relative; z-index: 3; max-width: 860px; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.2rem, 10vw, 7.2rem);
  line-height: 1.08;
  letter-spacing: 0.02em;
  margin: 14px 0 10px;
}

.hero-title .amp {
  color: var(--accent);
  font-style: italic;
  font-weight: 700;
  padding: 0 0.06em;
}

.hero-tagline {
  color: var(--ink-soft);
  font-size: clamp(1rem, 2vw, 1.2rem);
  letter-spacing: 0.06em;
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.4em;
  color: var(--accent);
  text-transform: uppercase;
}

/* 计时卡片 */
.counter-card {
  margin: 42px auto 0;
  display: inline-block;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 26px 44px 22px;
  box-shadow: var(--shadow-card);
}

.counter-cap {
  font-size: 14px;
  letter-spacing: 0.5em;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.counter-nums { display: flex; align-items: baseline; justify-content: center; gap: clamp(14px, 3vw, 30px); }

.cu b {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  min-width: 1.6em;
}

.cu b[data-u="s"] { color: var(--accent); }
.cu i {
  display: block;
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--ink-faint);
  margin-top: 2px;
}

.counter-since { margin-top: 14px; font-size: 11px; color: var(--ink-faint); }

.scroll-hint {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--ink-faint);
  z-index: 1;
}

.scroll-hint span { display: inline-block; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }

/* ------------------------------------------------------------------
   通用 Section
   ------------------------------------------------------------------ */
.section { padding: clamp(80px, 12vh, 140px) 0; }

.sec-head { margin-bottom: clamp(44px, 7vh, 72px); }

.sec-index { margin-bottom: 22px; }

.sec-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.sec-title-row h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.sec-desc {
  color: var(--ink-soft);
  font-size: 15px;
  text-align: right;
  line-height: 2;
}

.sec-rule {
  border: none;
  border-top: 1px solid var(--line);
  margin-top: 30px;
}

/* ------------------------------------------------------------------
   首页 · 小房间入口
   ------------------------------------------------------------------ */
.entries {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.entry {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px 28px 58px;
  box-shadow: var(--shadow-card);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  overflow: hidden;
}

.entry:hover { transform: translateY(-6px); border-color: rgba(224, 73, 46, 0.45); box-shadow: var(--shadow-pop); }

.entry-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }

.entry-num { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.3em; color: var(--accent); }

.entry-icon { font-size: 22px; }

.entry-name { font-family: var(--font-display); font-weight: 900; font-size: 1.65rem; letter-spacing: 0.03em; }

.entry-desc { color: var(--ink-soft); font-size: 14px; margin-top: 6px; }

.entry-arrow {
  position: absolute;
  right: 26px; bottom: 22px;
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--ink-faint);
  transition: 0.3s;
}

.entry:hover .entry-arrow { color: var(--accent); transform: translate(4px, -4px); }

/* ------------------------------------------------------------------
   01 · 时间线
   ------------------------------------------------------------------ */
.tl { position: relative; padding: 10px 0; }

.tl::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, var(--line) 5%, var(--line) 95%, transparent);
}

.tl-item {
  position: relative;
  width: 50%;
  padding: 0 52px 58px 0;
}

.tl-item:nth-child(even) { margin-left: 50%; padding: 0 0 58px 52px; }

/* 节点圆点 */
.tl-item::before {
  content: "";
  position: absolute;
  top: 34px;
  right: -7px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--accent);
  z-index: 1;
}

.tl-item:nth-child(even)::before { right: auto; left: -7px; }

.tl-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.tl-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); }

.tl-date {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--accent);
  border: 1px solid rgba(224, 73, 46, 0.3);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 14px;
}

.tl-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.45rem;
  margin-bottom: 8px;
}

.tl-text { color: var(--ink-soft); font-size: 15px; }

.tl-photos {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.tl-photos img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  cursor: zoom-in;
}

.tl-photos.photos-2 { grid-template-columns: 1fr 1fr; }
.tl-photos.photos-2 img { aspect-ratio: 1; }

/* 年份标记 */
.tl-year {
  position: relative;
  width: 100%;
  text-align: center;
  padding-bottom: 46px;
}

.tl-year span {
  display: inline-block;
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.4em;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 22px 8px 26px;
}

/* ------------------------------------------------------------------
   02 · 照片墙
   ------------------------------------------------------------------ */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.filters button {
  border: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 14px;
  letter-spacing: 0.04em;
  transition: 0.25s;
}

.filters button:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-1px); }

.filters button.on {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.masonry { columns: 3 260px; column-gap: 18px; }

.g-item {
  break-inside: avoid;
  margin-bottom: 18px;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  cursor: zoom-in;
  border: 1px solid var(--line);
  background: var(--paper-2);
  box-shadow: 0 10px 24px -18px rgba(96, 66, 40, 0.4);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.g-item:hover { transform: translateY(-5px) scale(1.01); box-shadow: var(--shadow-pop); }

.g-item img { width: 100%; transition: transform 0.5s ease; }
.g-item:hover img { transform: scale(1.04); }

.g-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 34px 14px 12px;
  color: #fff;
  font-size: 13px;
  background: linear-gradient(180deg, transparent, rgba(30, 20, 12, 0.72));
  opacity: 0;
  transform: translateY(8px);
  transition: 0.35s ease;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.g-item:hover .g-cap { opacity: 1; transform: none; }

.g-cap .g-date { font-family: var(--font-mono); font-size: 10px; opacity: 0.8; letter-spacing: 0.1em; flex-shrink: 0; }

.gallery-count { margin-top: 26px; font-size: 11px; color: var(--ink-faint); text-align: right; }

/* ------------------------------------------------------------------
   03 · 纪念日
   ------------------------------------------------------------------ */
.ms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.ms-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 24px 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.ms-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); }

.ms-top { display: flex; align-items: center; justify-content: space-between; }

.ms-name { font-weight: 700; font-size: 16px; }

.ms-icon { font-size: 20px; }

.ms-date { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; color: var(--ink-faint); }

.ms-days { margin-top: 18px; display: flex; align-items: baseline; gap: 8px; }

.ms-days b {
  font-family: var(--font-mono);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.ms-days i { font-style: normal; font-size: 13px; color: var(--ink-soft); }

/* 今天就是纪念日 */
.ms-card.today { background: var(--accent); border-color: var(--accent); }
.ms-card.today .ms-name, .ms-card.today .ms-date, .ms-card.today .ms-days i { color: rgba(255, 255, 255, 0.9); }
.ms-card.today .ms-days b { color: #fff; animation: pulse 1.2s ease-in-out infinite; }
.ms-card.today::after {
  content: "就是今天 ✦";
  position: absolute;
  top: 14px; right: -30px;
  transform: rotate(38deg);
  background: #fff;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 36px;
}

@keyframes pulse { 50% { transform: scale(1.08); } }

/* ------------------------------------------------------------------
   04 · 心愿墙
   ------------------------------------------------------------------ */
.wish-form-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px 14px;
  box-shadow: var(--shadow-card);
  margin-bottom: 34px;
}

.wish-form-row { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }

.wish-field { display: flex; flex-direction: column; gap: 7px; }

.wish-field > span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--ink-faint);
}

.wish-field select, .wish-field input {
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 16px;
  transition: border-color 0.25s;
}

.wish-field select:focus, .wish-field input:focus { outline: none; border-color: var(--accent); }

.wish-field select { cursor: pointer; }

.wish-field-grow { flex: 1; min-width: 220px; }
.wish-field-grow input { width: 100%; }

.btn {
  border: none;
  border-radius: 999px;
  padding: 12px 26px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: 0.25s;
  white-space: nowrap;
}

.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 12px 22px -12px rgba(224, 73, 46, 0.7); }
.btn-accent:hover { background: var(--accent-deep); transform: translateY(-2px); }

.wish-form-note { font-size: 10px; color: var(--ink-faint); letter-spacing: 0.1em; padding: 6px 2px 8px; }

.wish-wall { columns: 3 280px; column-gap: 18px; }

.wish-card {
  break-inside: avoid;
  margin-bottom: 18px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 24px 18px;
  box-shadow: 0 12px 26px -20px rgba(96, 66, 40, 0.45);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wish-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-pop); }

.wish-card::before {
  content: "“";
  position: absolute;
  top: 2px; left: 16px;
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.25;
}

.wish-text { font-size: 15px; margin: 14px 0 16px; word-break: break-word; }

.wish-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-faint);
}

.wish-meta b {
  display: inline-grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.wish-del {
  margin-left: auto;
  border: none;
  background: none;
  color: var(--ink-faint);
  font-size: 15px;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 6px;
  opacity: 0;
  transition: 0.2s;
}

.wish-card:hover .wish-del { opacity: 1; }
.wish-del:hover { color: var(--accent); background: var(--accent-soft); }

/* ------------------------------------------------------------------
   首页 · 上传照片
   ------------------------------------------------------------------ */
.upload-zone {
  position: fixed;
  right: 26px; bottom: 26px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 12px;
}

.upload-fab {
  width: 58px; height: 58px;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  box-shadow: 0 16px 34px -12px rgba(224, 73, 46, 0.7);
  transition: 0.25s;
}

.upload-fab:hover { background: var(--accent-deep); transform: translateY(-3px) scale(1.05); }

.upload-hint {
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 9px 16px;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  opacity: 0;
  transform: translateX(10px);
  transition: 0.4s ease;
  pointer-events: none;
}

.upload-hint.show { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .upload-zone { right: 16px; bottom: 16px; }
  .upload-fab { width: 52px; height: 52px; font-size: 13px; }
  .upload-hint { max-width: 200px; white-space: normal; line-height: 1.6; }
}

/* ------------------------------------------------------------------
   页脚
   ------------------------------------------------------------------ */
.footer {
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 70px 24px 46px;
  background: linear-gradient(180deg, var(--paper), #efe7d8);
}

.footer-heart {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.7rem;
  letter-spacing: 0.06em;
}

.footer-heart em { color: var(--accent); font-style: normal; }

.footer-note { color: var(--ink-soft); font-size: 14px; margin-top: 8px; }

.footer-meta { margin-top: 26px; font-size: 10px; color: var(--ink-faint); }

/* ------------------------------------------------------------------
   灯箱
   ------------------------------------------------------------------ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: rgba(26, 20, 14, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
}

.lightbox.open { opacity: 1; visibility: visible; }

.lb-body {
  max-width: min(86vw, 1000px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transform: scale(0.96);
  transition: transform 0.3s ease;
}

.lightbox.open .lb-body { transform: none; }

.lb-body img {
  max-height: 78vh;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8);
}

.lb-body figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  padding: 0 6px;
}

.lb-body figcaption .mono { font-size: 11px; color: rgba(255, 255, 255, 0.5); }

.lb-del {
  margin: 2px 6px 0;
  align-self: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  padding: 7px 18px;
  font-size: 12px;
  letter-spacing: 0.08em;
  transition: 0.25s;
}

.lb-del:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.lb-close, .lb-arrow {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 50%;
  transition: 0.25s;
}

.lb-close:hover, .lb-arrow:hover { background: var(--accent); border-color: var(--accent); }

.lb-close { top: 22px; right: 26px; width: 44px; height: 44px; font-size: 22px; }

.lb-arrow { top: 50%; transform: translateY(-50%); width: 50px; height: 50px; font-size: 20px; }
.lb-prev { left: 26px; }
.lb-next { right: 26px; }

/* ------------------------------------------------------------------
   入场动画
   ------------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.65, 0.25, 1), transform 0.9s cubic-bezier(0.2, 0.65, 0.25, 1);
  transition-delay: var(--d, 0s);
}

.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------
   响应式
   ------------------------------------------------------------------ */
@media (max-width: 760px) {
  .nav { padding: 10px 16px; gap: 10px; }
  .nav-links { gap: 0; overflow-x: auto; }
  .nav-links a { padding: 6px 10px; font-size: 13px; flex-shrink: 0; }
  .nav-logo-name { display: none; }
  .nav-days { font-size: 12px; padding: 6px 11px; }

  .hero { padding-top: 96px; }
  .mono-label { letter-spacing: 0.22em; font-size: 11px; }
  .sec-index { letter-spacing: 0.3em; }

  .fc-card { padding: 6px 6px 5px; border-radius: 8px; }
  .fc-card figcaption { font-size: 9px; padding-top: 5px; }

  .counter-card { padding: 20px 22px 16px; width: 100%; max-width: 380px; }
  .cu b { font-size: 1.9rem; min-width: 1.4em; }

  /* 时间线改为左侧单列 */
  .tl::before { left: 10px; transform: none; }
  .tl-item, .tl-item:nth-child(even) { width: 100%; margin-left: 0; padding: 0 0 44px 38px; }
  .tl-item::before, .tl-item:nth-child(even)::before { left: 3px; right: auto; }
  .tl-year { text-align: left; padding-left: 38px; }

  .sec-desc { line-height: 1.9; text-align: left; }

  .wish-form-row { flex-direction: column; align-items: stretch; }
  .wish-form-row .btn { width: 100%; }

  .lb-arrow { width: 42px; height: 42px; }
  .lb-prev { left: 10px; }
  .lb-next { right: 10px; }
  .lb-body figcaption { flex-direction: column; gap: 4px; }
}

/* 两个人的身份入口与同步留言板 */
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.nav-auth { flex-shrink: 0; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--ink); color: var(--paper-2); font-size: 12px; }
.identity-dialog { margin: auto; width: min(440px, calc(100% - 32px)); max-height: calc(100svh - 40px); overflow-y: auto; padding: 38px 32px 30px; border: 1px solid var(--line); border-radius: 24px; color: var(--ink); background: var(--paper-2); box-shadow: var(--shadow-pop); }
.identity-dialog::backdrop { background: rgba(34,31,26,.48); backdrop-filter: blur(6px); }
.identity-dialog h2 { font-family: var(--font-display); font-size: 25px; line-height: 1.5; margin: 12px 0; }
.identity-dialog > p:not(.mono-label) { color: var(--ink-soft); font-size: 14px; margin-bottom: 22px; }
.identity-dialog .btn-accent { width: 100%; }
.dialog-close { position: absolute; right: 16px; top: 12px; background: transparent; border: 0; color: var(--ink-soft); font-size: 26px; padding: 0 8px; }
.identity-field { display: flex; flex-direction: column; gap: 7px; font-size: 13px; margin: 16px 0; }
.identity-field input, .identity-dialog textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); font: inherit; }
.identity-field input:focus, .identity-dialog textarea:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.identity-choices { display: flex; gap: 12px; border: 0; margin-top: 22px; }
.identity-choices label { flex: 1; cursor: pointer; }
.identity-choices input { position: absolute; opacity: 0; }
.identity-choices span { display: block; padding: 14px; border: 1px solid var(--line); border-radius: 12px; text-align: center; }
.identity-choices input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-deep); font-weight: 700; }
.identity-choices input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.remember-choice { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 13px; }
.remember-choice input { accent-color: var(--accent); }
.form-status { min-height: 24px; color: var(--accent-deep); font-size: 13px; margin: 12px 0; overflow-wrap: anywhere; }
.community-section { padding-top: 135px; min-height: 75svh; }
.community-wrap { max-width: 1040px; }
.community-gate { padding: 50px 24px; text-align: center; border: 1px solid var(--line); border-radius: 24px; background: var(--paper-2); }
.gate-heart { display: block; color: var(--accent); font-size: 44px; }
.community-gate h3 { font-family: var(--font-display); font-size: 23px; margin: 10px 0; }
.community-gate p { color: var(--ink-soft); font-size: 14px; margin-bottom: 24px; }
.community-composer { border: 1px solid var(--line); border-radius: 22px; padding: 24px; background: var(--paper-2); box-shadow: var(--shadow-card); }
.composer-header, .composer-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.composer-header { font-size: 14px; color: var(--ink-soft); }
.composer-header strong { color: var(--accent-deep); }
.composer-header .mono { font-size: 10px; color: var(--ink-faint); }
.community-composer textarea { width: 100%; resize: vertical; min-height: 132px; max-height: 500px; border: 0; padding: 18px 0; color: var(--ink); background: transparent; font: inherit; line-height: 1.8; }
.community-composer textarea:focus-visible { outline-offset: 4px; }
.composer-footer { padding-top: 14px; border-top: 1px solid var(--line); }
.composer-footer p { font-size: 12px; color: var(--ink-faint); }
button:disabled { cursor: wait; opacity: .55; }
.board-status { margin-bottom: 14px; }
.board-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0 24px; }
.board-toolbar strong { font-size: 15px; }
.board-toolbar p { color: var(--ink-faint); font-size: 11px; margin-top: 4px; }
.filter-label { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-soft); flex-shrink: 0; }
.filter-label select { font: inherit; color: var(--ink); padding: 8px 10px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 10px; }
.wishes-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 18px; }
.messages-list { display: grid; gap: 18px; }
.community-card { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper-2); box-shadow: var(--shadow-card); }
.post-author { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.post-avatar { display: inline-grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-deep); }
.mine-tag, .completed-tag { padding: 2px 7px; border-radius: 8px; font-size: 10px; color: var(--ink-soft); background: var(--paper); }
.completed-tag { margin-left: auto; color: #56704c; background: #eaf0e5; }
.post-text { margin: 18px 0 20px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.9; }
.post-time, .post-completed-time { color: var(--ink-faint); font-size: 11px; }
.post-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 14px; }
.post-actions button, .legacy-import button { color: var(--ink-soft); background: transparent; border: 0; padding: 6px 0; font-size: 12px; }
.post-actions button:hover, .legacy-import button { color: var(--accent-deep); }
.is-complete { border-color: #cfd9c8; }
.board-timezone { text-align: center; margin-top: 28px; font-size: 11px; color: var(--ink-faint); }
.community-empty { grid-column: 1 / -1; padding: 60px 16px; text-align: center; color: var(--ink-soft); font-size: 14px; }
.community-empty > span { display: block; font-size: 38px; color: var(--accent); margin-bottom: 12px; }
.legacy-import { padding: 12px 18px; border: 1px dashed var(--line); border-radius: 12px; margin-top: 18px; font-size: 13px; color: var(--ink-soft); }
.legacy-import button { margin-left: 10px; }
.edit-dialog textarea { resize: vertical; min-height: 180px; margin-top: 12px; }
.editor-actions { display: flex; justify-content: flex-end; gap: 12px; }
.editor-actions .btn-accent { width: auto; }

/* 可共同编辑的故事与媒体 */
.story-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.story-toolbar strong { font-size: 16px; }
.story-toolbar p { font-size: 12px; color: var(--ink-soft); margin-top: 4px; }
.story-timeline { margin-top: 22px; }
.story-timeline .tl-item { margin-left: 0; padding: 0 40px 48px 0; }
.story-timeline .tl-item.is-right { margin-left: 50%; padding: 0 0 48px 40px; }
.story-timeline .tl-item::before { right: -7px; left: auto; }
.story-timeline .tl-item.is-right::before { right: auto; left: -7px; }
.story-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.story-media-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 20px 0; }
.story-media-grid > :only-child, .story-video { grid-column: 1 / -1; }
.story-photo { min-width: 0; border: 0; background: var(--paper); border-radius: 12px; overflow: hidden; }
.story-photo img { width: 100%; height: auto; max-height: 360px; object-fit: contain; }
.story-video video { width: 100%; max-height: 360px; background: #221f1a; border-radius: 12px; display: block; }
.story-video figcaption { font-size: 10px; color: var(--ink-faint); margin-top: 5px; overflow-wrap: anywhere; }
.story-byline { display: flex; flex-direction: column; gap: 3px; color: var(--ink-faint); font-size: 11px; margin-top: 20px; }
.story-edit { color: var(--accent-deep); font-size: 12px; background: transparent; border: 0; margin-top: 12px; padding: 6px 0; }
.story-editor { position: fixed; margin: auto; width: min(820px,calc(100% - 32px)); max-height: calc(100svh - 32px); overflow: auto; padding: 28px; border: 1px solid var(--line); border-radius: 24px; color: var(--ink); background: var(--paper-2); box-shadow: var(--shadow-pop); }
.story-editor::backdrop { background: rgba(34,31,26,.48); backdrop-filter: blur(6px); }
.story-editor-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.story-editor h2 { font: 900 26px/1.5 var(--font-display); margin-top: 8px; }
.story-editor-close { background: transparent; border: 0; font-size: 27px; color: var(--ink-soft); padding: 0 8px; }
.story-fields { display: grid; grid-template-columns: 200px 1fr; gap: 18px; }
.story-fields label, .story-content-label { display: flex; flex-direction: column; gap: 8px; color: var(--ink-soft); font-size: 13px; min-width: 0; }
.story-editor input:not([type=file]), .story-editor textarea { min-width: 0; width: 100%; font: inherit; color: var(--ink); padding: 12px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.story-content-label { margin-top: 20px; }
.story-editor textarea { resize: vertical; min-height: 170px; line-height: 1.8; }
.story-attachment-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 24px; font-size: 14px; }
.story-attachment-head p { color: var(--ink-faint); font-size: 11px; margin-top: 3px; }
.story-add-media { background: var(--accent-soft); color: var(--accent-deep); padding: 10px 16px; }
.story-format-note { font-size: 11px; color: var(--ink-faint); margin: 10px 0 14px; }
.story-attachments { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.story-attachment { position: relative; min-width: 0; padding: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.story-attachment img, .story-attachment video { display: block; width: 100%; height: 120px; object-fit: contain; background: #e9e2d6; border-radius: 8px; }
.story-attachment figcaption { font-size: 11px; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 6px; }
.story-attachment button { position: absolute; top: 2px; right: 2px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--ink); color: #fff; font-size: 20px; }
.attachment-empty { grid-column: 1 / -1; border: 1px dashed var(--line); border-radius: 12px; padding: 30px 16px; text-align: center; color: var(--ink-faint); font-size: 13px; }
.story-editor-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.story-editor-footer p { color: var(--ink-faint); font-size: 11px; }
.story-editor-footer strong { color: var(--accent-deep); }
.story-editor-footer > div { display: flex; gap: 10px; margin-left: auto; }

/* 相册：照片、视频与可见的上传记录 */
.album-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.album-toolbar strong { font-size: 16px; }
.album-toolbar p { font-size: 12px; color: var(--ink-soft); margin-top: 4px; }
.album-controls { display: flex; gap: 16px; flex-wrap: wrap; margin: 22px 0 8px; }
.album-controls label { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-soft); }
.album-controls select { color: var(--ink); background: var(--paper-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font: inherit; }
.album-grid { columns: 3 260px; column-gap: 18px; scroll-margin-top: 120px; }
.album-card { break-inside: avoid; margin-bottom: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--paper-2); border-radius: 16px; box-shadow: var(--shadow-card); }
.album-photo { display: block; width: 100%; border: 0; padding: 0; cursor: zoom-in; background: var(--paper); }
.album-photo img { width: 100%; height: auto; }
.album-video { position: relative; background: var(--ink); }
.album-video video { display: block; width: 100%; max-height: 460px; min-height: 150px; }
.album-video > span { position: absolute; top: 10px; left: 10px; pointer-events: none; border-radius: 999px; padding: 2px 10px; font-size: 10px; color: #fff; background: rgba(34,31,26,.65); }
.album-card > figcaption { padding: 16px 18px; }
.album-caption { color: var(--ink); font-size: 14px; margin-bottom: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.album-uploader { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--ink-soft); }
.album-uploader > span { display: inline-grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; color: var(--accent-deep); background: var(--accent-soft); }
.album-uploader strong { color: var(--ink); font-size: 12px; }
.album-upload-time, .album-date { display: block; font-size: 10px; color: var(--ink-faint); margin-top: 6px; }
.album-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.album-tags span { padding: 2px 7px; border-radius: 6px; background: var(--paper); color: var(--ink-soft); font-size: 10px; }
.album-identity { padding: 12px 16px; border-radius: 12px; background: var(--accent-soft); color: var(--ink-soft); font-size: 13px; }
.album-identity strong { color: var(--accent-deep); }
.album-previews { grid-template-columns: repeat(2,minmax(0,1fr)); }
.album-caption-field { display: block; margin-top: 8px; }
.album-caption-field input { font-size: 12px !important; padding: 9px 10px !important; }
.album-shared-fields { margin-top: 24px; align-items: start; }
.album-tag-choices { min-width: 0; padding: 0; border: 0; font-size: 12px; color: var(--ink-soft); }
.album-tag-choices legend { font-size: 13px; margin-bottom: 10px; }
.album-tag-choices label { display: inline-flex; align-items: center; flex-direction: row; gap: 6px; margin: 0 14px 10px 0; }
.album-tag-choices input[type=checkbox] { width: auto; accent-color: var(--accent); }

/* 可调整日期的共同纪念日 */
.milestone-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.milestone-toolbar strong { font-size: 16px; }
.milestone-toolbar p { font-size: 12px; color: var(--ink-soft); margin-top: 4px; }
.ms-top { gap: 12px; }
.ms-name { min-width: 0; overflow-wrap: anywhere; }
.ms-icon { flex-shrink: 0; }
.milestone-repeat { font-size: 11px; color: var(--ink-faint); }
.milestone-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 11px; color: var(--ink-faint); }
.milestone-card-footer button { flex-shrink: 0; padding: 5px 0; background: none; border: 0; color: var(--accent-deep); font: inherit; }
.ms-card.today .milestone-repeat, .ms-card.today .milestone-card-footer, .ms-card.today .milestone-card-footer button { color: #fff; }
.milestone-past .ms-days b { color: var(--ink-soft); }
.milestone-day-note { text-align: center; font-size: 11px; color: var(--ink-faint); margin-top: 28px; }
.milestone-editor { max-width: min(480px,calc(100% - 24px)); width: 480px; }
.milestone-editor input, .milestone-editor select { font-size: 16px; }
.milestone-form-row { display: grid; grid-template-columns: minmax(0,1fr) 80px; gap: 12px; }
.milestone-form-row .identity-field { min-width: 0; margin: 0; }
.milestone-editor select { width: 100%; padding: 12px 10px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.milestone-editor input[type=date] { min-width: 0; max-width: 100%; }
.milestone-preview { margin-top: 20px; padding: 18px; text-align: center; background: var(--accent-soft); border-radius: 14px; }
.milestone-preview strong { color: var(--accent-deep); font-size: 23px; }
.milestone-preview p { color: var(--ink-soft); font-size: 11px; margin-top: 5px; }
.milestone-date-help, .milestone-leap-note { color: var(--ink-faint); font-size: 11px; line-height: 1.8; }
.milestone-leap-note { margin-top: 12px; }
.milestone-delete { display: block; margin: 14px auto 0; padding: 8px; background: none; border: 0; color: var(--ink-soft); font-size: 12px; }
.milestone-delete:hover { color: var(--accent-deep); }
@media (max-width: 760px) {
  .milestone-toolbar { align-items: flex-start; flex-direction: column; }
  .milestone-toolbar .btn { width: 100%; }
  .milestone-editor { width: calc(100% - 24px); }
  .album-toolbar { align-items: flex-start; flex-direction: column; }
  .album-toolbar .btn { width: 100%; }
  .album-controls { gap: 12px; }
  .album-controls select { padding: 8px; }
  .album-grid { scroll-margin-top: 125px; }
  .album-previews { grid-template-columns: 1fr; }
  .album-editor { max-width: calc(100% - 20px); }
  .album-editor .story-editor-footer > div { flex-wrap: wrap; }
  .album-editor .story-editor-footer .btn { width: 100%; }
  .story-toolbar { align-items: flex-start; flex-direction: column; }
  .story-toolbar .btn { width: 100%; }
  .story-timeline .tl-item, .story-timeline .tl-item.is-right { width: 100%; margin-left: 0; padding: 0 0 38px 30px; }
  .story-timeline .tl-item::before, .story-timeline .tl-item.is-right::before { left: 3px; right: auto; }
  .story-timeline .tl-card { padding: 20px; }
  .story-editor { padding: 24px 18px; width: calc(100% - 20px); max-height: calc(100svh - 20px); border-radius: 18px; }
  .story-editor h2 { font-size: 23px; }
  .story-fields { grid-template-columns: 1fr; }
  .story-attachments { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .story-editor-footer > div { width: 100%; }
  .story-editor-footer .btn-accent { flex: 1; padding: 12px 16px; }
}
@media (max-width: 760px) {
  .nav { display: grid; grid-template-columns: auto 1fr auto; gap: 7px 12px; padding: 10px 16px 8px; }
  .nav-logo { grid-column: 1; grid-row: 1; }
  .nav-days { grid-column: 2; grid-row: 1; justify-self: end; }
  .nav-auth { grid-column: 3; grid-row: 1; font-size: 11px; padding: 7px 12px; }
  .nav-links { grid-column: 1 / -1; grid-row: 2; width: 100%; margin: 0; justify-content: space-between; min-width: 0; }
  .nav-links a { padding: 5px 9px; }
  .hero { padding-top: 130px; }
  .community-section { padding-top: 145px; }
  body:not([data-page="home"]) main > .section:first-child { padding-top: 145px; }
  .community-wrap { padding: 0 18px; }
  .community-gate { padding: 32px 18px; }
  .community-gate h3 { font-size: 20px; }
  .community-composer, .community-card { padding: 20px; }
  .composer-footer p { font-size: 10px; }
  .composer-footer .btn { width: 100%; }
  .wishes-grid { grid-template-columns: 1fr; }
  .identity-dialog { padding: 30px 24px 24px; }
  .identity-dialog h2 { font-size: 23px; }
  .board-toolbar { align-items: flex-start; }
  .board-toolbar p { max-width: 175px; }
}
