/* ============================================================
   拾光记 · 暖色调情侣时光记录站
   ============================================================ */

:root {
  --bg: #fbf6f0;
  --paper: #fffdf9;
  --paper-warm: #f7efe6;
  --ink: #4a3a33;
  --ink-soft: #6e5c52;
  --muted: #9a877c;
  --line: #e9dcd0;
  --rose: #c87c6c;
  --rose-deep: #a95f51;
  --rose-soft: #f4ded6;
  --sage: #8fa08c;
  --gold: #c7a878;
  --shadow-sm: 0 6px 20px rgba(93, 66, 51, .07);
  --shadow-md: 0 16px 42px rgba(93, 66, 51, .12);
  --shadow-lg: 0 30px 80px rgba(74, 51, 40, .22);
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
.hidden { display: none !important; }

svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.brand-heart svg, .login-card .brand-mark svg, .stat-icon.heart svg, .favorite-btn svg, .footer-heart svg { fill: currentColor; stroke: none; }

/* 纸张颗粒质感 */
.grain {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: .22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.38'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* ============================================================
   登录
   ============================================================ */
.login-view {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  min-height: 100vh; padding: 32px 20px; overflow: auto;
}
.login-bg { position: absolute; inset: 0; background: #d9bda6; overflow: hidden; }
.login-bg .bg-slide {
  position: absolute; inset: -4%; width: 108%; height: 108%; object-fit: cover;
  opacity: 0; animation: bgCycle 24s infinite;
}
.login-bg .bg-slide:nth-child(1) { animation-delay: 0s; }
.login-bg .bg-slide:nth-child(2) { animation-delay: 6s; }
.login-bg .bg-slide:nth-child(3) { animation-delay: 12s; }
.login-bg .bg-slide:nth-child(4) { animation-delay: 18s; }
@keyframes bgCycle {
  0% { opacity: 0; transform: scale(1.06); }
  8% { opacity: 1; }
  25% { opacity: 1; transform: scale(1.12); }
  33% { opacity: 0; }
  100% { opacity: 0; }
}
.login-veil {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(60, 40, 32, .46), rgba(92, 60, 48, .24) 45%, rgba(48, 33, 28, .52));
  backdrop-filter: blur(2px);
}
.login-card {
  position: relative; width: min(100%, 440px); padding: 42px 42px 36px;
  background: rgba(255, 253, 249, .95); border: 1px solid rgba(255,255,255,.7);
  border-radius: 28px; box-shadow: var(--shadow-lg);
  animation: cardIn .8s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
.brand-mark {
  width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center;
  background: var(--rose-soft); color: var(--rose); margin-bottom: 18px;
}
.brand-mark svg { width: 26px; height: 26px; }
.login-eyebrow, .modal-kicker, .hero-kicker {
  font-size: 10px; letter-spacing: .28em; font-weight: 700; color: var(--rose);
  margin: 0 0 8px;
}
.login-title {
  font-family: var(--serif); font-size: 40px; line-height: 1.1; margin: 0 0 12px;
  letter-spacing: .08em; color: var(--ink);
}
.login-sub { margin: 0 0 30px; color: var(--ink-soft); font-size: 14px; line-height: 1.8; }
.field-label {
  display: block; font-size: 12px; font-weight: 700; color: var(--ink-soft);
  margin: 0 0 9px; letter-spacing: .04em;
}
.field-label em { color: var(--rose); font-style: normal; }
.field-hint { font-weight: 400; font-size: 12px; letter-spacing: 0; color: var(--muted); }
.input-wrap {
  display: flex; align-items: center; gap: 8px; height: 50px; padding: 0 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 13px;
  transition: border-color .2s, box-shadow .2s;
}
.input-wrap:focus-within { border-color: var(--rose); box-shadow: 0 0 0 4px rgba(200,124,108,.12); }
.input-wrap input { flex: 1; width: 100%; border: none; outline: none; background: transparent; font-size: 14px; }
.input-wrap input::placeholder { color: #b9a99e; }
.input-prefix { color: var(--muted); font-size: 13px; padding-right: 10px; border-right: 1px solid var(--line); }
.code-btn { color: var(--rose); font-size: 12px; font-weight: 700; white-space: nowrap; }
.code-btn:disabled { color: var(--muted); cursor: not-allowed; }
.field-error { min-height: 18px; margin: 5px 0 10px; font-size: 12px; color: #c0504a; }
.shake { animation: shake .42s ease; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(7px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(3px); }
}
.primary-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 26px; border-radius: 14px; color: #fff; font-size: 14px; font-weight: 700;
  background: linear-gradient(135deg, #d08b7a, #b96657);
  box-shadow: 0 10px 24px rgba(185, 96, 82, .26);
  transition: transform .2s, box-shadow .2s, opacity .2s;
}
.primary-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(185, 96, 82, .34); }
.primary-btn:active { transform: translateY(0); }
.primary-btn:disabled { opacity: .6; cursor: wait; transform: none; }
.primary-btn svg { width: 17px; height: 17px; }
.login-submit { width: 100%; margin-top: 4px; }
.login-tip { margin: 14px 0 0; text-align: center; font-size: 11px; color: var(--muted); }
.login-footer { position: absolute; bottom: 22px; color: rgba(255,255,255,.85); font-size: 12px; letter-spacing: .12em; }

/* ============================================================
   顶部导航
   ============================================================ */
.app-view { min-height: 100vh; }
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: 74px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 64px); color: #fff;
  transition: background .35s, color .35s, box-shadow .35s, height .35s;
}
.site-header.scrolled {
  height: 64px; background: rgba(255, 253, 249, .94); color: var(--ink);
  box-shadow: 0 4px 24px rgba(93,66,51,.08); backdrop-filter: blur(14px);
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.brand-heart {
  width: 32px; height: 32px; display: grid; place-items: center; border-radius: 11px;
  background: rgba(255,255,255,.18); color: #fff; transition: background .35s, color .35s;
}
.scrolled .brand-heart { background: var(--rose-soft); color: var(--rose); }
.brand-heart svg { width: 16px; height: 16px; }
.brand-text { font-family: var(--serif); font-size: 21px; font-weight: 700; letter-spacing: .12em; }
.nav-links { display: flex; gap: 34px; font-size: 13px; }
.nav-links a { position: relative; opacity: .88; transition: opacity .2s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 1px;
  background: currentColor; transition: right .25s;
}
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { right: 0; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.role-badge {
  font-size: 11px; letter-spacing: .12em; padding: 5px 11px; border-radius: 999px;
  background: rgba(255,255,255,.16); color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.24); white-space: nowrap;
}
.scrolled .role-badge { background: var(--paper-warm); color: var(--ink-mute, #8d7d72); border-color: rgba(0,0,0,.08); }
body[data-role="view"] .edit-only { display: none !important; }
.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(255,255,255,.14); color: #fff; transition: background .35s, color .35s, transform .2s;
}
.icon-btn:hover { transform: rotate(25deg); }
.scrolled .icon-btn { background: var(--paper-warm); color: var(--ink-soft); }
.icon-btn svg { width: 17px; height: 17px; }
.nav-add {
  display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 18px;
  border-radius: 999px; background: #fff; color: var(--rose-deep); font-size: 13px; font-weight: 700;
  box-shadow: 0 8px 20px rgba(70,40,30,.14); transition: transform .2s;
}
.nav-add:hover { transform: translateY(-2px); }
.scrolled .nav-add { background: var(--rose); color: #fff; }
.nav-add svg { width: 15px; height: 15px; }

/* ============================================================
   轮播
   ============================================================ */
.hero {
  position: relative; height: min(100vh, 900px); min-height: 660px; overflow: hidden;
  background: #4c3b32; color: #fff;
}
.hero-bg { position: absolute; inset: -40px; overflow: hidden; }
.hero-bg-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero-bg-slide.active { opacity: 1; }
.hero-bg-slide img {
  width: 100%; height: 100%; object-fit: cover;
  filter: blur(38px) brightness(.62) saturate(1.3);
  transform: scale(1.15);
}
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(40,27,22,.62) 0%, rgba(40,27,22,.28) 48%, rgba(40,27,22,.36) 100%),
              linear-gradient(0deg, rgba(35,23,18,.72) 0%, transparent 32%, rgba(35,23,18,.28) 100%);
}
.hero-sparkles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.sparkle {
  position: absolute; width: 4px; height: 4px; border-radius: 50%;
  background: rgba(255,236,200,.9); box-shadow: 0 0 12px 3px rgba(255,222,170,.45);
  animation: floatUp linear infinite;
}
@keyframes floatUp {
  0% { transform: translateY(20px) scale(.6); opacity: 0; }
  20% { opacity: .9; }
  80% { opacity: .7; }
  100% { transform: translateY(-160px) scale(1.2); opacity: 0; }
}
.hero-inner {
  position: relative; z-index: 3; height: 100%; max-width: 1320px; margin: 0 auto;
  padding: 84px 48px 148px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center; gap: clamp(30px, 5vw, 84px);
}
.hero-content { max-width: 560px; }
.hero-kicker { color: #f3cfba; display: flex; align-items: center; gap: 12px; }
.kicker-line { width: 34px; height: 1px; background: #e6b79f; display: inline-block; }
.hero-title {
  font-family: var(--serif); font-size: clamp(28px, 3.1vw, 42px); line-height: 1.32;
  margin: 0 0 18px; letter-spacing: .01em; text-wrap: balance; text-shadow: 0 4px 26px rgba(0,0,0,.22);
  transition: opacity .35s, transform .35s;
}
.hero-meta { margin: 0 0 16px; font-size: 12px; letter-spacing: .12em; color: #f0d7c5; }
.hero-desc {
  margin: 0 0 32px; max-width: 440px; font-size: 14px; line-height: 2;
  color: rgba(255,255,255,.86); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
  transition: opacity .35s, transform .35s;
}
.hero-content.swap .hero-title, .hero-content.swap .hero-desc { opacity: 0; transform: translateY(10px); }
.hero-cta {
  display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 22px;
  border: 1px solid rgba(255,255,255,.6); border-radius: 999px; color: #fff; font-size: 13px;
  background: rgba(255,255,255,.1); backdrop-filter: blur(6px); transition: background .2s, transform .2s;
}
.hero-cta:hover { background: rgba(255,255,255,.22); transform: translateX(4px); }
.hero-cta svg { width: 16px; height: 16px; }

/* 相纸舞台 */
.hero-stage { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; }
.hero-frame {
  position: relative; width: min(390px, 30vw); aspect-ratio: 4 / 5;
  padding: 15px 15px 46px; background: #fbf6ee; border-radius: 3px;
  box-shadow: 0 34px 70px rgba(0,0,0,.4), 0 4px 12px rgba(0,0,0,.2);
  transform: rotate(2.4deg); transition: transform .7s cubic-bezier(.2,.8,.2,1);
}
.hero-frame:hover { transform: rotate(0deg) translateY(-8px); }
.hero-tape {
  position: absolute; top: -13px; left: 50%; width: 108px; height: 28px;
  background: rgba(233,205,166,.62); backdrop-filter: blur(3px);
  transform: translateX(-50%) rotate(-3deg); box-shadow: 0 2px 7px rgba(0,0,0,.12);
}
.hero-slides { position: relative; width: 100%; height: 100%; overflow: hidden; background: #e9dfd4; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide img, .hero-slide video { width: 100%; height: 100%; object-fit: contain; display: block; }
.hero-live-tag {
  position: absolute; left: 22px; bottom: 14px; display: flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 999px; background: rgba(45,29,23,.82); color: #fff;
  font-size: 10px; letter-spacing: .16em; opacity: 0; transition: opacity .4s; pointer-events: none;
}
.hero-live-tag.show { opacity: 1; }
.hero-live-tag i { width: 6px; height: 6px; border-radius: 50%; background: #e0554d; animation: livePulse 1.4s infinite; }
.hero-caption {
  margin: 20px 0 0; font-family: var(--serif); font-size: 13px; letter-spacing: .12em;
  color: rgba(255,255,255,.72); text-align: center;
}

/* 胶片导航 */
.hero-film {
  position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); z-index: 4;
  display: flex; align-items: center; gap: 14px; max-width: calc(100% - 48px);
}
.hero-arrow, .hero-play {
  width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.42); color: #fff; background: rgba(255,255,255,.08);
  transition: background .2s, transform .2s;
}
.hero-arrow:hover, .hero-play:hover { background: rgba(255,255,255,.24); transform: scale(1.06); }
.hero-arrow svg, .hero-play svg { width: 16px; height: 16px; }
.hero-thumbs {
  display: flex; align-items: center; gap: 9px; overflow-x: auto; padding: 7px 4px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.hero-thumbs::-webkit-scrollbar { display: none; }
.hero-thumb {
  position: relative; flex: 0 0 auto; width: 66px; height: 48px; padding: 0;
  border: 2px solid transparent; border-radius: 5px; overflow: hidden; cursor: pointer;
  opacity: .5; background: #d8c9b8; transition: opacity .3s, transform .3s, border-color .3s;
}
.hero-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-thumb:hover { opacity: .85; }
.hero-thumb.active { opacity: 1; border-color: #f3d6c1; transform: translateY(-4px); box-shadow: 0 8px 18px rgba(0,0,0,.3); }
.hero-thumb.live::after {
  content: ''; position: absolute; right: 4px; top: 4px; width: 6px; height: 6px;
  border-radius: 50%; background: #e0554d; box-shadow: 0 0 0 2px rgba(255,255,255,.6);
}
.hero-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.14); z-index: 5; }
.hero-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #f0c8a9, #fff2df); }
.scroll-hint { display: none; }
.scroll-hint i { display: block; width: 1px; height: 34px; background: linear-gradient(rgba(255,255,255,.8), transparent); animation: hintMove 2s ease-in-out infinite; }
@keyframes hintMove { 0%,100% { transform: scaleY(.6); opacity: .5; transform-origin: top; } 50% { transform: scaleY(1); opacity: 1; transform-origin: top; } }

/* ============================================================
   数字
   ============================================================ */
.numbers { padding: 92px clamp(20px, 6vw, 80px) 40px; max-width: 1240px; margin: 0 auto; }
.section-heading { margin-bottom: 40px; }
.section-heading.centered { text-align: center; }
.heading-flower { display: block; color: var(--rose); font-size: 16px; margin-bottom: 10px; }
.section-heading h2 {
  font-family: var(--serif); font-size: clamp(26px, 3.4vw, 38px); margin: 0 0 10px;
  letter-spacing: .06em; font-weight: 700;
}
.section-heading p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 20px;
  padding: 26px 20px 24px; text-align: center; box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s;
}
.stat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.stat-icon {
  width: 42px; height: 42px; margin: 0 auto 14px; border-radius: 14px;
  display: grid; place-items: center; background: var(--rose-soft); color: var(--rose);
}
.stat-icon.camera { background: #e8eee5; color: #769072; }
.stat-icon.play { background: #f5ead5; color: #b6925d; }
.stat-icon.sun { background: #e9e7f2; color: #8b83b0; }
.stat-icon svg { width: 20px; height: 20px; }
.stat-num { font-family: var(--serif); font-size: 34px; font-weight: 700; line-height: 1.2; }
.stat-label { margin-top: 4px; font-size: 12px; color: var(--muted); letter-spacing: .1em; }

/* ============================================================
   时光长廊
   ============================================================ */
.timeline-section { max-width: 1240px; margin: 0 auto; padding: 60px clamp(20px, 6vw, 80px) 100px; }
.filter-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.filter-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  padding: 9px 20px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink-soft); font-size: 13px;
  transition: all .2s;
}
.chip:hover { border-color: var(--rose); color: var(--rose); }
.chip.active { background: var(--rose); border-color: var(--rose); color: #fff; box-shadow: 0 8px 18px rgba(200,124,108,.22); }
.chip-divider { width: 1px; align-self: stretch; background: var(--line); margin: 2px 4px; }
.chip-topic { border-color: #dfc0a3; color: #a56b42; background: #fdf6ed; }
.chip-topic:hover { border-color: #c8804f; color: #c8804f; }
.chip-topic.active { background: #c8804f; border-color: #c8804f; color: #fff; box-shadow: 0 8px 18px rgba(200,128,79,.24); }
.result-count { font-size: 12px; color: var(--muted); }
.notice {
  margin: 14px 0 26px; padding: 12px 16px; border-radius: 12px;
  background: #fdf6ed; border: 1px solid #eddbc7; color: #8b6544; font-size: 13px; line-height: 1.7;
}

.month-group { margin-bottom: 56px; }
.month-label {
  display: flex; align-items: center; gap: 16px; margin-bottom: 24px;
  font-family: var(--serif); font-size: 18px; color: var(--ink-soft); letter-spacing: .08em;
}
.month-label::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.month-label .month-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 0 5px var(--rose-soft); }

.moment-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.moment-card {
  position: relative; background: var(--paper); border: 1px solid var(--line);
  border-radius: 18px; overflow: hidden; cursor: pointer; box-shadow: var(--shadow-sm);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
  animation: fadeUp .6s ease both;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.moment-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.card-cover { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-warm); }
.card-cover img, .card-cover video { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.moment-card:hover .card-cover img, .moment-card:hover .card-cover video { transform: scale(1.07); }
.card-cover .no-media {
  width: 100%; height: 100%; display: grid; place-items: center; color: #c9b8aa;
  background: linear-gradient(135deg, #f6ece1, #f1e4d8);
}
.card-cover .no-media svg { width: 40px; height: 40px; }
.media-count {
  position: absolute; right: 12px; top: 12px; padding: 5px 10px; border-radius: 999px;
  background: rgba(40,26,21,.55); color: #fff; font-size: 11px; backdrop-filter: blur(6px);
  display: flex; align-items: center; gap: 5px;
}
.media-count svg { width: 12px; height: 12px; }
.video-badge {
  position: absolute; left: 12px; top: 12px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,.88); color: var(--rose-deep);
}
.video-badge svg { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.card-body { padding: 20px 20px 22px; }
.card-date { font-size: 11px; letter-spacing: .12em; color: var(--rose); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.card-date .place { color: var(--muted); letter-spacing: 0; }
.card-title { font-family: var(--serif); font-size: 19px; margin: 0 0 10px; line-height: 1.4; }
.card-desc {
  margin: 0; font-size: 13px; line-height: 1.75; color: var(--ink-soft);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.card-mood { font-size: 11px; color: var(--sage); background: #edf2ea; padding: 4px 10px; border-radius: 999px; }
.card-heart { width: 26px; height: 26px; display: grid; place-items: center; color: #d6c8bd; }
.card-heart svg { width: 16px; height: 16px; }
.card-heart.on { color: var(--rose); }
.card-heart.on svg { fill: currentColor; stroke: none; }
.demo-flag {
  position: absolute; left: 12px; bottom: 12px; font-size: 10px; letter-spacing: .1em;
  padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,.86); color: var(--ink-soft);
}

.empty-state { text-align: center; padding: 70px 20px 40px; }
.empty-illustration {
  width: 90px; height: 90px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--rose-soft); color: var(--rose);
}
.empty-illustration svg { width: 38px; height: 38px; }
.empty-state h3 { font-family: var(--serif); font-size: 22px; margin: 0 0 10px; }
.empty-state p { color: var(--muted); font-size: 14px; margin: 0 0 26px; }

.site-footer {
  padding: 70px 20px 90px; text-align: center; border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, #f7eee4);
}
.footer-heart { color: var(--rose); font-size: 20px; margin-bottom: 12px; animation: heartbeat 2s ease-in-out infinite; }
@keyframes heartbeat { 0%,100% { transform: scale(1); } 15% { transform: scale(1.18); } 30% { transform: scale(1); } 45% { transform: scale(1.12); } }
.site-footer p { margin: 4px 0; font-family: var(--serif); color: var(--ink-soft); }
.footer-small { font-family: var(--sans) !important; font-size: 11px; color: var(--muted) !important; letter-spacing: .1em; }

.fab {
  position: fixed; right: 28px; bottom: 28px; z-index: 40; width: 56px; height: 56px;
  border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #d08b7a, #b96657); box-shadow: 0 14px 32px rgba(170,90,76,.35);
  transition: transform .25s, box-shadow .25s;
}
.fab:hover { transform: scale(1.08) rotate(90deg); box-shadow: 0 18px 40px rgba(170,90,76,.45); }
.fab svg { width: 22px; height: 22px; }

/* ============================================================
   弹层
   ============================================================ */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(44,30,25,.56); backdrop-filter: blur(8px); animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-panel {
  position: relative; width: min(100%, 640px); max-height: min(92vh, 900px); overflow-y: auto;
  background: var(--paper); border-radius: 24px; box-shadow: var(--shadow-lg);
  animation: modalIn .35s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; right: 18px; top: 18px; z-index: 5; width: 34px; height: 34px;
  display: grid; place-items: center; border-radius: 50%; background: rgba(240,230,221,.8); color: var(--ink-soft);
  transition: transform .2s, background .2s;
}
.modal-close:hover { transform: rotate(90deg); background: var(--rose-soft); }
.modal-close svg { width: 16px; height: 16px; }
.modal-head { padding: 34px 36px 10px; }
.modal-head h2 { font-family: var(--serif); font-size: 27px; margin: 0 0 8px; }
.modal-head p:last-child { margin: 0; color: var(--muted); font-size: 13px; }

.add-form { padding: 16px 36px 34px; }
.add-form .field-label { margin-top: 18px; }
.text-input {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; outline: none; font-size: 14px;
  transition: border-color .2s, box-shadow .2s;
}
.text-input:focus { border-color: var(--rose); box-shadow: 0 0 0 4px rgba(200,124,108,.1); }
.textarea { height: auto; min-height: 104px; padding: 13px 14px; resize: vertical; line-height: 1.7; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mood-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.mood-chip {
  padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; font-size: 12px; color: var(--ink-soft); transition: all .2s;
}
.mood-chip:hover { border-color: var(--rose); }
.mood-chip.active { background: var(--rose-soft); border-color: var(--rose); color: var(--rose-deep); font-weight: 700; }
.category-toggle {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px;
  border: 1px solid #dfc0a3; border-radius: 999px; background: #fdf6ed;
  color: #a56b42; font-size: 12px; cursor: pointer;
}
.category-toggle input { accent-color: #c8804f; }

.dropzone {
  margin-top: 8px; border: 1.5px dashed #dcc8ba; border-radius: 16px; padding: 26px;
  background: #fdf8f3; text-align: center; cursor: pointer; transition: all .25s;
}
.dropzone:hover, .dropzone.dragover { border-color: var(--rose); background: #fcf0e9; }
.dropzone-inner { display: grid; justify-items: center; gap: 8px; }
.dropzone-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--rose-soft); color: var(--rose); }
.dropzone-icon svg { width: 22px; height: 22px; }
.dropzone-inner p { margin: 0; font-size: 13px; font-weight: 600; }
.dropzone-inner span { font-size: 11px; color: var(--muted); }
.preview-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.preview-item { position: relative; aspect-ratio: 1; border-radius: 11px; overflow: hidden; background: var(--paper-warm); }
.preview-item img, .preview-item video { width: 100%; height: 100%; object-fit: cover; }
.preview-remove {
  position: absolute; right: 5px; top: 5px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(30,20,16,.62); color: #fff; display: grid; place-items: center; font-size: 14px; line-height: 1;
}
.preview-remove:hover { background: var(--rose-deep); }
.preview-type { position: absolute; left: 6px; bottom: 6px; font-size: 10px; color: #fff; background: rgba(30,20,16,.5); padding: 2px 7px; border-radius: 999px; }
.upload-progress { margin-top: 18px; }
.progress-track { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.progress-track span { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--rose), var(--gold)); transition: width .25s; }
.upload-progress p { margin: 7px 0 0; font-size: 11px; color: var(--muted); }
.form-error { min-height: 18px; margin: 10px 0 0; font-size: 12px; color: #c0504a; }
.modal-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 20px; }
.ghost-btn {
  height: 46px; padding: 0 22px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-soft); font-size: 13px; font-weight: 600; transition: all .2s;
}
.ghost-btn:hover { border-color: var(--rose); color: var(--rose); }
.text-danger { color: #bc6a62; font-size: 12px; }
.text-danger:hover { text-decoration: underline; }

/* 详情 */
.detail-panel { width: min(100%, 880px); padding: 0; overflow: hidden; }
.detail-media { position: relative; height: min(50vh, 440px); background: #3a2c25; overflow: hidden; }
.detail-media img, .detail-media video { width: 100%; height: 100%; object-fit: contain; }
.detail-arrow {
  position: absolute; top: calc(min(50vh, 440px) / 2 - 20px); width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,.85); color: var(--ink); z-index: 3;
  transition: transform .2s, background .2s;
}
.detail-arrow:hover { transform: scale(1.08); background: #fff; }
.detail-arrow.prev { left: 18px; }
.detail-arrow.next { right: 18px; }
.detail-arrow svg { width: 17px; height: 17px; }
.detail-body { padding: 28px 36px 34px; }
.detail-topline { display: flex; align-items: center; justify-content: space-between; }
.detail-date { font-size: 12px; letter-spacing: .12em; color: var(--rose); }
.favorite-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--paper-warm); color: #cbb9ab; }
.favorite-btn svg { width: 18px; height: 18px; }
.favorite-btn.on { color: var(--rose); background: var(--rose-soft); }
.favorite-btn.on svg { fill: currentColor; stroke: none; }
.detail-body h2 { font-family: var(--serif); font-size: 28px; margin: 12px 0 14px; }
.detail-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.detail-tags span { font-size: 11px; padding: 5px 11px; border-radius: 999px; background: #edf2ea; color: #6f8269; }
.detail-desc { white-space: pre-wrap; font-size: 14px; line-height: 2; color: var(--ink-soft); margin: 20px 0 28px; }
.detail-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }

/* 设置 */
.settings-panel { width: min(100%, 520px); padding-bottom: 32px; }
.settings-panel > .field-label, .settings-panel > .text-input, .settings-panel > .form-row, .settings-panel > .settings-hint, .settings-panel > .modal-actions { margin-left: 36px; margin-right: 36px; }
.settings-panel > .field-label { margin-top: 18px; }
.settings-hint { font-size: 12px; color: var(--muted); min-height: 18px; margin-top: 10px; }
.settings-panel .modal-actions { justify-content: space-between; }

/* 搜索与工具 */
.filter-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.search-box {
  display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper); color: var(--muted);
}
.search-box:focus-within { border-color: var(--rose); }
.search-box svg { width: 15px; height: 15px; flex: none; }
.search-box input { border: 0; outline: 0; background: transparent; font-size: 12px; color: var(--ink); width: 150px; }
.search-box input::placeholder { color: #b7a99e; }
.tool-btn {
  display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink-soft); font-size: 12px; transition: all .2s;
}
.tool-btn:hover { border-color: var(--rose); color: var(--rose); }
.tool-btn svg { width: 15px; height: 15px; }
.view-switch { display: flex; align-items: center; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.view-switch .tool-btn { height: 30px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; }
.view-switch .tool-btn.active { background: var(--rose); color: #fff; box-shadow: 0 3px 10px rgba(183,107,96,.25); }

/* 照片墙 */
.wall-grid { column-count: 3; column-gap: 20px; }
.wall-grid .moment-card { break-inside: avoid; margin-bottom: 20px; }
.wall-grid .card-cover { aspect-ratio: 4 / 3; }
.wall-grid .card-body { padding: 16px 18px 18px; }
.wall-grid .card-title { font-size: 17px; }
@media (max-width: 980px) { .wall-grid { column-count: 2; } }
@media (max-width: 640px) { .wall-grid { column-count: 1; } }

/* 多图智能拼贴封面 */
.collage { display: grid; width: 100%; height: 100%; gap: 3px; background: var(--paper-warm); }
.collage.n1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.collage.n2 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
.collage.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.collage.n3 .collage-cell:first-child { grid-row: span 2; }
.collage.n4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.collage-cell {
  position: relative; margin: 0; padding: 0; border: 0; overflow: hidden;
  background: #efe4d7; cursor: pointer;
}
.collage-cell img, .collage-cell video { width: 100%; height: 100%; object-fit: cover; display: block; }
.moment-card:hover .collage-cell img, .moment-card:hover .collage-cell video { transform: scale(1.05); }
.collage-cell .live-mini {
  position: absolute; left: 6px; bottom: 6px; display: flex; align-items: center; gap: 4px;
  padding: 2px 6px; border-radius: 999px; background: rgba(45,29,23,.7); color: #fff; font-size: 9px; letter-spacing: .08em;
}
.collage-more {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(40,26,21,.5); color: #fff; font-size: 17px;
}
.date-fix {
  position: absolute; left: 12px; bottom: 12px; z-index: 3; padding: 5px 12px;
  border: 1px solid #eddbc7; border-radius: 999px; background: #fff;
  color: #b45309; font-size: 11px; cursor: pointer;
}
.date-fix:hover { background: #fdf6ed; }
.topic-flag {
  position: absolute; left: 12px; bottom: 12px; z-index: 2; padding: 4px 10px;
  border-radius: 999px; background: rgba(200,128,79,.9); color: #fff; font-size: 10px; letter-spacing: .08em;
}

/* 相册：以单张照片为单位 */
.album-grid { display: block; }
.album-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; align-items: start; }
.album-item {
  display: block; width: 100%; margin: 0; padding: 0; border: 0; break-inside: avoid;
  position: relative; overflow: hidden; border-radius: 8px; background: var(--paper-warm); cursor: pointer;
  box-shadow: 0 3px 12px rgba(80,55,42,.08); transition: transform .3s, box-shadow .3s;
}
.album-item:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(80,55,42,.18); }
.album-item img, .album-item video { width: 100%; height: auto; display: block; object-fit: cover; }
.album-item .album-live {
  position: absolute; left: 7px; top: 7px; display: flex; align-items: center; gap: 4px;
  padding: 3px 7px; border-radius: 999px; background: rgba(45,29,23,.72); color: #fff; font-size: 9px; letter-spacing: .1em;
}
.album-day {
  margin: 26px 0 12px; padding-top: 14px; border-top: 1px solid var(--line);
  font-family: var(--serif); font-size: 17px; color: var(--ink-soft);
}
.album-day:first-child { margin-top: 0; }
@media (max-width: 1200px) { .album-row { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 980px) { .album-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) {
  .album-row { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .album-row.single { grid-template-columns: 1fr; max-width: 62%; }
}

/* 详情缩略图导航 */
.detail-strip {
  display: flex; gap: 6px; overflow-x: auto; padding: 9px 18px; background: #2e211b;
  scrollbar-width: thin; scrollbar-color: #6b5548 transparent;
}
.detail-strip button {
  flex: 0 0 auto; width: 44px; height: 34px; padding: 0; border: 2px solid transparent; border-radius: 4px;
  overflow: hidden; background: #46362d; cursor: pointer; opacity: .55; transition: opacity .2s, border-color .2s;
}
.detail-strip button:hover { opacity: .9; }
.detail-strip button.active { opacity: 1; border-color: #f3d6c1; }
.detail-strip img, .detail-strip video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 实况照片 */
.live-badge {
  position: absolute; left: 12px; top: 12px; display: flex; align-items: center; gap: 5px;
  padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.9); color: #b0534d;
  font-size: 10px; font-weight: 700; letter-spacing: .08em; z-index: 2;
}
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #e0554d; display: inline-block; animation: livePulse 1.4s infinite; }
@keyframes livePulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.72); } }
.live-preview {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0;
  pointer-events: none; transition: opacity .35s; z-index: 1;
}
[data-live-card]:hover .live-preview, [data-live-card].playing .live-preview { opacity: 1; }
.hero-live {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0;
  pointer-events: none; transition: opacity 1s ease; background: #e9dfd4;
}
.hero-slide.active .hero-live { opacity: 1; }
.live-detail { position: relative; width: 100%; height: 100%; }
.live-detail img, .live-detail-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.live-detail-video { opacity: 0; transition: opacity .3s; background: #3a2c25; }
.live-detail.playing .live-detail-video { opacity: 1; }
.live-play-btn {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 3;
  display: flex; align-items: center; gap: 7px; padding: 9px 18px; border-radius: 999px;
  background: rgba(40,26,21,.72); color: #fff; font-size: 12px; backdrop-filter: blur(6px);
}
.live-detail-tip { position: absolute; right: 18px; bottom: 28px; z-index: 3; color: rgba(255,255,255,.65); font-size: 11px; }
.detail-actions { display: flex; align-items: center; gap: 18px; }
.text-btn { color: var(--rose); font-size: 12px; }
.text-btn:hover { text-decoration: underline; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 40px; transform: translate(-50%, 20px); z-index: 500;
  padding: 12px 22px; border-radius: 999px; background: rgba(58,40,33,.94); color: #fff;
  font-size: 13px; box-shadow: var(--shadow-md); opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 入场观察 */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .moment-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { height: auto; min-height: 0; }
  .hero-inner {
    grid-template-columns: 1fr; justify-items: center; gap: 26px;
    padding: 100px 24px 130px; text-align: center;
  }
  .hero-content { max-width: 560px; }
  .hero-kicker { justify-content: center; }
  .hero-desc { max-width: 520px; margin-left: auto; margin-right: auto; }
  .hero-frame { width: min(320px, 62vw); }
}
@media (max-width: 640px) {
  .site-header { height: 62px; padding: 0 16px; }
  .scrolled { height: 58px; }
  .nav-add span { display: none; }
  .nav-add { padding: 0 12px; }
  .brand-text { font-size: 18px; }
  .login-card { padding: 32px 24px 28px; border-radius: 22px; }
  .login-title { font-size: 34px; }
  .login-footer { display: none; }
  .hero-inner { padding: 72px 18px 100px; gap: 18px; }
  .hero-title { font-size: 27px; }
  .hero-desc { font-size: 13px; line-height: 1.8; -webkit-line-clamp: 2; }
  .hero-frame { width: min(252px, 68vw); padding: 11px 11px 34px; }
  .hero-tape { width: 90px; height: 24px; }
  .hero-caption { margin-top: 14px; }
  .hero-film { bottom: 24px; gap: 8px; max-width: calc(100% - 20px); }
  .hero-thumb { width: 54px; height: 40px; }
  .hero-arrow, .hero-play { width: 34px; height: 34px; flex-basis: 34px; }
  .hero-caption { margin-top: 16px; font-size: 12px; }
  .scroll-hint { display: none; }
  .numbers { padding-top: 64px; }
  .stat-card { padding: 22px 12px; }
  .moment-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .preview-grid { grid-template-columns: repeat(3, 1fr); }
  .modal { padding: 12px; }
  .modal-panel { border-radius: 18px; max-height: 94vh; }
  .modal-head { padding: 28px 22px 8px; }
  .add-form { padding: 12px 22px 26px; }
  .detail-body { padding: 22px; }
  .detail-body h2 { font-size: 23px; }
  .detail-media { height: 36vh; }
  .detail-arrow { top: calc(18vh - 20px); }
  .settings-panel > .field-label, .settings-panel > .text-input, .settings-panel > .form-row, .settings-panel > .settings-hint, .settings-panel > .modal-actions { margin-left: 22px; margin-right: 22px; }
  .fab { right: 18px; bottom: 20px; }
  .filter-row { align-items: flex-start; }
}

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