:root {
  --paper: #fff9f4;
  --ink: #352722;
  --muted: #7c655d;
  --rose: #e27096;
  --rose-dark: #c6537d;
  --sun: #f7c56e;
  --line: rgba(96, 63, 53, 0.14);
  --shadow: 0 24px 58px rgba(79, 43, 34, 0.14);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(247, 197, 110, 0.28), transparent 26rem),
    radial-gradient(circle at bottom right, rgba(226, 112, 150, 0.18), transparent 24rem),
    linear-gradient(145deg, #fffaf5 0%, #fff0f3 56%, #fff8ee 100%);
}

button,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
}

.morning-shell {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 24px 0 42px;
}

.morning-hero,
.voice-card {
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 28px;
  background: rgba(255, 250, 244, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.morning-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.82fr);
  gap: 24px;
  padding: clamp(20px, 3.5vw, 34px);
}

.morning-hero-side {
  display: grid;
  align-content: start;
  gap: 16px;
}

.eyebrow,
.card-kicker {
  margin: 0 0 10px;
  color: var(--rose-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "ZCOOL XiaoWei", "Noto Sans SC", serif;
  font-weight: 400;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 1.04;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.6rem, 3vw, 2.06rem);
}

.hero-text,
.card-text,
.form-status,
.receive-status,
.record-status-box p,
.receive-summary p,
.sync-card small {
  color: var(--muted);
  line-height: 1.75;
}

.sync-card,
.identity-field,
.record-status-box,
.empty-state,
.receive-summary,
.record-meter {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
}

.sync-card,
.identity-field {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
}

.sync-card span,
.identity-field span,
.date-badge {
  font-size: 0.92rem;
}

select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.92rem 1rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  outline: none;
}

select:focus,
.soft-button:focus-visible,
.play-heart-button:focus-visible {
  border-color: rgba(226, 112, 150, 0.56);
  box-shadow: 0 0 0 4px rgba(226, 112, 150, 0.12);
}

.hero-actions,
.record-buttons,
.receive-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.soft-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.82rem 1.15rem;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, var(--rose-dark), var(--rose));
  box-shadow: 0 14px 28px rgba(198, 83, 125, 0.18);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    opacity 180ms ease;
}

.soft-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 30px rgba(198, 83, 125, 0.2);
}

.soft-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.soft-button.ghost {
  color: var(--ink);
  border-color: rgba(125, 97, 86, 0.16);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: none;
}

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

.voice-card {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 3vw, 28px);
}

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

.date-badge,
.status-badge,
.state-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 0.88rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
}

.date-badge,
.state-pill {
  color: #7a5c52;
  background: rgba(255, 245, 237, 0.94);
}

.status-badge {
  color: #fff;
  background: linear-gradient(135deg, #f0a65a, #e88258);
}

.sun-scene {
  position: relative;
  height: 220px;
  overflow: hidden;
  border: 1px solid rgba(243, 212, 173, 0.5);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.56), transparent 30%),
    linear-gradient(180deg, #fff7db 0%, #ffe8cc 56%, #fff7ea 100%);
}

.receive-card {
  align-content: start;
}

.receive-card.is-open {
  transform: translateY(-2px);
}

.sun-halo {
  position: absolute;
  left: 50%;
  top: 38px;
  width: 158px;
  height: 158px;
  margin-left: -79px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 111, 0.6), rgba(255, 214, 111, 0));
  opacity: 0.58;
  transition: transform 260ms ease, opacity 260ms ease;
  animation: haloDrift 4.8s ease-in-out infinite;
}

.sun-core {
  position: absolute;
  left: 50%;
  top: 62px;
  width: 92px;
  height: 92px;
  margin-left: -46px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff7c5, #f7be57 70%, #ef9d47);
  box-shadow: inset 0 8px 16px rgba(255, 255, 255, 0.38);
  animation: sunIdle 3.8s ease-in-out infinite;
}

.sun-rays span {
  position: absolute;
  left: 50%;
  top: 92px;
  width: 6px;
  height: 32px;
  margin-left: -3px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 245, 195, 0.98), rgba(247, 190, 86, 0.56));
  transform-origin: center -14px;
  opacity: 0.7;
  animation: rayIdle 4.4s ease-in-out infinite;
}

.sun-rays span:nth-child(1) { transform: rotate(0deg) translateY(-68px); }
.sun-rays span:nth-child(2) { transform: rotate(60deg) translateY(-68px); }
.sun-rays span:nth-child(3) { transform: rotate(120deg) translateY(-68px); }
.sun-rays span:nth-child(4) { transform: rotate(180deg) translateY(-68px); }
.sun-rays span:nth-child(5) { transform: rotate(240deg) translateY(-68px); }
.sun-rays span:nth-child(6) { transform: rotate(300deg) translateY(-68px); }

