:root {
  color-scheme: light;
  --bg-top: #fff7fb;
  --bg-mid: #ffe8f2;
  --bg-bottom: #ffdbe9;
  --glass: rgba(255, 255, 255, 0.56);
  --glass-strong: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(255, 255, 255, 0.82);
  --text-main: #5c1d3f;
  --text-sub: #94506f;
  --accent: #ff5ca8;
  --accent-deep: #e23286;
  --accent-soft: #ff8fc6;
  --danger: #dc4d74;
  --shadow: 0 24px 70px rgba(229, 96, 154, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.95), transparent 24%),
    radial-gradient(circle at 85% 15%, rgba(255, 186, 220, 0.5), transparent 22%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 48%, var(--bg-bottom) 100%);
}

input,
textarea,
button {
  font: inherit;
}

.hidden {
  display: none !important;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 24px;
}

.ambient,
.particle-field,
.light-beam,
.heart-aura,
.heart-rays,
.spark,
.heart-orbit {
  pointer-events: none;
}

.ambient {
  position: absolute;
  border-radius: 999px;
  filter: blur(26px);
  opacity: 0.7;
}

.ambient-a {
  width: 260px;
  height: 260px;
  left: -50px;
  top: -60px;
  background: rgba(255, 174, 212, 0.7);
}

.ambient-b {
  width: 340px;
  height: 340px;
  right: -100px;
  top: 120px;
  background: rgba(255, 215, 233, 0.8);
}

.ambient-c {
  width: 300px;
  height: 300px;
  left: 18%;
  bottom: -120px;
  background: rgba(255, 196, 222, 0.55);
}

.light-beam {
  position: absolute;
  width: 380px;
  height: 100vh;
  top: -18vh;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), transparent 74%);
  filter: blur(10px);
  opacity: 0.42;
}

.beam-a {
  left: 12%;
  transform: rotate(18deg);
}

.beam-b {
  right: 10%;
  transform: rotate(-18deg);
}

.particle-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 22px rgba(255, 150, 202, 0.95);
  animation: float-up linear infinite;
}

@keyframes float-up {
  from {
    transform: translateY(0) scale(0.6);
    opacity: 0;
  }

  12%,
  78% {
    opacity: 0.95;
  }

  to {
    transform: translateY(-120vh) scale(1.15);
    opacity: 0;
  }
}

.login-panel,
.site-main {
  position: relative;
  z-index: 2;
}

.login-panel {
  min-height: calc(100vh - 48px);
  display: grid;
  place-items: center;
}

.glass-card {
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  border-radius: 30px;
}

.login-card {
  width: min(100%, 430px);
  padding: 34px 28px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--text-sub);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.login-card h1,
.hero-copy h2,
.feature-card h3 {
  margin: 0;
}

.login-copy,
.section-note,
.hero-copy p {
  color: var(--text-sub);
  line-height: 1.7;
}

.field-label {
  display: block;
  margin-top: 16px;
  margin-bottom: 8px;
  font-size: 14px;
}

.field-input,
.message-title,
.message-body {
  width: 100%;
  border: 1px solid rgba(224, 137, 181, 0.38);
  border-radius: 18px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text-main);
}

.field-input:focus,
.message-title:focus,
.message-body:focus {
  outline: 2px solid rgba(255, 92, 168, 0.22);
  border-color: rgba(255, 92, 168, 0.52);
}

.primary-btn,
.secondary-btn,
.mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.primary-btn,
.secondary-btn {
  border-radius: 999px;
  padding: 12px 18px;
}

.primary-btn {
  width: 100%;
  margin-top: 22px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff;
  box-shadow: 0 20px 36px rgba(255, 92, 168, 0.3);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.96);
  color: var(--accent-deep);
  border: 1px solid rgba(255, 92, 168, 0.18);
}

.secondary-btn input,
.cover-upload input {
  display: none;
}

.mini-btn {
  border-radius: 14px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text-main);
  border: 1px solid rgba(255, 92, 168, 0.15);
}

.danger-btn {
  color: #fff;
  background: var(--danger);
  border-color: transparent;
}

.save-btn {
  color: #fff;
  background: linear-gradient(135deg, #ff73b8, #e84693);
  border-color: transparent;
}

.primary-btn:hover,
.secondary-btn:hover,
.mini-btn:hover,
.cover-upload:hover {
  transform: translateY(-1px);
}

.error-text {
  min-height: 22px;
  color: #cc245c;
}

.status-line {
  font-weight: 600;
  color: var(--accent-deep);
}

.site-main {
  display: grid;
  gap: 24px;
  width: min(1200px, 100%);
  margin: 0 auto;
}

.hero-card {
  display: grid;
  grid-template-columns: 1.04fr 0.95fr 1fr;
  gap: 22px;
  padding: 24px;
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.cover-frame {
  position: relative;
  overflow: hidden;
  min-height: 380px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent),
    linear-gradient(135deg, rgba(255, 227, 239, 0.96), rgba(255, 246, 250, 0.96));
  display: flex;
  align-items: center;
  justify-content: center;
}

.frame-ribbon {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 2;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent-deep);
  font-size: 12px;
  letter-spacing: 0.14em;
}

.cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-placeholder {
  text-align: center;
  color: var(--text-sub);
  padding: 20px;
}

.cover-placeholder span {
  display: block;
  margin-bottom: 8px;
  font-size: 28px;
  font-weight: 700;
  color: var(--accent-deep);
}

.cover-upload {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 11px 16px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--accent-deep);
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(255, 92, 168, 0.15);
}

.heart-stage {
  position: relative;
  min-height: 380px;
  display: grid;
  place-items: center;
}

.heart-aura {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 101, 176, 0.56) 0%, rgba(255, 101, 176, 0) 68%);
  animation: aura-pulse 3s ease-in-out infinite;
}

.heart-rays {
  position: absolute;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg, rgba(255, 255, 255, 0.75) 0deg 4deg, transparent 4deg 22deg);
  mask: radial-gradient(circle, transparent 0 44%, #000 58%);
  opacity: 0.3;
  animation: ray-spin 18s linear infinite;
}

.heart-orbit {
  position: absolute;
  border: 1px solid rgba(255, 162, 208, 0.45);
  border-radius: 50%;
}

.orbit-a {
  width: 250px;
  height: 250px;
  animation: orbit-spin 10s linear infinite;
}

.orbit-b {
  width: 310px;
  height: 180px;
  transform: rotate(20deg);
  animation: orbit-spin-reverse 13s linear infinite;
}

.heart-wrap {
  position: relative;
  width: 220px;
  height: 200px;
  display: grid;
  place-items: center;
  animation: heart-bounce 1.8s ease-in-out infinite;
  filter: drop-shadow(0 22px 36px rgba(255, 86, 161, 0.28));
}

.heart-svg {
  width: 220px;
  height: 200px;
}

.spark {
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 20px rgba(255, 170, 212, 0.98);
}

.spark-a {
  width: 12px;
  height: 12px;
  left: 24%;
  top: 20%;
  animation: sparkle 2.8s ease-in-out infinite;
}

.spark-b {
  width: 10px;
  height: 10px;
  right: 18%;
  top: 24%;
  animation: sparkle 2.4s ease-in-out infinite 0.4s;
}

.spark-c {
  width: 16px;
  height: 16px;
  right: 26%;
  bottom: 18%;
  animation: sparkle 2.6s ease-in-out infinite 0.8s;
}

.spark-d {
  width: 8px;
  height: 8px;
  left: 19%;
  bottom: 24%;
  animation: sparkle 2.2s ease-in-out infinite 0.2s;
}

@keyframes heart-bounce {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  35% {
    transform: translateY(-10px) scale(1.04);
  }

  62% {
    transform: translateY(0) scale(0.98);
  }
}

@keyframes aura-pulse {
  0%,
  100% {
    transform: scale(0.94);
    opacity: 0.55;
  }

  50% {
    transform: scale(1.12);
    opacity: 0.78;
  }
}

@keyframes ray-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes orbit-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes orbit-spin-reverse {
  from {
    transform: rotate(20deg);
  }

  to {
    transform: rotate(-340deg);
  }
}

@keyframes sparkle {
  0%,
  100% {
    transform: scale(0.7);
    opacity: 0.22;
  }

  50% {
    transform: scale(1.18);
    opacity: 1;
  }
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 18px;
}

.hero-pills span {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent-deep);
  font-size: 13px;
  box-shadow: 0 10px 20px rgba(255, 92, 168, 0.08);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.feature-card {
  padding: 22px;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
}

.photo-card,
.message-card {
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.85);
}

.photo-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 12px;
}

.photo-actions,
.message-actions {
  display: flex;
  gap: 10px;
}

.message-list {
  display: grid;
  gap: 14px;
}

.message-title {
  margin-bottom: 10px;
  font-weight: 600;
}

.message-body {
  resize: vertical;
  min-height: 110px;
}

@media (max-width: 980px) {
  .hero-card,
  .tool-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 16px;
  }

  .hero-card,
  .feature-card,
  .login-card {
    padding-left: 18px;
    padding-right: 18px;
  }

  .card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-pills {
    gap: 8px;
  }
}
