/* ============================================================
   辰 & 雨 · 恋爱纪念站
   奶油暖调 · 纸感 · 手写字
   ============================================================ */

:root {
  --bg:        #fbf5ef;
  --bg-2:      #f6ece3;
  --paper:     #fffcf8;
  --ink:       #453531;
  --ink-2:     #7b685f;
  --ink-3:     #a8948a;
  --rose:      #c97b84;
  --rose-2:    #ae5f6c;
  --rose-soft: #f7e4e6;
  --peach:     #f8e3d3;
  --butter:    #fdf2d8;
  --sage:      #9aa88f;
  --gold:      #c2a06a;
  --line:      #ecdcd1;
  --line-2:    #f3e7de;
  --shadow-sm: 0 2px 8px rgba(120, 84, 70, .06);
  --shadow:    0 10px 30px -12px rgba(120, 84, 70, .22);
  --shadow-lg: 0 30px 60px -30px rgba(110, 74, 62, .35);
  --r:         18px;
  --r-sm:      12px;
  --kai: "Kaiti SC", "STKaiti", "KaiTi", "楷体", "Songti SC", "Noto Serif SC", serif;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "SimSun", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1000px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 12% -8%, #fdeee6 0%, transparent 60%),
    radial-gradient(900px 500px at 92% 4%, #f7e7ea 0%, transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.75;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.055'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

::selection { background: var(--rose-soft); color: var(--rose-2); }

/* ---------------- 顶栏 ---------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px clamp(16px, 4vw, 34px);
  background: rgba(251, 245, 239, .82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(236, 220, 209, .7);
}

.brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--kai);
  font-size: 21px;
  letter-spacing: .08em;
  color: var(--ink);
  flex: none;
}
.brand-name { font-weight: 700; }
.brand-heart {
  width: 13px; height: 13px;
  fill: var(--rose);
  transform: translateY(-1px);
  animation: beat 2.6s ease-in-out infinite;
}
@keyframes beat {
  0%, 100% { transform: translateY(-1px) scale(1); opacity: .85; }
  45%      { transform: translateY(-1px) scale(1.18); opacity: 1; }
}

.nav { display: flex; gap: 2px; margin-left: auto; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--ink-2);
  transition: background .25s, color .25s, transform .25s;
}
.nav-link svg { width: 15px; height: 15px; fill: currentColor; opacity: .62; }
.nav-link:hover { background: rgba(255, 255, 255, .7); color: var(--ink); }
.nav-link.is-on {
  background: var(--rose);
  color: #fff9f5;
  box-shadow: 0 6px 16px -8px rgba(174, 95, 108, .9);
}
.nav-link.is-on svg { opacity: .95; }

.topbar-side { display: flex; align-items: center; gap: 8px; margin-left: 10px; }
.icon-btn {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  color: var(--ink-2);
  transition: background .25s, color .25s;
}
.icon-btn svg { width: 17px; height: 17px; fill: currentColor; opacity: .7; }
.icon-btn:hover, .icon-btn.is-on { background: rgba(255, 255, 255, .8); color: var(--rose-2); }
.text-btn {
  border: 0; background: none; cursor: pointer;
  color: var(--ink-2); font-size: 13px;
  padding: 6px 4px;
}
.text-btn:hover { color: var(--rose-2); }

/* ---------------- 布局 ---------------- */

.wrap {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 26px clamp(16px, 4vw, 28px) 60px;
}

.block { margin-top: 42px; }
.block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.block-head h2 {
  font-family: var(--kai);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: .06em;
  margin: 0;
  display: flex; align-items: center; gap: 10px;
}
.block-head h2::before {
  content: "";
  width: 5px; height: 18px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--rose), #e6b3b8);
}
.more { font-size: 13px; color: var(--ink-3); transition: color .2s, gap .2s; }
.more:hover { color: var(--rose-2); }
.muted { font-size: 13px; color: var(--ink-3); }

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.page-title {
  font-family: var(--kai);
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 700;
  letter-spacing: .1em;
  margin: 0 0 4px;
}
.page-desc { margin: 0; color: var(--ink-2); font-size: 14px; }

/* ---------------- 按钮 ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 14px;
  cursor: pointer;
  transition: transform .2s, box-shadow .25s, background .25s, color .25s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary {
  background: linear-gradient(135deg, #cf8590, #b5636f);
  color: #fff8f4;
  box-shadow: 0 10px 22px -12px rgba(174, 95, 108, .95);
}
.btn-primary:hover { box-shadow: 0 14px 28px -12px rgba(174, 95, 108, .95); transform: translateY(-1px); }
.btn-ghost {
  background: rgba(255, 255, 255, .75);
  border-color: var(--line);
  color: var(--ink-2);
}
.btn-ghost:hover { border-color: #e2c8c0; color: var(--rose-2); background: #fff; }
.btn-sm { padding: 7px 15px; font-size: 13px; }
.btn-block { width: 100%; }

.chip {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .9);
  color: var(--ink-2);
  font-size: 11.5px;
  padding: 4px 9px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s;
}
.chip:hover { border-color: #e0c4bc; color: var(--rose-2); }
.chip.is-on { background: var(--rose-soft); border-color: #e9c3c6; color: var(--rose-2); }
.chip-danger:hover { border-color: #e3b3b3; color: #b34a4a; background: #fdf0f0; }
.link-danger {
  border: 0; background: none; cursor: pointer;
  color: var(--ink-3); font-size: 12.5px; padding: 0;
}
.link-danger:hover { color: #b34a4a; }

/* ---------------- Flash ---------------- */

.flash {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 16px auto -6px;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: rise .45s both;
}
.flash span { flex: 1; }
.flash-ok  { background: #eef6ec; border: 1px solid #d9e9d4; color: #4d6b46; }
.flash-err { background: #fdeeee; border: 1px solid #f2d3d3; color: #a84949; }
.flash-warn{ background: #fdf5e4; border: 1px solid #f0e2c2; color: #8a6c31; }
.flash-close {
  border: 0; background: none; cursor: pointer;
  font-size: 18px; line-height: 1; color: inherit; opacity: .5;
}
.flash-close:hover { opacity: 1; }

/* ---------------- 首页 Hero ---------------- */

.hero {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: clamp(30px, 6vw, 62px) clamp(24px, 5vw, 56px);
  background:
    radial-gradient(700px 320px at 82% 12%, rgba(255, 246, 238, .9), transparent 70%),
    radial-gradient(560px 300px at 10% 92%, rgba(247, 227, 230, .9), transparent 72%),
    linear-gradient(140deg, #fff8f1 0%, #f8e9e2 55%, #f6dfe0 100%);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: var(--shadow-lg);
  animation: rise .7s both;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
  pointer-events: none;
}
.hero.has-photo::before { content: none; }
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  animation: heroZoom 22s ease-in-out infinite alternate;
}
.hero.has-photo::after {
  background: linear-gradient(180deg, rgba(52, 34, 30, .20) 0%, rgba(52, 34, 30, .30) 28%, rgba(38, 24, 21, .74) 62%, rgba(30, 19, 17, .93) 100%);
  box-shadow: none;
}
@keyframes heroZoom {
  from { transform: scale(1.03); }
  to   { transform: scale(1.1); }
}

.hero-inner { position: relative; z-index: 2; max-width: 640px; }

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(255, 255, 255, .9);
  font-size: 12.5px;
  letter-spacing: .16em;
  color: var(--ink-2);
}
.kicker-num {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--rose-2);
  letter-spacing: 0;
}

.hero-title {
  font-family: var(--kai);
  font-size: clamp(34px, 7vw, 54px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .1em;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 18px);
  flex-wrap: wrap;
}
.hero-amp svg {
  width: clamp(16px, 2.6vw, 22px);
  height: clamp(16px, 2.6vw, 22px);
  fill: var(--rose);
  opacity: .9;
}
.hero-note {
  font-family: var(--kai);
  font-size: clamp(15px, 2.2vw, 17.5px);
  color: var(--ink-2);
  margin: 0 0 30px;
  letter-spacing: .05em;
  max-width: 30em;
}

.hero.has-photo .hero-title,
.hero.has-photo .hero-note,
.hero.has-photo .hero-since { color: #fffaf5; text-shadow: 0 1px 3px rgba(28, 16, 12, .5), 0 2px 22px rgba(28, 16, 12, .45); }
.hero.has-photo .hero-amp svg { fill: #ffd9dc; }
.hero.has-photo .hero-kicker {
  background: rgba(255, 250, 245, .94);
  border-color: rgba(255, 255, 255, .9);
  color: var(--ink-2);
  box-shadow: 0 8px 22px -16px rgba(30, 18, 14, .9);
}
.hero.has-photo .kicker-num { color: var(--rose-2); text-shadow: none; }

.counter {
  display: flex;
  gap: clamp(14px, 3.4vw, 30px);
  flex-wrap: wrap;
  align-items: baseline;
}
.counter-label {
  flex: 1 1 100%;
  font-size: 11.5px;
  letter-spacing: .18em;
  color: var(--ink-3);
  margin-bottom: -6px;
}
.hero.has-photo .counter-label { color: rgba(255, 246, 240, .78); }
.counter-cell {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.counter-cell b {
  font-family: var(--serif);
  font-size: clamp(26px, 4.6vw, 34px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  color: var(--ink);
}
.counter-cell i {
  font-style: normal;
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: .1em;
}
.hero.has-photo .counter-cell b { color: #fffaf5; }
.hero.has-photo .counter-cell i { color: rgba(255, 246, 240, .75); }
.hero-since {
  margin: 12px 0 0;
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--ink-3);
}

/* 心形飘落 */
.hero-fall { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.petal {
  position: absolute;
  top: -8%;
  width: 12px; height: 12px;
  fill: rgba(201, 123, 132, .35);
  animation: fall linear infinite;
}
.hero.has-photo .petal { fill: rgba(255, 226, 228, .55); }
@keyframes fall {
  0%   { transform: translateY(-6vh) rotate(0deg) scale(.8); opacity: 0; }
  12%  { opacity: .85; }
  88%  { opacity: .85; }
  100% { transform: translateY(88vh) rotate(240deg) scale(1); opacity: 0; }
}

/* ---------------- 首页小卡 ---------------- */

.mini-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.mini-card {
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform .3s, box-shadow .3s;
}
.mini-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.mini-label { font-size: 12px; color: var(--ink-3); letter-spacing: .1em; }
.mini-value {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
}
.mini-value em { font-style: normal; font-size: 13px; color: var(--ink-3); font-family: var(--sans); }
.mini-meta { font-size: 11.5px; color: var(--ink-3); line-height: 1.6; }

/* ---------------- 照片条 / 网格 ---------------- */

.strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.strip-item {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #f2e6dc;
  box-shadow: var(--shadow-sm);
}
.strip-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .7, .3, 1);
}
.strip-item:hover img { transform: scale(1.05); }
.strip-cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px 12px 10px;
  font-size: 12px;
  color: #fff9f4;
  background: linear-gradient(180deg, transparent, rgba(50, 32, 28, .68));
  opacity: 0;
  transition: opacity .3s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.strip-item:hover .strip-cap { opacity: 1; }

.masonry {
  column-count: 3;
  column-gap: 14px;
}
.ph {
  break-inside: avoid;
  margin: 0 0 14px;
  background: var(--paper);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-sm);
  transition: transform .35s, box-shadow .35s;
  animation: rise .5s both;
  animation-delay: calc(var(--i, 0) * 40ms);
}
.ph:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.ph-img {
  background: #f1e5db;
  cursor: zoom-in;
  overflow: hidden;
}
.ph-img img {
  width: 100%;
  height: auto;
  transition: transform .6s cubic-bezier(.2, .7, .3, 1);
}
.ph-img:hover img { transform: scale(1.03); }
.ph figcaption {
  padding: 10px 13px 0;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.6;
}
.ph-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 13px 11px;
}
.ph-foot time { font-size: 11px; color: var(--ink-3); letter-spacing: .04em; }
.ph-ops { display: flex; gap: 5px; align-items: center; }
.ph-ops form { margin: 0; }

/* ---------------- 灯箱 ---------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 4vh 3vw;
  background: rgba(38, 26, 24, .93);
  backdrop-filter: blur(6px);
  animation: fadeIn .25s both;
}
.lightbox[hidden] { display: none; }
.lb-body { margin: 0; max-width: min(1100px, 92vw); text-align: center; }
.lb-body img {
  max-height: 78vh;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8);
}
.lb-body figcaption {
  margin-top: 12px;
  color: rgba(255, 246, 240, .92);
  font-size: 13.5px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.lb-when { color: rgba(255, 246, 240, .5); }
.lb-close {
  position: absolute;
  top: 16px; right: 20px;
  border: 0; background: none; cursor: pointer;
  color: rgba(255, 246, 240, .7);
  font-size: 30px; line-height: 1;
}
.lb-close:hover { color: #fff; }
.lb-nav {
  border: 0; background: rgba(255, 255, 255, .08);
  color: rgba(255, 246, 240, .8);
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  flex: none;
  transition: background .2s;
}
.lb-nav:hover { background: rgba(255, 255, 255, .2); }

/* ---------------- 便签墙 ---------------- */

.wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
  align-items: start;
}
.sticky {
  position: relative;
  margin: 0;
  padding: 22px 18px 14px;
  border-radius: 3px;
  background: var(--butter);
  box-shadow: 0 12px 26px -18px rgba(110, 74, 62, .55), 0 1px 0 rgba(255, 255, 255, .7) inset;
  transition: transform .35s, box-shadow .35s;
}
.sticky.tone-her { background: #fce9ec; }
.sticky.tilt-1 { transform: rotate(-.7deg); }
.sticky.tilt-2 { transform: rotate(.5deg); }
.sticky.tilt-3 { transform: rotate(-.3deg); }
.sticky.tilt-4 { transform: rotate(.8deg); }
.sticky:hover { transform: rotate(0) translateY(-3px); box-shadow: 0 20px 34px -20px rgba(110, 74, 62, .55); }
.sticky-pin {
  position: absolute;
  top: -5px; left: 50%;
  width: 34px; height: 10px;
  transform: translateX(-50%) rotate(-2deg);
  background: rgba(255, 255, 255, .62);
  border-radius: 1px;
  box-shadow: 0 1px 3px rgba(120, 84, 70, .16);
}
.sticky p {
  margin: 0 0 14px;
  font-family: var(--kai);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: .03em;
  color: #4c3a32;
  word-break: break-word;
}
.sticky footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  color: rgba(76, 58, 50, .55);
}
.sticky footer span { font-weight: 600; letter-spacing: .05em; }
.sticky-del {
  position: absolute;
  top: 6px; right: 6px;
  opacity: 0;
  transition: opacity .25s;
}
.sticky:hover .sticky-del { opacity: 1; }
.sticky-del button {
  border: 0; background: none; cursor: pointer;
  color: rgba(76, 58, 50, .35);
  font-size: 17px; line-height: 1;
  padding: 4px 6px;
}
.sticky-del button:hover { color: #a84949; }

/* ---------------- 卡片 / 面板 ---------------- */

.panel {
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  padding: 22px clamp(18px, 3vw, 26px);
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
}
.panel-title {
  font-family: var(--kai);
  font-size: 18px;
  letter-spacing: .08em;
  margin: 0 0 16px;
}
.panel-text { margin: 0 0 14px; color: var(--ink-2); font-size: 13.5px; }
.collapsible { display: none; }
.collapsible.is-open { display: block; animation: rise .4s both; }

.cta-card {
  margin-top: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 26px clamp(20px, 4vw, 34px);
  border-radius: 22px;
  background:
    radial-gradient(500px 200px at 88% 10%, rgba(255, 255, 255, .5), transparent 70%),
    linear-gradient(135deg, #f9e7e0, #f4dee3 60%, #f7e8dd);
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: var(--shadow);
}
.cta-text h2 {
  font-family: var(--kai);
  font-size: 20px;
  letter-spacing: .06em;
  margin: 0 0 6px;
}
.cta-text p { margin: 0; font-size: 13.5px; color: var(--ink-2); max-width: 46em; }

/* ---------------- 表单 ---------------- */

.form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: flex; gap: 14px; flex-wrap: wrap; }
.form-row .field { flex: 1 1 240px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-narrow { max-width: 260px; }
.field-label {
  font-size: 12.5px;
  color: var(--ink-2);
  letter-spacing: .07em;
}
.field-tip { font-size: 11.5px; color: var(--ink-3); line-height: 1.6; }

input[type="text"],
input[type="password"],
input[type="date"],
textarea {
  width: 100%;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
  background: #fffdfa;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 14px;
  outline: none;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
textarea { resize: vertical; line-height: 1.8; font-family: var(--kai); font-size: 15.5px; letter-spacing: .02em; }
input::placeholder, textarea::placeholder { color: #c3b1a7; font-family: var(--sans); font-size: 13.5px; }
input:focus, textarea:focus {
  border-color: #e0bcb8;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(201, 123, 132, .1);
}
input[type="file"] { font-size: 12.5px; color: var(--ink-2); }

.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}
.hint, .counter-hint { font-size: 12px; color: var(--ink-3); margin-right: auto; }

.who-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: #f6ebe4;
  border: 1px solid var(--line-2);
  gap: 2px;
  align-self: flex-start;
}
.who {
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 12.5px;
  color: var(--ink-2);
  padding: 6px 16px;
  border-radius: 999px;
  transition: all .25s;
}
.who.is-on {
  background: #fff;
  color: var(--rose-2);
  box-shadow: 0 2px 8px -4px rgba(120, 84, 70, .4);
}

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 34px 20px;
  border: 1.5px dashed #e3cdc2;
  border-radius: 16px;
  background: linear-gradient(180deg, #fffaf5, #fdf4ec);
  cursor: pointer;
  text-align: center;
  transition: border-color .25s, background .25s, transform .2s;
}
.dropzone:hover, .dropzone.is-drag {
  border-color: var(--rose);
  background: #fff7f6;
  transform: translateY(-1px);
}
.dz-icon svg { width: 26px; height: 26px; fill: var(--rose); opacity: .8; }
.dz-title { font-size: 14px; color: var(--ink); }
.dz-hint { font-size: 11.5px; color: var(--ink-3); }

.preview-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.preview-strip img {
  width: 74px; height: 74px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}

/* ---------------- 真心话 ---------------- */

.truth-stage {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 18px;
  align-items: start;
}
.truth-card {
  position: relative;
  padding: 34px clamp(20px, 3vw, 30px) 26px;
  border-radius: 20px;
  background:
    radial-gradient(400px 200px at 85% 0%, rgba(255, 255, 255, .85), transparent 65%),
    linear-gradient(150deg, #fff6ef, #fbe6e8);
  border: 1px solid #f6dfe3;
  box-shadow: var(--shadow);
  min-height: 250px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: rise .6s both;
}
.truth-card::before {
  content: "“";
  position: absolute;
  top: 2px; left: 16px;
  font-family: var(--serif);
  font-size: 64px;
  color: rgba(201, 123, 132, .22);
  line-height: 1;
}
.truth-label {
  font-size: 11.5px;
  letter-spacing: .18em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.truth-label b { font-family: var(--serif); color: var(--rose-2); font-size: 13px; }
.truth-q {
  font-family: var(--kai);
  font-size: clamp(18px, 2.6vw, 22px);
  line-height: 1.7;
  letter-spacing: .04em;
  margin: 0;
  flex: 1;
}
.truth-q.is-swap { animation: swapIn .5s both; }
@keyframes swapIn {
  from { opacity: 0; transform: translateY(8px) rotateX(-12deg); }
  to   { opacity: 1; transform: none; }
}
#drawBtn { align-self: flex-start; }

.truth-answer {
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: 20px;
  padding: 22px clamp(18px, 3vw, 26px);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.timeline { position: relative; padding-left: 26px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 6px; top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, transparent, #ecd6cd 8%, #ecd6cd 92%, transparent);
}
.tl-item { position: relative; padding-bottom: 22px; }
.tl-dot {
  position: absolute;
  left: -26px; top: 8px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--rose);
  box-shadow: 0 0 0 3px rgba(201, 123, 132, .12);
}
.tl-body {
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}
.tl-q {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: .04em;
}
.tl-a {
  margin: 0 0 12px;
  font-family: var(--kai);
  font-size: 16px;
  line-height: 1.85;
  color: #4a3830;
}
.tl-meta { display: flex; align-items: center; gap: 12px; font-size: 11.5px; color: var(--ink-3); flex-wrap: wrap; }
.tl-meta form { margin: 0; }
.who-tag {
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: .05em;
}
.who-him { background: #eef1e9; color: #5d6b52; }
.who-her { background: #fbe6e9; color: #a8555f; }

/* ---------------- 信箱 ---------------- */

.letter-form textarea { min-height: 180px; }
.letter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.letter-card {
  position: relative;
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fdf4ea, #faeae4);
  border: 1px solid #f2e0d5;
  box-shadow: var(--shadow-sm);
}
.env {
  position: relative;
  flex: none;
  width: 58px; height: 42px;
  border-radius: 4px;
  background: linear-gradient(160deg, #fffdfa, #f6e6da);
  border: 1px solid #e8d3c5;
  box-shadow: inset 0 -8px 0 -6px rgba(0, 0, 0, .04);
}
.env::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background: linear-gradient(160deg, transparent 48%, #ecd7c9 48%, #ecd7c9 52%, transparent 52%);
  clip-path: polygon(0 0, 100% 0, 50% 62%);
  opacity: .5;
}
.wax {
  position: absolute;
  bottom: -9px; right: -9px;
  display: grid; place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d98b93, #b36974);
  color: #fff3ee;
  font-family: var(--kai);
  font-size: 11px;
  box-shadow: 0 3px 8px -3px rgba(150, 70, 80, .8);
}
.letter-body { min-width: 0; }
.letter-title {
  font-family: var(--kai);
  font-size: 16.5px;
  margin: 0 0 3px;
  letter-spacing: .04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.letter-meta { margin: 0 0 6px; font-size: 11.5px; color: var(--ink-3); }
.seal-line { margin: 0; font-size: 12px; color: var(--rose-2); }
.seal-line b { font-family: var(--serif); font-size: 14px; }
.card-del {
  position: absolute;
  top: 8px; right: 8px;
  opacity: 0;
  transition: opacity .25s;
}
.letter-card:hover .card-del { opacity: 1; }
.card-del button {
  border: 0; background: none; cursor: pointer;
  color: var(--ink-3); font-size: 17px; line-height: 1; padding: 4px 6px;
}
.card-del button:hover { color: #a84949; }

.letter-list { display: flex; flex-direction: column; gap: 10px; }
.letter-item {
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow .3s;
}
.letter-item[open] { box-shadow: var(--shadow); }
.letter-item summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  cursor: pointer;
  list-style: none;
}
.letter-item summary::-webkit-details-marker { display: none; }
.li-env {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: #fbece6;
  flex: none;
}
.li-env svg { width: 17px; height: 17px; fill: var(--rose-2); opacity: .8; }
.li-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.li-title { font-family: var(--kai); font-size: 16px; letter-spacing: .04em; }
.li-meta { font-size: 11.5px; color: var(--ink-3); }
.li-open { font-size: 11.5px; color: var(--ink-3); flex: none; }
.letter-item[open] .li-open { color: var(--rose-2); }
.li-content {
  padding: 4px 22px 20px;
  font-family: var(--kai);
  font-size: 16px;
  line-height: 2;
  letter-spacing: .03em;
  color: #4a3830;
  border-top: 1px dashed #f0e0d8;
  margin: 0 18px;
  padding-top: 16px;
}
.li-del { padding: 0 22px 16px; margin: 0; }

/* ---------------- 心语 AI ---------------- */

.ai-badge {
  font-size: 11.5px;
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: .06em;
}
.ai-badge.is-live { background: #eef6ec; border: 1px solid #d9e9d4; color: #4d6b46; }
.ai-badge.is-local { background: #fdf5e4; border: 1px solid #f0e2c2; color: #8a6c31; }

.ai-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.ai-stats > div {
  flex: 1 1 150px;
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.ai-stats b {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
}
.ai-stats span { font-size: 11.5px; color: var(--ink-3); }

.notice {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-radius: 14px;
  background: #fdf7ea;
  border: 1px solid #f1e3c6;
  color: #7d6234;
  font-size: 13px;
  line-height: 1.75;
  margin-bottom: 18px;
}
.notice code {
  background: rgba(255, 255, 255, .75);
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 12px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}

.ai-kinds {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.ai-kind {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  border-radius: 18px;
  background: var(--paper);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.ai-kind:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #eed6d4;
}
.ak-icon {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 11px;
  background: #fbeae7;
  margin-bottom: 4px;
}
.ak-icon svg { width: 17px; height: 17px; fill: var(--rose-2); }
.ak-title { font-family: var(--kai); font-size: 17px; letter-spacing: .06em; }
.ak-desc { font-size: 12px; color: var(--ink-3); line-height: 1.6; flex: 1; }
.ai-kind .btn { align-self: flex-start; margin-top: 8px; }

.report-list { display: flex; flex-direction: column; gap: 16px; }
.report {
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: 18px;
  padding: 22px clamp(18px, 3vw, 28px);
  box-shadow: var(--shadow-sm);
  animation: rise .5s both;
}
.report.is-new {
  border-color: #eccdcf;
  box-shadow: 0 0 0 3px rgba(201, 123, 132, .08), var(--shadow);
}
.report-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 6px;
  border-bottom: 1px dashed #f0e0d8;
}
.report-head > div { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.report-head form { margin: 0; }
.report-kind {
  font-family: var(--kai);
  font-size: 15px;
  letter-spacing: .06em;
  color: var(--rose-2);
}
.report-src {
  font-size: 10.5px;
  padding: 1px 7px;
  border-radius: 999px;
  background: #fdf5e4;
  color: #8a6c31;
  border: 1px solid #f0e2c2;
}
.report-head time { font-size: 11.5px; color: var(--ink-3); }

.report-body { font-size: 14.5px; line-height: 1.95; color: #4a3830; }
.report-body h3 {
  font-family: var(--kai);
  font-size: 18px;
  letter-spacing: .05em;
  margin: 22px 0 8px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.report-body h3::before {
  content: "";
  width: 5px; height: 15px;
  border-radius: 3px;
  background: linear-gradient(180deg, #e2a8ac, #f0cfc9);
  flex: none;
}
.report-body h3:first-child { margin-top: 10px; }
.report-body p { margin: 0 0 10px; }
.report-body ul { margin: 0 0 12px; padding-left: 20px; }
.report-body li { margin-bottom: 6px; }
.report-body strong { color: var(--rose-2); font-weight: 600; }
.report-body blockquote {
  margin: 0 0 16px;
  padding: 10px 16px;
  border-left: 3px solid #eed3cd;
  background: #fdf8f3;
  border-radius: 0 10px 10px 0;
  color: var(--ink-2);
  font-size: 13px;
}
.report-body blockquote p { margin: 0; }

.ai-loading {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: rgba(251, 245, 239, .88);
  backdrop-filter: blur(6px);
  animation: fadeIn .3s both;
}
.ai-loading[hidden] { display: none; }
.al-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 34px 42px;
  background: var(--paper);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line-2);
  text-align: center;
}
.al-spark svg {
  width: 30px; height: 30px;
  fill: var(--rose);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(.9); opacity: .6; }
  50%      { transform: scale(1.12); opacity: 1; }
}
.ai-loading p {
  margin: 0;
  font-family: var(--kai);
  font-size: 17px;
  letter-spacing: .06em;
}
.al-tip { font-size: 11.5px; color: var(--ink-3); }

/* ---------------- 设置 ---------------- */

.hero-set { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.hero-thumb {
  width: 168px; height: 106px;
  border-radius: 14px;
  background: linear-gradient(140deg, #fbe9e1, #f6e0e3) center/cover no-repeat;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 12px;
  color: var(--ink-3);
  flex: none;
  overflow: hidden;
}
.hero-thumb img { width: 100%; height: 100%; object-fit: cover; }
.kv { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.kv > div {
  display: flex;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #f2e4dc;
  font-size: 13.5px;
}
.kv > div:last-child { border-bottom: 0; padding-bottom: 0; }
.kv dt { flex: none; width: 92px; color: var(--ink-3); }
.kv dd { margin: 0; color: var(--ink-2); word-break: break-word; }
.kv code {
  background: #fbf1ea;
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 12px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}

/* ---------------- Hero 装饰 / 快捷入口 ---------------- */

.hero-deco {
  position: absolute;
  right: clamp(10px, 4vw, 40px);
  bottom: clamp(14px, 4vw, 36px);
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: clamp(8px, 2vw, 16px);
  color: #d8a7a4;
  pointer-events: none;
}
.deco-heart {
  width: clamp(72px, 12vw, 132px);
  height: auto;
  opacity: .6;
}
.deco-stamp {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border: 1px solid #e3bfbc;
  border-radius: 50%;
  transform: rotate(-9deg);
  font-family: var(--serif);
  font-size: 10.5px;
  line-height: 1.55;
  letter-spacing: .12em;
  color: #c28d8a;
  text-align: center;
  opacity: .85;
}
.deco-stamp b { font-size: 12.5px; letter-spacing: .06em; }

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.hero-btn {
  padding: 8px 17px;
  border-radius: 999px;
  font-size: 12.5px;
  letter-spacing: .05em;
  border: 1px solid rgba(201, 123, 132, .35);
  background: rgba(255, 255, 255, .62);
  color: var(--rose-2);
  backdrop-filter: blur(6px);
  transition: background .25s, transform .25s, box-shadow .25s;
}
.hero-btn:hover {
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -12px rgba(174, 95, 108, .9);
}
.hero.has-photo .hero-btn {
  background: rgba(255, 248, 243, .9);
  border-color: rgba(255, 255, 255, .7);
  color: #7c4a4e;
  text-shadow: none;
  box-shadow: 0 6px 18px -10px rgba(20, 10, 8, .8);
}
.hero.has-photo .hero-btn:hover { background: rgba(255, 248, 243, .3); }

/* ---------------- 今日一问 ---------------- */

.daily-q {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 24px clamp(18px, 3vw, 28px);
  border-radius: 18px;
  background: linear-gradient(135deg, #fffaf4, #fdefe9);
  border: 1px solid #f4e3da;
  box-shadow: var(--shadow-sm);
}
.dq-mark {
  font-family: var(--serif);
  font-size: 54px;
  line-height: .8;
  height: 30px;
  color: rgba(201, 123, 132, .3);
}
.dq-text {
  flex: 1 1 260px;
  margin: 0;
  font-family: var(--kai);
  font-size: clamp(16px, 2.1vw, 19px);
  line-height: 1.75;
  letter-spacing: .03em;
}

/* ---------------- 起步引导 ---------------- */

.start-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.start-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 22px 20px;
  border-radius: 18px;
  background: var(--paper);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.start-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #eed6d4;
}
.sc-icon {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 11px;
  background: #fbeae7;
  margin-bottom: 3px;
}
.sc-icon svg { width: 17px; height: 17px; fill: var(--rose-2); }
.sc-title { font-family: var(--kai); font-size: 16px; letter-spacing: .05em; }
.sc-text { font-size: 12.5px; color: var(--ink-3); line-height: 1.65; }

/* ---------------- 表白页 ---------------- */

.confess {
  position: relative;
  overflow: hidden;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(30px, 6vw, 60px) clamp(22px, 5vw, 52px);
  border-radius: 26px;
  text-align: center;
  background:
    radial-gradient(600px 300px at 50% -10%, rgba(255, 255, 255, .92), transparent 70%),
    radial-gradient(500px 300px at 15% 105%, rgba(248, 226, 231, .85), transparent 72%),
    linear-gradient(160deg, #fff8f1, #fbeae4 60%, #f8e3e6);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: var(--shadow-lg);
  animation: rise .8s both;
}
.confess.is-yes {
  background:
    radial-gradient(600px 340px at 50% -5%, rgba(255, 255, 255, .95), transparent 72%),
    radial-gradient(520px 320px at 85% 100%, #f9dfe4, transparent 70%),
    linear-gradient(160deg, #fffaf3, #fbe9e1 55%, #f7dfe4);
}
.confess-inner { position: relative; z-index: 2; }

.confess-kicker {
  margin: 0 0 8px;
  font-size: 11.5px;
  letter-spacing: .22em;
  color: var(--ink-2);
}

.confess-lines {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 26px 0 32px;
}
.confess-lines p {
  margin: 0;
  font-family: var(--kai);
  font-size: clamp(16px, 2.4vw, 19px);
  line-height: 1.95;
  letter-spacing: .05em;
  color: var(--ink);
  opacity: 0;
  animation: lineIn .95s var(--d, 0s) both;
}
@keyframes lineIn {
  from { opacity: 0; transform: translateY(12px); filter: blur(3px); }
  to   { opacity: 1; transform: none; filter: none; }
}

.confess-q { border-top: 1px dashed #eed9cf; padding-top: 28px; }
.cq-text {
  margin: 0;
  font-family: var(--kai);
  font-size: clamp(21px, 3.6vw, 27px);
  letter-spacing: .07em;
  line-height: 1.7;
  color: var(--ink);
}
.confess-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 22px;
}
.btn-lg { padding: 13px 34px; font-size: 15px; letter-spacing: .12em; }
.confess-tip {
  margin: 18px 0 0;
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: .1em;
}

.confess-result { padding: 6px 0 0; }
.confess-yes {
  font-family: var(--kai);
  font-size: clamp(44px, 10vw, 68px);
  letter-spacing: .24em;
  color: var(--rose-2);
  margin: 6px 0 22px;
  text-indent: .24em;
  animation: yesIn 1.2s cubic-bezier(.2, .8, .3, 1) both;
}
@keyframes yesIn {
  0%   { opacity: 0; transform: scale(.86); letter-spacing: .5em; }
  100% { opacity: 1; transform: scale(1); }
}
.confess-later {
  font-family: var(--kai);
  font-size: clamp(30px, 7vw, 44px);
  letter-spacing: .2em;
  color: var(--ink-2);
  margin: 6px 0 22px;
  text-indent: .2em;
}
.confess-after {
  margin: 0;
  font-family: var(--kai);
  font-size: clamp(16px, 2.4vw, 19px);
  line-height: 2.1;
  letter-spacing: .05em;
  color: var(--ink);
}
.confess-sig {
  margin: 22px 0 0;
  font-size: 12.5px;
  letter-spacing: .12em;
  color: var(--ink-3);
}
.confess-reset { margin: 28px 0 0; }
.confess-actions.center { margin-top: 26px; }

.confess-hearts { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.confess-hearts .petal { fill: rgba(201, 123, 132, .4); }

.hero-btn-accent {
  border-color: rgba(201, 123, 132, .6);
  background: rgba(255, 246, 243, .88);
  color: var(--rose-2);
  font-weight: 600;
}
.hero.has-photo .hero-btn-accent { background: #fdf0ef; color: #a8555f; border-color: #fff; }

/* ---------------- 空状态 ---------------- */

.empty, .empty-soft {
  text-align: center;
  padding: 46px 20px;
  border-radius: var(--r);
  background: rgba(255, 252, 248, .7);
  border: 1px dashed #ebd9cf;
}
.empty-soft { padding: 28px 20px; }
.empty-icon { width: 30px; height: 30px; fill: #d9bdb3; margin: 0 auto 12px; }
.empty h3 {
  font-family: var(--kai);
  font-size: 18px;
  letter-spacing: .06em;
  margin: 0 0 6px;
}
.empty p, .empty-soft p { margin: 0 0 14px; font-size: 13.5px; color: var(--ink-3); max-width: 34em; margin-inline: auto; }
.empty-soft p { margin-bottom: 12px; }

/* ---------------- 页脚 / 手机标签栏 ---------------- */

.foot {
  text-align: center;
  padding: 30px 20px 40px;
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: .1em;
}
.foot p { margin: 0; }

.tabbar { display: none; }

/* ---------------- 登录页 ---------------- */

.page-login {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  overflow: hidden;
}
.login-glow { position: fixed; inset: 0; pointer-events: none; }
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .55;
  animation: drift 16s ease-in-out infinite alternate;
}
.g1 { width: 44vw; height: 44vw; left: -8vw; top: -10vw; background: #fbe0d6; }
.g2 { width: 38vw; height: 38vw; right: -6vw; top: 8vh; background: #f8dfe4; animation-delay: -5s; }
.g3 { width: 34vw; height: 34vw; left: 28vw; bottom: -14vw; background: #fdf0d9; animation-delay: -9s; }
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(3vw, 3vh, 0) scale(1.12); }
}

.login-shell { position: relative; z-index: 2; width: 100%; max-width: 430px; }
.login-card {
  background: rgba(255, 252, 248, .86);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 26px;
  padding: 38px clamp(24px, 7vw, 40px) 30px;
  box-shadow: 0 40px 80px -40px rgba(120, 84, 70, .45);
  text-align: center;
  animation: rise .8s both;
}
.login-kicker {
  font-size: 10.5px;
  letter-spacing: .24em;
  color: var(--rose);
  margin: 0 0 18px;
}
.login-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--kai);
  font-size: clamp(24px, 6vw, 30px);
  font-weight: 700;
  letter-spacing: .12em;
  margin: 0 0 8px;
}
.login-heart { width: 15px; height: 15px; fill: var(--rose); animation: beat 2.6s ease-in-out infinite; }
.login-sub {
  margin: 0 0 22px;
  font-family: var(--kai);
  font-size: 14px;
  color: var(--ink-2);
  letter-spacing: .12em;
}
.login-days {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 16px 0 22px;
  border-top: 1px dashed #efdfd6;
  border-bottom: 1px dashed #efdfd6;
  margin-bottom: 22px;
}
.login-days .num {
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 600;
  line-height: 1;
  color: var(--rose-2);
  letter-spacing: .02em;
}
.login-days .unit { font-size: 11.5px; color: var(--ink-3); letter-spacing: .14em; }

.login-form { display: flex; flex-direction: column; gap: 14px; text-align: left; }
.login-form .field-label { font-size: 11.5px; letter-spacing: .14em; }
.login-form input[type="password"] {
  text-align: center;
  letter-spacing: .28em;
  font-size: 16px;
  padding: 13px 14px;
}
.checkline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-2);
  cursor: pointer;
}
.checkline input { accent-color: var(--rose); width: 15px; height: 15px; }
.login-err {
  margin: -8px 0 14px;
  font-size: 12.5px;
  color: #a84949;
  background: #fdeeee;
  border: 1px solid #f2d3d3;
  border-radius: 10px;
  padding: 8px 12px;
  text-align: center;
}
.login-foot {
  margin: 22px 0 0;
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: .1em;
}

/* ---------------- 动画 ---------------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.reveal { opacity: 0; transform: translateY(18px); }
.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .3, 1);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------------- 响应式 ---------------- */

@media (max-width: 900px) {
  .masonry { column-count: 2; }
  .truth-stage { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 14.5px; }
  .nav { display: none; }
  .topbar { gap: 10px; padding: 10px 16px; }
  .brand { font-size: 19px; }
  .topbar-side { margin-left: auto; }
  .wrap { padding-top: 18px; padding-bottom: 96px; }

  .tabbar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 50;
    display: flex;
    justify-content: space-around;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    background: rgba(255, 252, 248, .93);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--line-2);
  }
  .tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 0;
    font-size: 10.5px;
    color: var(--ink-3);
    border-radius: 12px;
    transition: color .2s;
  }
  .tab svg { width: 19px; height: 19px; fill: currentColor; opacity: .75; }
  .tab.is-on { color: var(--rose-2); }
  .tab.is-on svg { opacity: 1; }

  .hero { border-radius: 20px; padding: 26px 20px 28px; }
  .hero.has-photo { min-height: 420px; display: flex; align-items: flex-end; }
  .hero-deco { display: none; }
  .start-grid { grid-template-columns: 1fr; }
  .start-card { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .sc-icon { margin-bottom: 0; }
  .sc-text { flex: 1 1 100%; }
  .hero-title { gap: 8px; }
  .counter { gap: 14px; }
  .mini-row { grid-template-columns: 1fr; }
  .mini-value { font-size: 19px; }
  .mini-card { flex-direction: row; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
  .mini-meta { flex: 1 1 100%; }
  .strip { grid-template-columns: 1fr; }
  .strip-item:nth-child(n+3) { display: none; }
  .strip-item { aspect-ratio: 16 / 10; }
  .masonry { column-count: 1; }
  .wall { grid-template-columns: 1fr; }
  .sticky { transform: none; }
  .page-head { align-items: flex-start; }
  .cta-card { flex-direction: column; align-items: flex-start; }
  .field-narrow { max-width: none; }
  .hero-set { flex-direction: column; align-items: stretch; }
  .hero-thumb { width: 100%; height: 140px; }
  .ai-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .ai-stats > div { padding: 9px 10px; align-items: center; text-align: center; }
  .ai-stats b { font-size: 17px; }
  .ai-stats span { font-size: 10px; letter-spacing: .02em; }
  .lightbox { padding: 10vh 12px 6vh; flex-wrap: wrap; }
  .lb-nav { position: absolute; bottom: 4vh; }
  .lb-prev { left: 18vw; }
  .lb-next { right: 18vw; }
  .foot { padding-bottom: 84px; }
}

/* 桌面端设置页两列 */
@media (min-width: 761px) {
  .kv > div { align-items: baseline; }
}