:root {
  --rose: #ff667d;
  --rose-soft: #fff0f2;
  --ink: #342e37;
  --muted: #9f969f;
  --line: #f1e7e9;
  --cream: #fff9f7;
  --blue: #688aa5;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f5eff1;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.site-bg {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 12%, rgba(255, 218, 222, 0.72), transparent 26%),
    radial-gradient(circle at 84% 82%, rgba(223, 212, 241, 0.65), transparent 30%),
    linear-gradient(145deg, #faf5f6, #f2ecef);
}

.phone-shell {
  position: relative;
  max-width: 540px;
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 3%, rgba(255, 207, 215, 0.68), transparent 27%),
    radial-gradient(circle at 0 48%, rgba(255, 233, 218, 0.62), transparent 24%),
    var(--cream);
  box-shadow: 0 0 70px rgba(81, 55, 66, 0.12);
}

.app-header {
  position: relative;
  z-index: 20;
  display: flex;
  height: 68px;
  padding: 20px 20px 0;
  align-items: center;
  justify-content: space-between;
}

.header-circle {
  display: flex;
  width: 36px;
  height: 36px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  color: #766972;
  font-family: Georgia, serif;
  font-size: 28px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 6px 18px rgba(89, 60, 70, 0.07);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #7d7379;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.header-brand img {
  width: 27px;
  height: 27px;
  border-radius: 8px;
}

.online-pill {
  display: flex;
  height: 32px;
  padding: 0 12px;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  color: #95878e;
  font-size: 10px;
  background: rgba(255, 255, 255, 0.62);
}

.online-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #76cea0;
  box-shadow: 0 0 0 4px rgba(118, 206, 160, 0.1);
}

.theme-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff8294, #8aa8bf);
  box-shadow: 0 0 0 4px rgba(127, 151, 170, 0.1);
}

.screen-container {
  min-height: calc(100vh - 122px);
  padding: 0 18px calc(110px + var(--safe-bottom));
}

.screen-loading {
  display: flex;
  padding-top: 36vh;
  flex-direction: column;
  align-items: center;
  color: #a59ca2;
  font-size: 12px;
}

.loading-heart {
  color: #ef8d9c;
  font-family: Georgia, serif;
  font-size: 34px;
  animation: heartbeat 1.8s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(0.9); }
  50% { transform: scale(1.08); }
}

.screen {
  animation: enter 0.35s ease both;
}

@keyframes enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.welcome {
  padding: 26px 9px 0;
}

.welcome h1 {
  margin: 0;
  color: #41373b;
  font-family: "Songti SC", "STSong", serif;
  font-size: 31px;
  line-height: 1.25;
  letter-spacing: 1px;
}

.welcome p {
  margin: 8px 0 0;
  color: #a49ca1;
  font-size: 12px;
  letter-spacing: 1px;
}

.home-screen {
  margin: 0 -18px;
}

.home-top {
  position: relative;
  padding: 4px 19px 72px;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 94% 8%, rgba(255, 255, 255, 0.08), transparent 24%),
    linear-gradient(150deg, #607f98, #486b84 60%, #3d5c74);
}

.home-top .bubble {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}

.home-top .bubble-one {
  top: 60px;
  right: -70px;
  width: 200px;
  height: 200px;
}

.home-top .bubble-two {
  bottom: -80px;
  left: -60px;
  width: 190px;
  height: 190px;
}

.home-welcome {
  position: relative;
  z-index: 2;
}

.home-welcome h1 {
  color: #fff;
  font-size: 30px;
}

.home-welcome p {
  color: rgba(255, 255, 255, 0.68);
}

.home-points {
  display: flex;
  margin-top: 7px;
  gap: 14px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 10px;
}

.home-points span:last-child {
  color: #ffe2a6;
}

.home-story {
  position: relative;
  display: flex;
  min-height: 215px;
  margin: 19px 2px 0;
  padding: 28px 24px 20px;
  flex-direction: column;
  align-items: center;
  border-radius: 20px;
  color: #514b50;
  background: #fff;
  box-shadow: 0 14px 30px rgba(31, 50, 64, 0.18);
}

.home-avatar {
  position: absolute;
  top: 22px;
  width: 68px;
  height: 68px;
  padding: 3px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 5px 15px rgba(40, 43, 47, 0.1);
}

.home-avatar.left { left: 28px; }
.home-avatar.right { right: 28px; }

.home-story-center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.home-story-center strong {
  color: #2f2d32;
  font-family: Georgia, serif;
  font-size: 39px;
}

.home-story-center em {
  margin-left: 5px;
  color: #8f888c;
  font-family: Georgia, serif;
  font-size: 12px;
}

.home-story-center small {
  color: #847a80;
  font-family: Georgia, serif;
  font-size: 11px;
  font-style: italic;
}

.home-story > p {
  margin: 22px 12px 0;
  color: #524c51;
  font-family: "Songti SC", serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.8;
  text-align: center;
}

.guest-story {
  min-height: 224px;
  padding-top: 28px;
}

.guest-home-avatar {
  width: 70px;
  height: 70px;
  border: 5px solid #eef1f3;
  border-radius: 50%;
  opacity: 0.55;
  filter: grayscale(0.5);
}

.guest-stars {
  margin-top: 9px;
  color: #dfb35e;
  font-size: 10px;
}

.guest-story > p {
  margin-top: 14px;
  font-weight: 500;
}

.single-home-story .home-story-center {
  margin-top: 12px;
}

.single-home-story .guest-home-avatar {
  opacity: 1;
  filter: none;
}

.home-sheet {
  position: relative;
  z-index: 3;
  margin-top: -48px;
  padding: 0 18px 28px;
  border-radius: 26px 26px 0 0;
  background: #f7f8f8;
}

.journey-card {
  display: flex;
  width: 100%;
  margin-bottom: 18px;
  padding: 15px;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 16px;
  text-align: left;
  background: #fff;
  box-shadow: 0 8px 22px rgba(50, 48, 52, 0.06);
}

.journey-heart {
  display: flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  color: #e85b6c;
  font-size: 23px;
  background: #fff0f2;
}

.journey-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.journey-copy strong { font-size: 13px; }
.journey-copy small { margin-top: 5px; color: #a19a9e; font-size: 9px; }

.journey-go {
  display: flex;
  width: 27px;
  height: 27px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  background: #5fdba6;
}

.home-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 9px;
  border-radius: 17px;
  background: white;
}

.home-gallery-cell {
  height: 100px;
  overflow: hidden;
  border-radius: 5px;
  background: #edf0f1;
}

.home-gallery-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-empty {
  display: flex;
  min-height: 155px;
  padding: 18px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 17px;
  color: #9c979b;
  font-size: 10px;
  background: #fff;
}

.home-empty.compact { min-height: 135px; }
.home-empty img { width: 38px; height: 38px; opacity: 0.18; }

.home-empty button {
  height: 31px;
  margin-top: 12px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  color: white;
  font-size: 10px;
  background: #5b7c94;
}