.sun-cloud {
  position: absolute;
  bottom: 34px;
  width: 116px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow:
    24px -8px 0 6px rgba(255, 255, 255, 0.84),
    56px 2px 0 -2px rgba(255, 255, 255, 0.84);
}

.sun-cloud.left {
  left: 28px;
}

.sun-cloud.right {
  right: 78px;
  transform: scale(0.82);
}

.record-card.is-recording .sun-halo,
.receive-card.is-open .sun-halo {
  transform: scale(1.08);
  opacity: 0.9;
}

.record-card.is-recording .sun-core,
.receive-card.is-playing .sun-core {
  animation: sunPulse 2.4s ease-in-out infinite;
}

.record-card.is-recording .sun-rays span,
.receive-card.is-playing .sun-rays span {
  animation: rayGlow 2.2s ease-in-out infinite;
}

.record-controls,
.receive-content {
  display: grid;
  gap: 16px;
}

.record-status-box,
.receive-summary {
  padding: 16px 18px;
}

.record-meter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
}

.record-meter strong {
  font-size: 1.48rem;
  font-variant-numeric: tabular-nums;
}

.voice-player {
  width: 100%;
  height: 48px;
}

.empty-state {
  padding: 18px 18px 20px;
}

.empty-state p {
  margin-bottom: 0;
}

.play-heart-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 54px;
  padding: 0.88rem 1.28rem;
  border: 1px solid rgba(226, 112, 150, 0.18);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(145deg, #f08daf 0%, #ea729b 54%, #db5e86 100%);
  box-shadow: 0 16px 28px rgba(219, 94, 134, 0.2);
}

.play-heart-button:hover {
  transform: translateY(-1px);
}

.play-heart-button.is-playing {
  box-shadow: 0 20px 34px rgba(219, 94, 134, 0.28);
}

.heart-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
  font-size: 1rem;
  line-height: 1;
}

.receive-status {
  min-height: 1.8rem;
  margin-bottom: 0;
}

.receive-effects {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  pointer-events: none;
}

.float-particle {
  position: absolute;
  z-index: 6;
  top: 112px;
  line-height: 1;
  opacity: 0;
  filter: drop-shadow(0 8px 16px rgba(255, 196, 214, 0.18));
  animation: floatUp 2.1s ease-out forwards;
}

.float-particle.heart {
  color: rgba(233, 94, 140, 0.96);
  font-size: 1.58rem;
  text-shadow: 0 6px 18px rgba(233, 108, 147, 0.28);
}

.float-particle.note {
  color: rgba(244, 173, 61, 0.98);
  font-size: 1.46rem;
  text-shadow: 0 6px 18px rgba(244, 181, 83, 0.28);
}

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

  50% {
    transform: translateY(-2px) scale(1.03);
  }
}

@keyframes rayIdle {
  0%,
  100% {
    opacity: 0.58;
  }

  50% {
    opacity: 0.85;
  }
}

@keyframes haloDrift {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.52;
  }

  50% {
    transform: scale(1.05);
    opacity: 0.72;
  }
}

@keyframes sunPulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.06);
  }
}

@keyframes rayGlow {
  0%,
  100% {
    opacity: 0.62;
  }

  50% {
    opacity: 1;
  }
}

@keyframes floatUp {
  0% {
    opacity: 0;
    transform: translate3d(0, 14px, 0) scale(0.82);
  }

  16% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate3d(var(--drift-x), -138px, 0) scale(1.16);
  }
}

@media (max-width: 920px) {
  .morning-layout,
  .morning-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .morning-shell {
    width: min(100% - 18px, 520px);
    padding: 12px 0 28px;
  }

  .morning-hero,
  .voice-card {
    border-radius: 24px;
    padding: 18px;
  }

  .sun-scene {
    height: 188px;
  }

  .sun-core {
    top: 56px;
    width: 82px;
    height: 82px;
    margin-left: -41px;
  }

  .sun-halo {
    top: 32px;
    width: 138px;
    height: 138px;
    margin-left: -69px;
  }

  .sun-cloud.left {
    left: 18px;
    transform: scale(0.86);
  }

  .sun-cloud.right {
    right: 44px;
    transform: scale(0.72);
  }

  .record-buttons,
  .receive-actions,
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .soft-button,
  .play-heart-button {
    width: 100%;
  }
}
