* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

body {
  color: #292630;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

/* 首页 */

.home-page {
  min-height: 100vh;
  background:
    radial-gradient(
      circle at top left,
      rgba(255, 255, 255, 0.72),
      transparent 42%
    ),
    linear-gradient(
      135deg,
      #e3e5f0 0%,
      #d8dcef 52%,
      #ece4f2 100%
    );
}

.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 30px;
}

.hero-card {
  width: min(560px, 100%);
  padding: 48px 36px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 24px 70px rgba(80, 60, 100, 0.2);
  backdrop-filter: blur(20px);
}

.avatar {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border: 6px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background: #eeeeee;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.eyebrow {
  margin-top: 24px;
  font-size: 12px;
  letter-spacing: 3px;
  opacity: 0.6;
}

.hero-card h1 {
  margin: 10px 0;
  font-size: clamp(36px, 8vw, 64px);
}

.intro {
  line-height: 1.8;
  color: #5e5767;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 24px 0;
}

.tags span {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
}

.enter-button {
  display: inline-block;
  padding: 14px 24px;
  color: white;
  border-radius: 999px;
  background: #7556d9;
  box-shadow: 0 10px 24px rgba(117, 86, 217, 0.32);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.enter-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(117, 86, 217, 0.4);
}

/* 便利贴墙 */

.wall-page {
  min-height: 100vh;
  overflow: hidden;
  background: #d8c8a8;
}

.wall-header {
  position: relative;
  z-index: 1000;
  min-height: 110px;
  display: grid;
  grid-template-columns: 140px 1fr 140px;
  align-items: center;
  gap: 20px;
  padding: 18px 30px;
  text-align: center;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 6px 20px rgba(75, 55, 35, 0.12);
  backdrop-filter: blur(14px);
}

.wall-header h1,
.wall-header p {
  margin: 0;
}

.wall-header p {
  margin-top: 6px;
  color: #746b61;
}

.back-button,
.reset-button {
  padding: 11px 18px;
  border: 0;
  border-radius: 999px;
  background: white;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.wall {
  position: relative;
  height: calc(100vh - 110px);
  overflow: hidden;
  background:
    linear-gradient(
      rgba(255, 255, 255, 0.12),
      rgba(255, 255, 255, 0.12)
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 160px,
      rgba(90, 65, 35, 0.04) 161px
    ),
    #d8c8a8;
}

.note {
  position: absolute;
  width: 240px;
  min-height: 230px;
  padding: 18px;
  border-radius: 3px;
  box-shadow:
    0 12px 22px rgba(65, 45, 25, 0.22),
    inset 0 -16px 25px rgba(255, 180, 30, 0.08);
  cursor: grab;
  user-select: none;
  touch-action: none;
  transition:
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.note::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  width: 76px;
  height: 23px;
  transform: translateX(-50%) rotate(-2deg);
  background: rgba(255, 255, 255, 0.46);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.note:hover {
  filter: brightness(1.03);
  box-shadow:
    0 18px 32px rgba(65, 45, 25, 0.3),
    inset 0 -16px 25px rgba(255, 180, 30, 0.08);
}

.note.dragging {
  cursor: grabbing;
  box-shadow: 0 25px 45px rgba(50, 35, 20, 0.35);
}

.note-yellow {
  background: #fff2a8;
}

.note-pink {
  background: #ffd5e4;
}

.note-blue {
  background: #cfeeff;
}

.note-green {
  background: #dff4c7;
}

.note-purple {
  background: #e4d8ff;
}

.note-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(50, 40, 40, 0.18);
  font-size: 13px;
}

.note-author {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  min-width: 0;
  font-weight: 700;
}

.note-date {
  flex-shrink: 0;
  max-width: 105px;
  color: rgba(41, 38, 48, 0.62);
  font-size: 11px;
  line-height: 1.35;
  text-align: right;
  white-space: nowrap;
}

.new-badge {
  display: inline-block;
  padding: 2px 6px;
  color: white;
  border-radius: 999px;
  background: #ff5f82;
  font-size: 9px;
  line-height: 1.3;
  letter-spacing: 0.5px;
}

.note-text {
  line-height: 1.6;
}

.note-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.note-images img {
  width: 100%;
  height: 85px;
  object-fit: cover;
  border-radius: 4px;
  pointer-events: none;
}

.note-images img:only-child {
  grid-column: 1 / -1;
  height: 140px;
}

.source-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  text-decoration: underline;
  opacity: 0.7;
}

/* 放大弹窗 */

.note-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: rgba(25, 20, 30, 0.68);
  backdrop-filter: blur(10px);
}

.note-modal.active {
  display: flex;
}

.modal-note {
  width: min(560px, 92vw);
  max-height: 82vh;
  overflow-y: auto;
  padding: 30px;
  border-radius: 5px;
  background: #fff2a8;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45);
  animation: openNote 0.22s ease-out;
}

.modal-note .note-images img {
  height: auto;
  max-height: 450px;
}

.modal-close {
  position: fixed;
  top: 20px;
  right: 28px;
  border: 0;
  color: white;
  background: transparent;
  font-size: 48px;
  cursor: pointer;
}

@keyframes openNote {
  from {
    opacity: 0;
    transform: scale(0.8) rotate(-3deg);
  }

  to {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

@media (max-width: 700px) {
  .wall-header {
    grid-template-columns: 1fr 1fr;
    min-height: 150px;
  }

  .wall-header > div {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .wall {
    height: calc(100vh - 150px);
  }

  .note {
    width: 180px;
    min-height: 180px;
    padding: 13px;
  }
}