.login-diary {
  margin-bottom: 80px;
}

.hero {
  position: relative;
  height: 334px;
  margin: -6px -2px 0;
  overflow: hidden;
}

.hero > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom;
}

.hero-days {
  position: absolute;
  right: 27px;
  bottom: 29px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-shadow: 0 4px 12px rgba(255, 255, 255, 0.9);
}

.hero-days strong {
  color: #514348;
  font-family: Georgia, serif;
  font-size: 56px;
  line-height: 0.9;
}

.hero-days span {
  color: #9a8187;
  font-family: Georgia, serif;
  font-size: 13px;
  letter-spacing: 2px;
}

.hero-days em {
  color: #c399a1;
  font-family: Georgia, serif;
  font-size: 18px;
}

.quote-card {
  position: relative;
  margin: -26px 3px 0;
  padding: 20px 23px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 19px;
  color: #75686d;
  font-family: "Songti SC", serif;
  font-size: 12px;
  line-height: 1.8;
  text-align: center;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 32px rgba(89, 61, 70, 0.07);
  backdrop-filter: blur(12px);
}

.quote-card::before,
.quote-card::after {
  position: absolute;
  color: #f1d4d9;
  font-family: Georgia, serif;
  font-size: 35px;
  content: "“";
}

.quote-card::before {
  top: 2px;
  left: 8px;
}

.quote-card::after {
  right: 8px;
  bottom: -15px;
  content: "”";
}

.section-heading {
  display: flex;
  margin: 28px 4px 15px;
  align-items: center;
  justify-content: space-between;
}

.section-heading h2 {
  margin: 0;
  font-family: "Songti SC", serif;
  font-size: 19px;
  letter-spacing: 1px;
}

.section-heading button,
.section-heading span {
  border: 0;
  color: #aaa1a6;
  font-size: 10px;
  background: transparent;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
}

.quick-item {
  display: flex;
  padding: 0;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  border: 0;
  color: #5c5257;
  font-size: 11px;
  background: transparent;
}

