:root {
  --bg: #fff7f4;
  --bg2: #fff0f5;
  --cream: #fff2dc;
  --cream2: #fff9ed;
  --rose: #de5d8f;
  --rose2: #f4a6c4;
  --rose3: #ffd9e7;
  --ink: #2c2022;
  --soft: #80696c;
  --muted: #a18b8a;
  --line: rgba(115, 64, 68, .12);
  --card: rgba(255, 255, 255, .72);
  --card2: rgba(255, 255, 255, .9);
  --shadow: 0 30px 90px rgba(130, 70, 92, .18);
  --shadow2: 0 16px 40px rgba(150, 86, 108, .14);
  --radius: 34px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-serif, Georgia, "Noto Serif SC", "Source Han Serif SC", "Microsoft YaHei", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 6%, rgba(255, 219, 228, .8), transparent 28%),
    radial-gradient(circle at 92% 12%, rgba(255, 239, 206, .95), transparent 28%),
    linear-gradient(135deg, var(--bg), var(--bg2) 48%, #fffaf3);
  min-height: 100vh;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.28) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.5), transparent 70%);
  z-index: -2;
}
.noise {
  position: fixed;
  inset: 0;
  opacity: .035;
  pointer-events: none;
  z-index: 10;
  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='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
code {
  background: rgba(255,255,255,.7);
  border: 1px solid var(--line);
  padding: 2px 7px;
  border-radius: 10px;
  color: var(--rose);
}

/* login */
.login-page { overflow-x: hidden; }
.login-bg { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.float-heart {
  position: absolute;
  font-size: 180px;
  color: rgba(222, 93, 143, .09);
  animation: float 8s ease-in-out infinite;
}
.float-heart.h1 { left: 8%; top: 10%; }
.float-heart.h2 { right: 12%; top: 18%; animation-delay: -2s; }
.float-heart.h3 { left: 52%; bottom: 5%; animation-delay: -4s; }
@keyframes float { 0%,100%{ transform: translateY(0) rotate(-8deg);} 50%{ transform: translateY(-22px) rotate(8deg);} }
.login-shell {
  width: min(1180px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 54px;
  padding: 54px 0;
}
.login-copy h1 {
  margin: 10px 0 18px;
  font-size: clamp(64px, 8vw, 112px);
  line-height: .9;
  letter-spacing: -5px;
}
.login-copy p:not(.eyebrow) {
  max-width: 560px;
  font-size: 18px;
  line-height: 1.85;
  color: var(--soft);
}
.mini-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.mini-tags span {
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.62);
  border: 1px solid var(--line);
  box-shadow: var(--shadow2);
}
.login-card { padding: 46px; }
.brand-orb {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--rose), var(--rose2));
  color: #fff;
  font-size: 30px;
  box-shadow: 0 20px 50px rgba(222,93,143,.32);
}
.login-card h2 { text-align: center; font-size: 34px; margin: 0 0 8px; }
.form-stack { margin-top: 28px; display: grid; gap: 18px; }
label { font-weight: 800; color: #3a282a; }
input, textarea {
  width: 100%;
  margin-top: 8px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.85);
  border-radius: 20px;
  padding: 16px 18px;
  outline: none;
  transition: .2s ease;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, textarea:focus {
  border-color: rgba(222, 93, 143, .5);
  box-shadow: 0 0 0 5px rgba(222, 93, 143, .1);
}
.form-msg { min-height: 22px; color: var(--rose); font-weight: 800; text-align: center; }
.tiny-note, .muted { color: var(--soft); }
.tiny-note { text-align: center; margin: 22px 0 0; font-size: 14px; }
.center { text-align: center; }

/* common */
.luxury-card {
  background: linear-gradient(145deg, rgba(255,255,255,.86), rgba(255,255,255,.62));
  border: 1px solid rgba(255,255,255,.65);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
}
.eyebrow {
  margin: 0;
  color: var(--rose);
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 13px;
}
.primary-btn, .secondary-btn, .ghost-btn, .icon-btn {
  border: 0;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose), #c94980);
  color: white;
  font-weight: 900;
  box-shadow: 0 16px 35px rgba(222,93,143,.27);
}
.primary-btn:hover, .secondary-btn:hover, .ghost-btn:hover, .icon-btn:hover { transform: translateY(-2px); }
.secondary-btn, .ghost-btn {
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.72);
  font-weight: 900;
}
.full { width: 100%; }
.section-pad { width: min(1700px, calc(100% - 80px)); margin: 0 auto; padding: 86px 0; }
.section-title h2 {
  margin: 8px 0 14px;
  font-size: clamp(36px, 4vw, 68px);
  letter-spacing: -2px;
  line-height: 1.05;
}
.section-title p:not(.eyebrow) { color: var(--soft); line-height: 1.8; font-size: 17px; }
.center-title { max-width: 840px; margin: 0 auto 42px; text-align: center; }
.split-title { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.split-title > p { max-width: 560px; margin: 0; }
.two-col { display: grid; grid-template-columns: .8fr 1.2fr; gap: 46px; align-items: start; }
.sticky-title { position: sticky; top: 110px; }

/* nav */
.topbar {
  position: sticky;
  top: 0;
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 58px;
  background: rgba(255, 248, 248, .73);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.72);
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 900; }
.logo span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--rose);
  color: white;
}
.nav { display: flex; align-items: center; gap: 20px; font-weight: 900; color: #60494d; }
.nav a { opacity: .85; }
.nav a:hover { opacity: 1; color: var(--rose); }

/* hero */
.hero-section {
  min-height: calc(100vh - 82px);
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 54px;
}
.hero-copy h1 {
  margin: 16px 0 24px;
  font-size: clamp(72px, 8vw, 140px);
  line-height: .88;
  letter-spacing: -7px;
  max-width: 880px;
}
.hero-subtitle {
  max-width: 740px;
  color: var(--soft);
  font-size: 19px;
  line-height: 1.9;
}
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-dashboard { padding: 52px; text-align: center; min-height: 390px; display: grid; align-content: center; }
.dashboard-label { color: var(--soft); font-weight: 900; margin: 0 0 8px; }
.huge-number {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(82px, 11vw, 180px);
  font-weight: 950;
  line-height: 1;
  color: var(--rose);
  letter-spacing: -8px;
}
.dashboard-unit { margin: 8px 0 0; font-weight: 900; color: var(--soft); }
.divider { height: 1px; background: var(--line); margin: 32px 0; }
.quote { margin: 0; font-size: 19px; line-height: 1.7; font-weight: 900; }
.daily-line { color: var(--soft); margin: 12px 0 0; }

.ticker-wrap { overflow: hidden; border-block: 1px solid var(--line); background: rgba(255,255,255,.34); }
.ticker { white-space: nowrap; padding: 18px 0; animation: marquee 24s linear infinite; font-weight: 900; color: var(--rose); }
.ticker span { margin-right: 54px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding-top: 54px; padding-bottom: 54px; }
.stat-card { padding: 26px; border-radius: 28px; background: rgba(255,255,255,.62); border: 1px solid var(--line); box-shadow: var(--shadow2); }
.stat-card b { display: block; font-size: 28px; margin: 8px 0; }
.stat-card small { color: var(--soft); line-height: 1.6; }

/* calendar */
.calendar-card { padding: 30px; }
.calendar-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.calendar-head h3 { margin: 0; font-size: 30px; }
.calendar-head p { margin: 4px 0 0; color: var(--soft); }
.icon-btn {
  width: 50px;
  height: 50px;
  border-radius: 18px;
  background: rgba(255,255,255,.8);
  border: 1px solid var(--line);
  font-size: 34px;
  color: var(--rose);
}
.weekday-row, .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.weekday-row { color: var(--muted); font-weight: 900; text-align: center; margin-bottom: 10px; }
.day-cell {
  min-height: 96px;
  padding: 10px;
  border-radius: 22px;
  background: rgba(255,255,255,.58);
  border: 1px solid rgba(255,255,255,.7);
  position: relative;
  overflow: hidden;
}
.day-cell.dim { opacity: .35; }
.day-cell.today { outline: 2px solid rgba(222,93,143,.45); }
.day-cell.has-event { background: linear-gradient(145deg, #fff, #ffe7ef); box-shadow: 0 10px 30px rgba(222,93,143,.12); }
.day-num { font-weight: 950; }
.day-event { margin-top: 7px; font-size: 12px; color: var(--rose); font-weight: 900; line-height: 1.4; }
.event-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rose); position: absolute; right: 12px; top: 13px; }
.event-list { display: grid; gap: 14px; margin-top: 24px; }
.event-item {
  padding: 18px;
  border-radius: 24px;
  background: rgba(255,255,255,.6);
  border: 1px solid var(--line);
}
.event-item b { display: block; }
.event-item span { color: var(--rose); font-weight: 900; }
.event-item p { margin: 8px 0 0 !important; font-size: 14px !important; }

/* timeline */
.timeline { max-width: 1120px; margin: 0 auto; position: relative; display: grid; gap: 22px; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--line); }
.time-item { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.time-card {
  padding: 28px;
  border-radius: 30px;
  background: rgba(255,255,255,.68);
  border: 1px solid var(--line);
  box-shadow: var(--shadow2);
}
.time-item:nth-child(even) .time-card { grid-column: 2; }
.time-date { color: var(--rose); font-weight: 950; letter-spacing: 2px; }
.time-card h3 { margin: 10px 0; font-size: 26px; }
.time-card p { margin: 0; color: var(--soft); line-height: 1.85; }

/* album */
.album-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.album-card {
  min-height: 420px;
  border-radius: 34px;
  overflow: hidden;
  position: relative;
  background: rgba(255,255,255,.6);
  border: 1px solid rgba(255,255,255,.75);
  box-shadow: var(--shadow2);
}
.album-media { height: 100%; min-height: 420px; background-size: cover; background-position: center; }
.album-placeholder {
  height: 100%; min-height: 420px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.8), transparent 24%),
    linear-gradient(135deg, #ffe0eb, #fff2dc 62%, #fff);
  color: rgba(222,93,143,.42);
  font-size: 74px;
  font-weight: 900;
}
.album-info {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 20px;
  border-radius: 26px;
  background: rgba(255,255,255,.76);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.8);
}
.album-info .tag { color: var(--rose); font-weight: 950; font-size: 12px; letter-spacing: 2px; }
.album-info h3 { margin: 6px 0; font-size: 24px; }
.album-info p { margin: 0; color: var(--soft); line-height: 1.6; }