.quick-icon {
  display: flex;
  width: 53px;
  height: 53px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 19px;
  background: linear-gradient(145deg, #fff0f1, #ffe1e4);
  box-shadow: 0 9px 22px rgba(101, 70, 80, 0.07);
}

.quick-icon img {
  width: 29px;
  height: 29px;
}

.quick-item.locked .quick-icon img {
  opacity: 0.56;
}

.quick-lock-dot {
  position: absolute;
  right: -4px;
  bottom: -4px;
  display: flex;
  width: 17px;
  height: 17px;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  border-radius: 50%;
  font-size: 7px;
  font-style: normal;
  background: #dce5e9;
}

.tone-amber {
  background: linear-gradient(145deg, #fff8e9, #ffeac9);
}

.tone-peach {
  background: linear-gradient(145deg, #fff1eb, #ffdcd4);
}

.tone-mint {
  background: linear-gradient(145deg, #eff9f2, #d9eee1);
}

.tone-lilac {
  background: linear-gradient(145deg, #f6eefa, #eadcf3);
}

.tone-blue {
  background: linear-gradient(145deg, #eef5fb, #dce9f5);
}

.date-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.date-card {
  display: flex;
  min-height: 72px;
  padding: 12px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 24px rgba(95, 66, 75, 0.05);
}

.date-icon {
  display: flex;
  width: 47px;
  height: 47px;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  background: #fff0f2;
}

.date-icon img {
  width: 24px;
  height: 24px;
}

.date-copy {
  flex: 1;
  min-width: 0;
  padding-left: 13px;
}

.date-copy strong,
.date-copy span {
  display: block;
}

.date-copy strong {
  color: #574b50;
  font-size: 13px;
}

.date-copy span {
  margin-top: 5px;
  color: #aaa1a5;
  font-size: 9px;
}

.date-count {
  color: var(--rose);
  font-family: Georgia, serif;
  font-size: 25px;
  font-weight: 700;
}

.date-count small {
  margin-left: 2px;
  font-size: 9px;
}

.announcement {
  display: flex;
  margin: 15px 3px 0;
  padding: 13px 15px;
  align-items: flex-start;
  gap: 9px;
  border-radius: 15px;
  color: #8e7c83;
  font-family: "Songti SC", serif;
  font-size: 10px;
  line-height: 1.65;
  background: linear-gradient(135deg, #fff1e9, #f7edf5);
}

.announcement span {
  color: #e98596;
}

.page-title {
  padding: 24px 8px 18px;
  text-align: center;
}

.page-title h1 {
  margin: 0;
  font-family: "Songti SC", serif;
  font-size: 27px;
}

.page-title p {
  margin: 7px 0 0;
  color: #a59ca1;
  font-size: 10px;
}

.diary-hero {
  padding: 22px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 88% 15%, rgba(255, 255, 255, 0.74), transparent 28%),
    linear-gradient(135deg, #ffe7df, #f7dce5 55%, #eadff2);
  box-shadow: 0 12px 34px rgba(99, 68, 78, 0.08);
}

.diary-hero h2 {
  margin: 6px 0 4px;
  font-family: "Songti SC", serif;
  font-size: 24px;
}

.diary-hero p {
  margin: 0;
  color: #967f87;
  font-size: 10px;
}

.diary-stats {
  display: flex;
  margin-top: 20px;
}

.diary-stats div {
  flex: 1;
  text-align: center;
}

.diary-stats strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 24px;
}

.diary-stats span {
  color: #9d898f;
  font-size: 9px;
}

.filters {
  display: flex;
  gap: 8px;
  margin: 17px 2px;
}

.filter-pill {
  height: 31px;
  padding: 0 14px;
  border: 1px solid #f4e8ea;
  border-radius: 999px;
  color: #a49aa0;
  font-size: 10px;
  background: rgba(255, 255, 255, 0.78);
}

.filter-pill.active {
  border-color: #ffd5db;
  color: #ef687e;
  background: #fff0f2;
}

.diary-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.diary-card {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 9px 27px rgba(95, 66, 75, 0.05);
}

.diary-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #aaa1a5;
  font-size: 9px;
}

.diary-card h3 {
  margin: 10px 0 7px;
  font-family: "Songti SC", serif;
  font-size: 18px;
}

.diary-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #807479;
  font-size: 11px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.diary-foot {
  display: flex;
  margin-top: 13px;
  align-items: center;
  justify-content: space-between;
  color: #ad9fa5;
  font-size: 9px;
}

.floating-add {
  position: fixed;
  right: max(calc((100vw - 540px) / 2 + 22px), 22px);
  bottom: calc(88px + var(--safe-bottom));
  z-index: 40;
  display: flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  border: 5px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  color: white;
  font-size: 28px;
  background: linear-gradient(145deg, #ff8a99, #ff5e77);
  box-shadow: 0 12px 26px rgba(255, 90, 115, 0.28);
}

.profile-hero {
  position: relative;
  padding: 24px 19px;
  overflow: hidden;
  border-radius: 23px;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 255, 255, 0.78), transparent 36%),
    linear-gradient(145deg, #ffe8e2, #f7dce6 54%, #e6dff3);
  box-shadow: 0 13px 36px rgba(98, 65, 75, 0.09);
}

.couple-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.couple-person {
  display: flex;
  width: 88px;
  flex-direction: column;
  align-items: center;
}

.couple-person img {
  width: 64px;
  height: 64px;
  border: 4px solid rgba(255, 255, 255, 0.84);
  border-radius: 50%;
  object-fit: cover;
}

.couple-person strong {
  margin-top: 7px;
  font-size: 12px;
}

.couple-person span {
  margin-top: 2px;
  color: #a18d94;
  font-size: 8px;
}

.couple-days {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.couple-days span:first-child {
  display: flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #f16980;
  background: rgba(255, 255, 255, 0.44);
}

.couple-days strong {
  font-family: Georgia, serif;
  font-size: 36px;
}

.couple-days small {
  color: #9d818a;
  font-family: Georgia, serif;
  font-size: 7px;
  letter-spacing: 1px;
}

.profile-motto {
  display: block;
  margin-top: 15px;
  color: #8e7981;
  font-family: "Songti SC", serif;
  font-size: 10px;
  text-align: center;
}

.white-profile {
  color: #3e3a3f;
  background: white;
}

.guest-profile {
  display: flex;
  padding: 8px 0 14px;
  flex-direction: column;
  align-items: center;
}

.guest-profile img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  opacity: 0.46;
  filter: grayscale(0.8);
}

.guest-profile strong {
  margin-top: 10px;
  font-size: 16px;
}

.guest-profile span {
  margin-top: 5px;
  color: #a19b9f;
  font-size: 9px;
}

.guest-profile button {
  height: 30px;
  margin-top: 11px;
  padding: 0 17px;
  border: 0;
  border-radius: 999px;
  color: white;
  font-size: 9px;
  background: #5b7c94;
}

.relationship-banner {
  display: flex;
  width: 100%;
  margin-top: 12px;
  padding: 15px;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 15px;
  color: white;
  text-align: left;
  background: linear-gradient(135deg, #5f7e97, #46677f);
}

.relationship-banner > span {
  display: flex;
  width: 37px;
  height: 37px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 18px;
  background: rgba(255, 255, 255, 0.13);
}

.relationship-banner > div {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.relationship-banner strong { font-size: 12px; }
.relationship-banner small { margin-top: 4px; color: rgba(255,255,255,.67); font-size: 8px; }

.relationship-banner em {
  padding: 7px 11px;
  border-radius: 999px;
  color: #536f83;
  font-size: 8px;
  font-style: normal;
  background: #dce7ee;
}

.help-grid {
  display: grid;
  margin-top: 12px;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.help-grid button {
  display: flex;
  min-height: 72px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 13px;
  color: #5d575c;
  background: white;
}

.help-grid span {
  display: flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #728fa2;
  background: #eef4f7;
}

.help-grid small { font-size: 8px; }

.profile-stats {
  display: flex;
  margin: 13px 17px 0;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.profile-stat {
  flex: 1;
  text-align: center;
}

.profile-stat strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 21px;
}

.profile-stat span {
  color: #aaa1a5;
  font-size: 8px;
}

.menu-card {
  margin-top: 13px;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 25px rgba(95, 66, 75, 0.045);
}

.menu-row {
  display: flex;
  min-height: 56px;
  padding: 0 16px;
  align-items: center;
  gap: 11px;
  border: 0;
  border-bottom: 1px solid #f5edef;
  color: #61565a;
  font-size: 12px;
  text-align: left;
  background: transparent;
}

.menu-row:last-child {
  border-bottom: 0;
}

.menu-icon {
  display: flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: #fff0f2;
}

.menu-icon img {
  width: 18px;
  height: 18px;
}

.menu-row strong {
  flex: 1;
  font-weight: 500;
}

.menu-row span {
  color: #aaa1a5;
  font-size: 9px;
}

.feature-header {
  padding: 19px 5px 15px;
}

.feature-header h1 {
  margin: 0;
  font-family: "Songti SC", serif;
  font-size: 27px;
}

.feature-header p {
  margin: 6px 0 0;
  color: #a59ca1;
  font-size: 10px;
}

.feature-banner {
  position: relative;
  padding: 22px;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(135deg, #ffe6de, #f4dce7 56%, #e6dff2);
}

.feature-banner h2 {
  margin: 0;
  font-family: "Songti SC", serif;
  font-size: 24px;
}

.feature-banner p {
  margin: 7px 0 0;
  color: #967f87;
  font-size: 10px;
}

.feature-list {
  display: flex;
  margin-top: 14px;
  flex-direction: column;
  gap: 10px;
}

.inline-wish-button {
  height: 34px;
  margin-top: 14px;
  padding: 0 17px;
  border: 1px solid #cce0ea;
  border-radius: 999px;
  color: #55748a;
  font-size: 10px;
  background: rgba(255, 255, 255, 0.55);
}

.wish-list-h5 {
  display: flex;
  margin-top: 14px;
  flex-direction: column;
  gap: 11px;
}

.wish-card-h5 {
  padding: 16px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(55, 52, 57, 0.045);
}

.wish-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wish-head > span {
  color: #4e494e;
  font-size: 12px;
  font-weight: 650;
}

.wish-head em {
  padding: 4px 9px;
  border-radius: 999px;
  color: #9b7480;
  font-size: 8px;
  font-style: normal;
  background: #fff0f3;
}

.wish-head em.received {
  color: #5b9677;
  background: #eaf7ef;
}

.wish-card-h5 > p {
  margin: 13px 0 0;
  color: #5c555a;
  font-family: "Songti SC", serif;
  font-size: 12px;
  line-height: 1.8;
}

.wish-card-h5 > img {
  width: 100%;
  height: 205px;
  margin-top: 12px;
  border-radius: 13px;
  object-fit: cover;
}

.wish-foot-h5 {
  display: flex;
  min-height: 30px;
  margin-top: 10px;
  align-items: center;
  justify-content: space-between;
}

.wish-foot-h5 button {
  height: 28px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  color: white;
  font-size: 9px;
  background: #5b7d96;
}

.wish-foot-h5 .wish-delete-h5 {
  margin-left: auto;
  color: #b0a7ab;
  background: transparent;
}

.wish-foot-h5 span {
  color: #a1989d;
  font-size: 9px;
}

.wish-foot-h5 .received-text {
  color: #6f9c81;
}

.feature-card {
  display: flex;
  padding: 15px;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 17px;
  color: #55494d;
  text-align: left;
  background: rgba(255, 255, 255, 0.91);
  box-shadow: 0 8px 24px rgba(95, 66, 75, 0.045);
}

.feature-card-icon {
  display: flex;
  width: 45px;
  height: 45px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #fff0f2;
}

.feature-card-icon img {
  width: 23px;
  height: 23px;
}

.feature-card-copy {
  flex: 1;
}

.feature-card-copy strong,
.feature-card-copy small {
  display: block;
}

.feature-card-copy strong {
  font-size: 12px;
}

.feature-card-copy small {
  margin-top: 4px;
  color: #a79ea3;
  font-size: 9px;
}

.treasure-card-image {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 13px;
  object-fit: cover;
}

.treasure-form-images {
  display: grid;
  margin-bottom: 12px;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.treasure-form-images > div {
  position: relative;
  height: 92px;
  overflow: hidden;
  border-radius: 12px;
}

.treasure-form-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.treasure-form-images button {
  position: absolute;
  top: 5px;
  right: 5px;
  display: flex;
  width: 23px;
  height: 23px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(45, 37, 42, 0.64);
}

.feature-number {
  color: var(--rose);
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 700;
}

.photo-grid {
  display: grid;
  margin-top: 15px;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.album-upload-panel {
  margin-top: 15px;
  padding: 16px;
  border: 1px solid #f2e7ea;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
}

.album-upload-panel .photo-add {
  min-height: 120px;
  margin-top: 11px;
}

.album-upload-panel .field-help {
  margin: 9px 2px 0;
}

.home-display-check {
  display: flex;
  margin-top: 12px;
  padding: 11px 12px;
  align-items: center;
  gap: 9px;
  border-radius: 13px;
  color: #786c72;
  font-size: 10px;
  background: #fbf6f8;
}

.home-display-check input {
  width: 17px;
  height: 17px;
  accent-color: #f36d83;
}

.photo-card,
.photo-add {
  overflow: hidden;
  border: 5px solid #fff;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(87, 61, 72, 0.08);
}

.photo-swipe-shell {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #e95d72;
}

.photo-card {
  position: relative;
  z-index: 1;
  transition: transform 0.22s ease;
  touch-action: pan-y;
}

.photo-card.swiped {
  transform: translateX(-72px);
}

.photo-swipe-delete {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 72px;
  border: 0;
  color: #fff;
  font-size: 10px;
  background: #e95d72;
}

.photo-card > img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.photo-placeholder {
  position: relative;
  display: flex;
  height: 150px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.75);
  font-family: Georgia, serif;
  font-size: 34px;
  background: linear-gradient(160deg, #ffe4d3, #f2c7cf 55%, #d2c4dd);
}

.photo-placeholder::before {
  position: absolute;
  top: 30px;
  right: 36px;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: rgba(255, 248, 207, 0.75);
  content: "";
}

.photo-placeholder::after {
  position: absolute;
  right: -24px;
  bottom: -60px;
  left: -24px;
  height: 130px;
  border-radius: 50% 50% 0 0;
  background: rgba(93, 91, 120, 0.22);
  content: "";
}

.photo-card small {
  display: block;
  padding: 9px 8px;
  overflow: hidden;
  color: #80757a;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-home-toggle {
  width: calc(100% - 16px);
  margin: 0 8px 8px;
  padding: 8px 5px;
  border: 0;
  border-radius: 9px;
  color: #8d8187;
  font-size: 9px;
  background: #f7f2f4;
}

.photo-home-toggle.active {
  color: #fff;
  background: #688aa5;
}

.photo-add {
  display: flex;
  min-height: 185px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-style: dashed;
  border-color: #ecd4d9;
  color: #d68795;
  background: #fffafa;
}

.photo-add > span {
  font-size: 31px;
}

.photo-add > small {
  margin-top: 8px;
  color: #aa9fa4;
  font-size: 9px;
}

.chat-list {
  display: flex;
  margin-top: 15px;
  flex-direction: column;
  gap: 14px;
}

.chat-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.chat-row.mine {
  flex-direction: row-reverse;
}

.chat-row > img {
  width: 38px;
  height: 38px;
  border: 2px solid white;
  border-radius: 50%;
}

.chat-row > div {
  display: flex;
  max-width: 73%;
  flex-direction: column;
  align-items: flex-start;
}

.chat-row.mine > div {
  align-items: flex-end;
}

.chat-row span {
  margin-bottom: 4px;
  color: #b1a8ac;
  font-size: 8px;
}

.chat-row p {
  margin: 0;
  padding: 12px 14px;
  border-radius: 5px 15px 15px 15px;
  color: #665b60;
  font-size: 11px;
  line-height: 1.65;
  background: white;
  box-shadow: 0 6px 19px rgba(89, 61, 71, 0.055);
}

.chat-row.mine p {
  border-radius: 15px 5px 15px 15px;
  color: white;
  background: linear-gradient(135deg, #ff8798, #ff667d);
}

.chat-composer {
  position: fixed;
  right: max(calc((100vw - 540px) / 2 + 18px), 18px);
  bottom: calc(88px + var(--safe-bottom));
  left: max(calc((100vw - 540px) / 2 + 18px), 18px);
  display: flex;
  height: 48px;
  padding: 5px 5px 5px 15px;
  align-items: center;
  border: 1px solid #f0e5e8;
  border-radius: 16px;
  background: white;
  box-shadow: 0 10px 30px rgba(85, 58, 68, 0.1);
}

.chat-composer input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #5e5358;
  font-size: 11px;
  background: transparent;
}

.chat-composer button {
  height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  color: white;
  font-size: 10px;
  background: linear-gradient(135deg, #ff8799, #ff647b);
}

.poster-card {
  display: flex;
  min-height: 470px;
  padding: 30px 25px;
  flex-direction: column;
  align-items: center;
  border-radius: 24px;
  background:
    radial-gradient(circle at 85% 12%, rgba(255, 255, 255, 0.62), transparent 25%),
    linear-gradient(145deg, #fff1eb, #f6e0e6 56%, #e8e1f3);
  box-shadow: 0 16px 45px rgba(91, 63, 74, 0.1);
}

.poster-card > strong {
  margin-top: 68px;
  color: #57464c;
  font-family: Georgia, serif;
  font-size: 96px;
  line-height: 1;
}

.poster-card > em {
  color: #8f7982;
  font-family: Georgia, serif;
  font-size: 15px;
  font-style: normal;
  letter-spacing: 2px;
}

.poster-card p {
  margin: 44px 7px 0;
  padding: 22px;
  border-radius: 17px;
  color: #87777e;
  font-family: "Songti SC", serif;
  font-size: 11px;
  line-height: 1.9;
  text-align: center;
  background: rgba(255, 255, 255, 0.72);
}

.poster-card > small {
  margin-top: auto;
  color: #a58f98;
  font-size: 9px;
}

.poster-card + .primary-button {
  margin-top: 15px;
}

.task-check {
  display: flex;
  width: 25px;
  height: 25px;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #eadde0;
  border-radius: 50%;
  color: white;
  font-size: 13px;
}

.task-check.done {
  border-color: var(--rose);
  background: var(--rose);
}

.empty-state {
  padding: 55px 20px;
  color: #aaa1a5;
  font-size: 11px;
  text-align: center;
}

.bind-card,
.info-panel {
  margin-bottom: 12px;
  padding: 18px;
  border-radius: 18px;
  background: white;
  box-shadow: 0 8px 24px rgba(55, 52, 57, 0.05);
}

.match-code {
  display: flex;
  margin-top: 15px;
  padding: 17px;
  flex-direction: column;
  align-items: center;
  border-radius: 14px;
  background: #f3f7f9;
}

.match-code > span { color: #8a8589; font-size: 9px; }
.match-code > strong { margin: 9px 0; color: #4d6d83; font-family: Georgia, serif; font-size: 28px; letter-spacing: 8px; }
.match-code > button { height: 29px; padding: 0 14px; border: 0; border-radius: 999px; color: #55748a; font-size: 9px; background: #e4eef3; }

.info-panel strong {
  display: block;
  margin-bottom: 10px;
  color: #494449;
  font-size: 12px;
}

.info-panel strong ~ strong {
  margin-top: 19px;
}

.info-panel p {
  margin: 0;
  color: #7f797e;
  font-size: 10px;
  line-height: 1.8;
}

.info-panel .secondary-button {
  margin-top: 15px;
}

.bound-avatars {
  display: flex;
  margin-bottom: 12px;
  align-items: center;
}

.bound-avatars img {
  width: 58px;
  height: 58px;
  border: 4px solid #f5f3f4;
  border-radius: 50%;
}

.bound-avatars span {
  margin: 0 -7px;
  z-index: 2;
  color: #e56276;
}

.bottom-nav {
  position: fixed;
  right: max(calc((100vw - 540px) / 2), 0px);
  bottom: 0;
  left: max(calc((100vw - 540px) / 2), 0px);
  z-index: 30;
  display: flex;
  height: calc(76px + var(--safe-bottom));
  padding: 8px 48px calc(7px + var(--safe-bottom));
  align-items: flex-start;
  border-top: 1px solid rgba(95, 70, 80, 0.06);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -7px 28px rgba(84, 55, 65, 0.05);
  backdrop-filter: blur(16px);
}

.nav-item {
  display: flex;
  flex: 1;
  padding-top: 5px;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border: 0;
  color: #aaa3ac;
  font-size: 9px;
  background: transparent;
}

.nav-item img {
  width: 24px;
  height: 24px;
}

.nav-item.active {
  color: var(--blue);
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  padding-top: 12vh;
  align-items: flex-end;
  justify-content: center;
  background: rgba(44, 35, 42, 0.34);
  backdrop-filter: blur(4px);
}

.sheet {
  width: min(540px, 100%);
  max-height: 88vh;
  overflow: auto;
  border-radius: 26px 26px 0 0;
  background: #fffbfa;
  box-shadow: 0 -20px 60px rgba(45, 34, 41, 0.16);
  animation: sheetIn 0.24s ease both;
}

@keyframes sheetIn {
  from { transform: translateY(30px); opacity: 0.5; }
  to { transform: translateY(0); opacity: 1; }
}

.sheet-handle {
  width: 38px;
  height: 4px;
  margin: 9px auto;
  border-radius: 999px;
  background: #e8dfe3;
}

.sheet-header {
  display: flex;
  padding: 13px 23px 8px;
  align-items: flex-start;
  justify-content: space-between;
}

.eyebrow {
  color: #aa9fa5;
  font-family: Georgia, serif;
  font-size: 8px;
  letter-spacing: 2px;
}

.sheet-header h2 {
  margin: 6px 0 0;
  font-family: "Songti SC", serif;
  font-size: 22px;
}

.sheet-close {
  display: flex;
  width: 33px;
  height: 33px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  color: #8e8388;
  font-size: 23px;
  background: #f7f0f2;
}

.sheet-body {
  padding: 14px 23px calc(28px + var(--safe-bottom));
}

.form-field {
  display: flex;
  margin-bottom: 14px;
  flex-direction: column;
  gap: 7px;
}

.form-field > span {
  color: #71656b;
  font-size: 10px;
  font-weight: 600;
}

.form-field input,
.form-field textarea {
  width: 100%;
  min-height: 42px;
  padding: 11px 13px;
  border: 1px solid #eee4e7;
  border-radius: 12px;
  outline: 0;
  color: #554b50;
  font-size: 12px;
  background: #fffdfd;
}

.form-field textarea {
  min-height: 130px;
  line-height: 1.7;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: #ff9aab;
  box-shadow: 0 0 0 3px rgba(255, 102, 125, 0.07);
}

.primary-button,
.secondary-button {
  display: flex;
  width: 100%;
  height: 45px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 650;
}

.primary-button {
  border: 0;
  color: white;
  background: linear-gradient(135deg, #ff8193, #ff5f78);
  box-shadow: 0 11px 24px rgba(255, 94, 120, 0.2);
}

.secondary-button {
  margin-top: 8px;
  border: 1px solid #f1dce0;
  color: #e86c80;
  background: #fff7f8;
}

.auth-tabs {
  display: flex;
  margin-bottom: 14px;
  padding: 3px;
  border-radius: 12px;
  background: #f7f1f3;
}

.auth-tabs button {
  flex: 1;
  height: 34px;
  border: 0;
  border-radius: 10px;
  color: #9b9096;
  font-size: 10px;
  background: transparent;
}

.auth-tabs button.active {
  color: #d85f74;
  background: white;
  box-shadow: 0 4px 13px rgba(79, 55, 64, 0.07);
}

.auth-subtabs {
  display: flex;
  margin-bottom: 12px;
  padding: 3px;
  border-radius: 11px;
  background: #fbf7f8;
}

.auth-subtabs button {
  flex: 1;
  height: 31px;
  border: 0;
  border-radius: 9px;
  color: #a0949a;
  font-size: 10px;
  background: transparent;
}

.auth-subtabs button.active {
  color: #d85f74;
  font-weight: 650;
  background: white;
  box-shadow: 0 3px 10px rgba(79, 55, 64, 0.06);
}

.danger-text-button {
  width: 100%;
  padding: 13px 0 2px;
  border: 0;
  color: #dc6477;
  font-size: 11px;
  background: transparent;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: calc(96px + var(--safe-bottom));
  left: 20px;
  z-index: 150;
  max-width: 420px;
  margin: auto;
  padding: 12px 16px;
  border-radius: 12px;
  opacity: 0;
  color: white;
  font-size: 11px;
  text-align: center;
  background: #453a42;
  transform: translateY(10px);
  transition: 0.18s ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.error {
  background: #ca5366;
}

@media (min-width: 700px) {
  .phone-shell {
    min-height: calc(100vh - 32px);
    margin: 16px auto;
    border-radius: 32px;
  }

  .bottom-nav {
    bottom: 16px;
    border-radius: 0 0 32px 32px;
  }
}

/* User-selectable themes */
.theme-picker {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.theme-option {
  display: flex;
  width: 100%;
  min-height: 82px;
  padding: 8px;
  align-items: center;
  gap: 13px;
  border: 1px solid #f1e7e9;
  border-radius: 18px;
  color: #594e53;
  text-align: left;
  background: rgba(255, 255, 255, 0.72);
}

.theme-option.active {
  border-color: #ffb0bb;
  background: #fff4f5;
  box-shadow: 0 8px 22px rgba(209, 110, 125, 0.1);
}

.theme-preview {
  position: relative;
  display: block;
  width: 104px;
  height: 66px;
  flex: 0 0 104px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 13px;
  box-shadow: 0 5px 14px rgba(67, 53, 59, 0.13);
}

.theme-preview-default {
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.75), transparent 30%),
    linear-gradient(145deg, #f7dce2, #d7e1eb 58%, #fff0df);
}

.theme-preview-default i,
.theme-preview-default b {
  position: absolute;
  bottom: 9px;
  width: 24px;
  height: 31px;
  border-radius: 12px 12px 9px 9px;
  background: rgba(255, 255, 255, 0.88);
}

.theme-preview-default i { left: 24px; }
.theme-preview-default b { right: 24px; }

.theme-preview-blackgold {
  background:
    linear-gradient(118deg, transparent 0 46%, rgba(242, 208, 127, 0.08) 47%, rgba(242, 208, 127, 0.42) 51%, transparent 55%),
    radial-gradient(circle at 15% 0, #3a3326, transparent 48%),
    #09090a;
}

.theme-preview-blackgold i,
.theme-preview-blackgold b {
  position: absolute;
  height: 2px;
  border-radius: 999px;
  background: #d8b46a;
  box-shadow: 0 10px 0 rgba(216, 180, 106, 0.65), 0 20px 0 rgba(216, 180, 106, 0.38);
}

.theme-preview-blackgold i {
  top: 22px;
  left: 15px;
  width: 34px;
}

.theme-preview-blackgold b {
  top: 52px;
  right: 15px;
  width: 44px;
}

.theme-preview-yierbubu {
  background:
    radial-gradient(circle at 20% 12%, white 0 2px, transparent 3px),
    radial-gradient(circle at 76% 35%, white 0 2px, transparent 3px),
    radial-gradient(circle at 55% 6%, white 0 1px, transparent 2px),
    linear-gradient(145deg, #99a9ad, #dce5e6 60%, #eef2f1);
}

.theme-preview-yierbubu img {
  position: absolute;
  right: -13px;
  bottom: -15px;
  width: 125px;
  height: 62px;
}

.theme-option-copy {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
}

.theme-option-copy strong {
  font-size: 13px;
}

.theme-option-copy small {
  margin-top: 5px;
  color: #9e9398;
  font-size: 9px;
  line-height: 1.5;
}

.theme-check {
  display: flex;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  font-size: 12px;
  background: #ff7388;
}

.theme-option:not(.active) .theme-check {
  background: #f0e9eb;
}

.theme-note {
  margin: 15px 3px 0;
  color: #a79ca1;
  font-size: 9px;
  line-height: 1.7;
  text-align: center;
}

html[data-theme="blackgold"] {
  --rose: #d8b46a;
  --rose-soft: #1b1812;
  --ink: #f2e3bf;
  --muted: #9f8f6d;
  --line: rgba(216, 180, 106, 0.16);
  --cream: #09090a;
  --blue: #d8b46a;
}

html[data-theme="blackgold"],
html[data-theme="blackgold"] body {
  color: var(--ink);
  background: #050505;
}

html[data-theme="blackgold"] .site-bg {
  background:
    radial-gradient(circle at 18% 8%, rgba(113, 87, 42, 0.2), transparent 28%),
    #050505;
}

html[data-theme="blackgold"] .phone-shell {
  isolation: isolate;
  background:
    linear-gradient(118deg, transparent 0 52%, rgba(228, 191, 107, 0.025) 53%, rgba(228, 191, 107, 0.08) 60%, transparent 61%),
    radial-gradient(circle at 92% 3%, rgba(157, 120, 50, 0.19), transparent 29%),
    radial-gradient(circle at 8% 52%, rgba(94, 75, 38, 0.13), transparent 27%),
    #090909;
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.72);
}

html[data-theme="blackgold"] .phone-shell::before {
  position: absolute;
  inset: -18% -45%;
  z-index: 0;
  background: linear-gradient(116deg, transparent 45%, rgba(247, 214, 136, 0.02) 48%, rgba(247, 214, 136, 0.16) 50.2%, rgba(247, 214, 136, 0.025) 52%, transparent 56%);
  content: "";
  transform: translateY(8%);
  pointer-events: none;
}

html[data-theme="blackgold"] .screen-container,
html[data-theme="blackgold"] .app-header {
  position: relative;
  z-index: 3;
}

html[data-theme="blackgold"] .header-brand,
html[data-theme="blackgold"] .header-circle {
  color: #d8b46a;
}

html[data-theme="blackgold"] .header-circle,
html[data-theme="blackgold"] .online-pill {
  border-color: rgba(216, 180, 106, 0.28);
  color: #e7cc91;
  background: rgba(18, 17, 15, 0.72);
  box-shadow: 0 7px 22px rgba(0, 0, 0, 0.28);
}

html[data-theme="blackgold"] .theme-dot {
  background: #d8b46a;
  box-shadow: 0 0 0 4px rgba(216, 180, 106, 0.11), 0 0 12px rgba(216, 180, 106, 0.42);
}

html[data-theme="blackgold"] .home-top {
  background:
    linear-gradient(118deg, transparent 0 44%, rgba(242, 204, 118, 0.025) 46%, rgba(242, 204, 118, 0.14) 51%, transparent 55%),
    radial-gradient(circle at 0 0, rgba(131, 94, 36, 0.32), transparent 38%),
    radial-gradient(circle at 90% 0, rgba(162, 126, 58, 0.18), transparent 29%),
    linear-gradient(150deg, #171511, #0d0d0e 53%, #080808);
}

html[data-theme="blackgold"] .home-top .bubble {
  border-color: rgba(225, 190, 115, 0.12);
}

html[data-theme="blackgold"] .home-top .bubble-one {
  box-shadow: inset 0 0 80px rgba(218, 180, 101, 0.04);
}

html[data-theme="blackgold"] .home-welcome h1,
html[data-theme="blackgold"] .page-title h1,
html[data-theme="blackgold"] .section-heading h2,
html[data-theme="blackgold"] .info-panel strong,
html[data-theme="blackgold"] .diary-card h3 {
  color: #f1dfb3;
}

html[data-theme="blackgold"] .home-welcome p,
html[data-theme="blackgold"] .page-title p,
html[data-theme="blackgold"] .section-heading span,
html[data-theme="blackgold"] .section-heading button {
  color: #8f805f;
}

html[data-theme="blackgold"] .home-story {
  border: 1px solid rgba(225, 190, 115, 0.32);
  color: #f0dfb7;
  background:
    linear-gradient(130deg, rgba(221, 181, 98, 0.055), transparent 36%),
    rgba(16, 16, 16, 0.94);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.52), inset 0 1px rgba(255, 235, 186, 0.05);
}

html[data-theme="blackgold"] .home-avatar,
html[data-theme="blackgold"] .guest-home-avatar {
  border-color: rgba(216, 180, 106, 0.52);
  background: #181510;
}

html[data-theme="blackgold"] .home-story-center strong {
  color: #f5e5bd;
}

html[data-theme="blackgold"] .home-story-center em,
html[data-theme="blackgold"] .home-story-center small,
html[data-theme="blackgold"] .home-story > p {
  color: #b7a47b;
}

html[data-theme="blackgold"] .home-sheet {
  background:
    radial-gradient(circle at 100% 25%, rgba(140, 105, 45, 0.1), transparent 29%),
    #0b0b0b;
}

html[data-theme="blackgold"] .journey-card,
html[data-theme="blackgold"] .home-empty,
html[data-theme="blackgold"] .home-gallery,
html[data-theme="blackgold"] .date-card,
html[data-theme="blackgold"] .diary-card,
html[data-theme="blackgold"] .feature-banner,
html[data-theme="blackgold"] .feature-card,
html[data-theme="blackgold"] .bind-card,
html[data-theme="blackgold"] .info-panel,
html[data-theme="blackgold"] .album-upload-panel,
html[data-theme="blackgold"] .wish-card-h5,
html[data-theme="blackgold"] .menu-row {
  border-color: rgba(216, 180, 106, 0.17);
  color: #d8c69d;
  background: rgba(20, 19, 17, 0.91);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

html[data-theme="blackgold"] .journey-copy strong,
html[data-theme="blackgold"] .date-copy strong,
html[data-theme="blackgold"] .quick-item,
html[data-theme="blackgold"] .feature-banner h2,
html[data-theme="blackgold"] .menu-row strong {
  color: #e9d6a9;
}

html[data-theme="blackgold"] .journey-copy small,
html[data-theme="blackgold"] .date-copy span,
html[data-theme="blackgold"] .feature-banner p,
html[data-theme="blackgold"] .home-empty,
html[data-theme="blackgold"] .field-help,
html[data-theme="blackgold"] .feature-card-copy small {
  color: #8d7d5d;
}

html[data-theme="blackgold"] .journey-heart {
  color: #e5c37b;
  background: #282116;
}

html[data-theme="blackgold"] .journey-arrow {
  color: #17130d;
  background: linear-gradient(135deg, #ebcf91, #b88f45);
}

html[data-theme="blackgold"] .quick-icon,
html[data-theme="blackgold"] .date-icon,
html[data-theme="blackgold"] .feature-card-icon {
  border-color: rgba(231, 198, 127, 0.23);
  background:
    linear-gradient(145deg, rgba(234, 202, 133, 0.12), rgba(29, 25, 18, 0.45)),
    #161410;
  box-shadow: inset 0 1px rgba(255, 239, 198, 0.06), 0 10px 24px rgba(0, 0, 0, 0.25);
}

html[data-theme="blackgold"] .quick-icon img,
html[data-theme="blackgold"] .date-icon img,
html[data-theme="blackgold"] .feature-card-icon img {
  filter: grayscale(1) sepia(1) saturate(2.4) brightness(1.2);
}

html[data-theme="blackgold"] .home-empty button,
html[data-theme="blackgold"] .primary-button,
html[data-theme="blackgold"] .empty-action {
  color: #1a1610;
  background: linear-gradient(135deg, #ebcf91, #b88f45);
}

html[data-theme="blackgold"] .bottom-nav {
  border-color: rgba(216, 180, 106, 0.12);
  background: rgba(9, 9, 9, 0.94);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.36);
}

html[data-theme="blackgold"] .nav-item {
  color: #74694f;
}

html[data-theme="blackgold"] .nav-item.active {
  color: #e1bd72;
}

html[data-theme="blackgold"] .nav-item img {
  filter: sepia(1) saturate(2) brightness(0.82);
}

html[data-theme="blackgold"] .sheet-backdrop {
  background: rgba(0, 0, 0, 0.66);
}

html[data-theme="blackgold"] .sheet {
  border: 1px solid rgba(216, 180, 106, 0.19);
  color: #d9c699;
  background:
    radial-gradient(circle at 90% 4%, rgba(146, 109, 46, 0.15), transparent 28%),
    #10100f;
}

html[data-theme="blackgold"] .sheet-handle {
  background: #4b402c;
}

html[data-theme="blackgold"] .sheet-header h2,
html[data-theme="blackgold"] .form-field > span {
  color: #ecd9ae;
}

html[data-theme="blackgold"] .eyebrow {
  color: #9f8b63;
}

html[data-theme="blackgold"] .sheet-close {
  color: #d4b979;
  background: #242017;
}

html[data-theme="blackgold"] .form-field input,
html[data-theme="blackgold"] .form-field textarea,
html[data-theme="blackgold"] .form-field select {
  border-color: rgba(216, 180, 106, 0.19);
  color: #ead9b2;
  background: #151410;
}

html[data-theme="blackgold"] .theme-option {
  border-color: rgba(216, 180, 106, 0.15);
  color: #e7d5aa;
  background: rgba(25, 23, 19, 0.9);
}

html[data-theme="blackgold"] .theme-option.active {
  border-color: rgba(235, 202, 127, 0.58);
  background: rgba(44, 37, 24, 0.78);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.34);
}

html[data-theme="blackgold"] .theme-option-copy small,
html[data-theme="blackgold"] .theme-note {
  color: #8c7c5c;
}

html[data-theme="blackgold"] .theme-check {
  color: #17130d;
  background: #d6b46b;
}

html[data-theme="blackgold"] .theme-option:not(.active) .theme-check {
  background: #2b261d;
}

html[data-theme="yierbubu"] {
  --rose: #7b8d91;
  --rose-soft: #edf3f4;
  --ink: #344044;
  --muted: #88969a;
  --line: #dbe6e7;
  --cream: #e7eded;
  --blue: #6f858a;
}

html[data-theme="yierbubu"],
html[data-theme="yierbubu"] body {
  color: var(--ink);
  background: #d8e2e3;
}

html[data-theme="yierbubu"] .site-bg {
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 255, 255, 0.84), transparent 29%),
    radial-gradient(circle at 88% 82%, rgba(194, 210, 213, 0.8), transparent 32%),
    #d5dfe0;
}

html[data-theme="yierbubu"] .phone-shell {
  isolation: isolate;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.85) 0 1px, transparent 2px),
    radial-gradient(circle at 71% 16%, rgba(255, 255, 255, 0.82) 0 2px, transparent 3px),
    radial-gradient(circle at 38% 27%, rgba(255, 255, 255, 0.7) 0 1px, transparent 2px),
    radial-gradient(circle at 87% 44%, rgba(255, 255, 255, 0.72) 0 1px, transparent 2px),
    linear-gradient(180deg, #d6e1e2, #edf1f1 38%, #f7f8f7);
  background-size: 130px 150px, 170px 190px, 105px 130px, 190px 210px, 100% 100%;
  box-shadow: 0 0 70px rgba(67, 87, 91, 0.15);
}

html[data-theme="yierbubu"] .phone-shell::after {
  position: absolute;
  top: 68px;
  right: -16px;
  z-index: 1;
  color: rgba(255, 255, 255, 0.64);
  font-size: 38px;
  letter-spacing: 34px;
  text-shadow: -180px 135px 0 rgba(255, 255, 255, 0.42), -330px 35px 0 rgba(255, 255, 255, 0.3);
  content: "❄";
  pointer-events: none;
}

html[data-theme="yierbubu"] .header-brand,
html[data-theme="yierbubu"] .header-circle {
  color: #53676c;
}

html[data-theme="yierbubu"] .header-circle,
html[data-theme="yierbubu"] .online-pill {
  border-color: rgba(255, 255, 255, 0.82);
  color: #5f7478;
  background: rgba(250, 253, 253, 0.63);
  box-shadow: 0 8px 22px rgba(72, 91, 95, 0.1);
  backdrop-filter: blur(13px);
}

html[data-theme="yierbubu"] .theme-dot {
  background: #8aa1a5;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.35);
}

html[data-theme="yierbubu"] .home-top {
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 255, 255, 0.86) 0 2px, transparent 3px),
    radial-gradient(circle at 65% 21%, rgba(255, 255, 255, 0.72) 0 2px, transparent 3px),
    radial-gradient(circle at 94% 43%, rgba(255, 255, 255, 0.52) 0 1px, transparent 2px),
    linear-gradient(155deg, rgba(64, 76, 78, 0.79), rgba(127, 143, 145, 0.77) 54%, rgba(189, 202, 202, 0.9));
  background-size: 120px 130px, 150px 160px, 95px 110px, 100% 100%;
}

html[data-theme="yierbubu"] .home-top::after {
  position: absolute;
  top: 23px;
  left: 20px;
  width: 105px;
  height: 105px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  box-shadow: 255px 45px 0 -42px rgba(255, 255, 255, 0.07), 50px 160px 0 -44px rgba(255, 255, 255, 0.1);
  content: "";
}

html[data-theme="yierbubu"] .home-welcome h1 {
  color: #fff;
  text-shadow: 0 2px 12px rgba(65, 79, 81, 0.24);
}

html[data-theme="yierbubu"] .home-welcome p {
  color: rgba(255, 255, 255, 0.8);
}

html[data-theme="yierbubu"] .home-story {
  border: 3px solid rgba(255, 255, 255, 0.68);
  color: #46555a;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.98), transparent 20%),
    rgba(250, 253, 253, 0.82);
  box-shadow: 0 18px 38px rgba(63, 79, 82, 0.18);
  backdrop-filter: blur(14px);
}

html[data-theme="yierbubu"] .home-story::after {
  position: absolute;
  right: 13px;
  bottom: 9px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 19px;
  text-shadow: -205px -4px 0 rgba(255, 255, 255, 0.58), -74px -158px 0 rgba(255, 255, 255, 0.48);
  content: "❄";
}

html[data-theme="yierbubu"] .winter-bears-accent {
  position: absolute;
  right: -12px;
  bottom: 2px;
  z-index: 1;
  width: 205px;
  height: 92px;
  opacity: 0.68;
  pointer-events: none;
}

html[data-theme="yierbubu"] .home-avatar,
html[data-theme="yierbubu"] .guest-home-avatar {
  border-color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 18px rgba(79, 100, 104, 0.16);
}

html[data-theme="yierbubu"] .home-story-center strong {
  color: #3f4c50;
}

html[data-theme="yierbubu"] .home-story-center em,
html[data-theme="yierbubu"] .home-story-center small,
html[data-theme="yierbubu"] .home-story > p {
  color: #718186;
}

html[data-theme="yierbubu"] .home-sheet {
  background:
    radial-gradient(circle at 12% 7%, rgba(255, 255, 255, 0.95) 0 2px, transparent 3px),
    radial-gradient(circle at 88% 35%, rgba(255, 255, 255, 0.76) 0 1px, transparent 2px),
    linear-gradient(180deg, #f0f4f4, #fbfcfb);
  background-size: 135px 145px, 180px 190px, 100% 100%;
}

html[data-theme="yierbubu"] .journey-card,
html[data-theme="yierbubu"] .home-empty,
html[data-theme="yierbubu"] .home-gallery,
html[data-theme="yierbubu"] .date-card,
html[data-theme="yierbubu"] .diary-card,
html[data-theme="yierbubu"] .feature-banner,
html[data-theme="yierbubu"] .feature-card,
html[data-theme="yierbubu"] .bind-card,
html[data-theme="yierbubu"] .info-panel,
html[data-theme="yierbubu"] .album-upload-panel,
html[data-theme="yierbubu"] .wish-card-h5,
html[data-theme="yierbubu"] .menu-row {
  border-color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.73);
  box-shadow: 0 10px 28px rgba(70, 91, 95, 0.08);
  backdrop-filter: blur(12px);
}

html[data-theme="yierbubu"] .section-heading h2,
html[data-theme="yierbubu"] .page-title h1,
html[data-theme="yierbubu"] .journey-copy strong,
html[data-theme="yierbubu"] .date-copy strong,
html[data-theme="yierbubu"] .quick-item {
  color: #3f4d51;
}

html[data-theme="yierbubu"] .journey-copy small,
html[data-theme="yierbubu"] .date-copy span,
html[data-theme="yierbubu"] .home-empty,
html[data-theme="yierbubu"] .section-heading span,
html[data-theme="yierbubu"] .section-heading button {
  color: #8b999d;
}

html[data-theme="yierbubu"] .quick-icon,
html[data-theme="yierbubu"] .date-icon,
html[data-theme="yierbubu"] .feature-card-icon {
  border-color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(226, 235, 236, 0.92));
  box-shadow: 0 8px 21px rgba(72, 93, 97, 0.08);
}

html[data-theme="yierbubu"] .bottom-nav {
  border-color: rgba(255, 255, 255, 0.84);
  background: rgba(249, 252, 252, 0.9);
  box-shadow: 0 -8px 26px rgba(62, 82, 86, 0.08);
  backdrop-filter: blur(16px);
}

html[data-theme="yierbubu"] .nav-item {
  color: #9ba8ab;
}

html[data-theme="yierbubu"] .nav-item.active {
  color: #627a7f;
}

html[data-theme="yierbubu"] .sheet {
  color: #445257;
  background:
    radial-gradient(circle at 8% 5%, rgba(255, 255, 255, 0.94) 0 2px, transparent 3px),
    linear-gradient(180deg, #eff4f4, #fff);
  background-size: 145px 155px, 100% 100%;
}

html[data-theme="yierbubu"] .theme-option {
  border-color: rgba(214, 226, 228, 0.92);
  background: rgba(255, 255, 255, 0.72);
}

html[data-theme="yierbubu"] .theme-option.active {
  border-color: #a9bec1;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 9px 24px rgba(69, 91, 95, 0.1);
}

html[data-theme="yierbubu"] .theme-check {
  background: #7d969a;
}