/* diary wishes letter */
.diary-list { display: grid; gap: 18px; }
.diary-card, .wish-card {
  padding: 28px;
  border-radius: 30px;
  background: rgba(255,255,255,.66);
  border: 1px solid var(--line);
  box-shadow: var(--shadow2);
}
.diary-card time { color: var(--rose); font-weight: 950; }
.diary-card h3 { margin: 8px 0 10px; font-size: 28px; }
.diary-card p, .letter-body p, .private-card p { color: var(--soft); line-height: 1.9; }
.wish-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.wish-card { display: flex; gap: 16px; align-items: flex-start; }
.check {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--rose3);
  color: var(--rose);
  font-weight: 950;
}
.wish-card.done .check { background: var(--rose); color: #fff; }
.wish-card p { margin: 0; color: var(--soft); line-height: 1.7; font-weight: 800; }
.letter-card { padding: 44px; }
.letter-card h2 { font-size: clamp(36px, 4vw, 62px); line-height: 1.05; margin: 10px 0 24px; }
.polaroid-stack { min-height: 520px; position: relative; }
.polaroid {
  position: absolute;
  width: 280px;
  min-height: 360px;
  background: #fff;
  border-radius: 12px;
  padding: 14px 14px 55px;
  box-shadow: 0 26px 60px rgba(97, 51, 64, .18);
}
.polaroid:nth-child(1) { left: 8%; top: 6%; transform: rotate(-8deg); }
.polaroid:nth-child(2) { right: 10%; top: 20%; transform: rotate(7deg); }
.polaroid:nth-child(3) { left: 30%; bottom: 0; transform: rotate(-2deg); }
.polaroid-img {
  height: 255px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffe0eb, #fff2dc);
  display: grid;
  place-items: center;
  color: rgba(222,93,143,.4);
  font-size: 44px;
  font-weight: 900;
}
.polaroid span { position: absolute; left: 22px; bottom: 18px; font-weight: 900; color: var(--soft); }

/* messages/private */
.message-card { padding: 30px; }
.message-form { display: grid; gap: 14px; }
.message-list { display: grid; gap: 14px; margin-top: 20px; }
.message-item { padding: 18px; border-radius: 22px; background: rgba(255,255,255,.62); border: 1px solid var(--line); }
.message-item b { color: var(--rose); }
.message-item p { margin: 8px 0 0; color: var(--soft); line-height: 1.7; }
.private-card { text-align: center; padding: 56px; max-width: 1000px; margin: 0 auto; }
.private-card h2 { font-size: clamp(38px, 5vw, 80px); margin: 10px 0 20px; }
.footer { text-align: center; padding: 44px 20px 70px; color: var(--soft); }

@media (max-width: 1100px) {
  .login-shell, .hero-section, .two-col { grid-template-columns: 1fr; }
  .stats-grid, .album-grid, .wish-grid { grid-template-columns: repeat(2, 1fr); }
  .topbar { padding: 14px 20px; align-items: flex-start; }
  .nav { flex-wrap: wrap; justify-content: flex-end; gap: 10px 14px; }
  .sticky-title { position: static; }
  .reverse-on-mobile .section-title { order: -1; }
}
@media (max-width: 720px) {
  .section-pad { width: min(100% - 28px, 1700px); padding: 58px 0; }
  .login-shell { width: min(100% - 28px, 1180px); gap: 28px; }
  .login-copy h1, .hero-copy h1 { letter-spacing: -3px; }
  .login-card, .hero-dashboard, .letter-card, .private-card { padding: 28px; }
  .stats-grid, .album-grid, .wish-grid { grid-template-columns: 1fr; }
  .split-title { display: block; }
  .timeline::before { left: 10px; }
  .time-item { grid-template-columns: 1fr; padding-left: 28px; }
  .time-item:nth-child(even) .time-card { grid-column: 1; }
  .calendar-grid, .weekday-row { gap: 6px; }
  .day-cell { min-height: 74px; padding: 7px; border-radius: 16px; }
  .day-event { font-size: 10px; }
  .polaroid-stack { display: none; }
  .topbar { position: static; }
  .nav a { font-size: 14px; }
}
