* {
  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-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 8px;
}

.note-tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 24px;
  padding: 4px 9px;
  overflow: hidden;
  border: 1px solid rgba(76, 58, 86, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 3px 8px rgba(71, 51, 78, 0.07);
  color: rgba(55, 43, 63, 0.82);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.note-tag::before {
  content: "#";
  margin-right: 3px;
  color: #a85d89;
  font-weight: 900;
}

.modal-note .note-tags {
  gap: 8px;
  margin: 14px 0 12px;
}

.modal-note .note-tag {
  min-height: 28px;
  padding: 6px 11px;
  font-size: 12px;
}

.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;
  }

  .note-tags {
    gap: 4px;
    margin: 8px 0 6px;
  }

  .note-tag {
    min-height: 21px;
    padding: 3px 7px;
    font-size: 9px;
  }
}

.bilibili-fans {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 12px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
}

.fans-label {
  font-size: 14px;
  opacity: 0.75;
}

.fans-count {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    opacity 0.18s ease;
}

.fans-count:hover {
  transform: translateY(-1px) scale(1.03);
}

.fans-count:focus-visible {
  outline: 2px solid #7556d9;
  outline-offset: 4px;
  border-radius: 6px;
}

.fans-count[aria-busy="true"] {
  opacity: 0.6;
  cursor: wait;
}

.fans-status {
  font-size: 12px;
  opacity: 0.55;
}


/* =========================
   语音库页面
========================= */

.soundboard-page {
  min-height: 100vh;
  margin: 0;
  padding-bottom: 110px;
  background:
    radial-gradient(
      circle at top left,
      rgba(255, 218, 232, 0.75),
      transparent 34%
    ),
    radial-gradient(
      circle at top right,
      rgba(219, 226, 255, 0.85),
      transparent 34%
    ),
    #fff9fc;
  color: #342d38;
}

.soundboard-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0 30px;
}

.soundboard-eyebrow {
  margin: 0 0 6px;
  color: #b3537a;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.soundboard-header h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1;
}

.soundboard-header-text > p:last-child {
  margin: 14px 0 0;
  color: #766b78;
  font-size: 16px;
}

.soundboard-header-actions {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.sound-search {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #746977;
  font-size: 13px;
  font-weight: 700;
}

.sound-search input {
  width: min(290px, 70vw);
  height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(92, 68, 84, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 30px rgba(95, 62, 83, 0.08);
  color: #342d38;
  font: inherit;
  outline: none;
}

.sound-search input:focus {
  border-color: #d2779e;
  box-shadow:
    0 0 0 4px rgba(210, 119, 158, 0.14),
    0 10px 30px rgba(95, 62, 83, 0.08);
}

.sound-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 17px;
  border: 0;
  border-radius: 15px;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(95, 62, 83, 0.1);
  color: #5d4b59;
  font: inherit;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.sound-home-link {
  text-decoration: none;
}

.sound-action-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(95, 62, 83, 0.15);
}

.sound-action-button-danger {
  background: #493c48;
  color: #ffffff;
}

.soundboard-main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.sound-category-nav {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 12px;
  border: 1px solid rgba(106, 80, 98, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 40px rgba(91, 61, 80, 0.09);
  backdrop-filter: blur(18px);
  scrollbar-width: none;
}

.sound-category-nav::-webkit-scrollbar {
  display: none;
}

.sound-category-button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #675966;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.sound-category-button:hover {
  background: #fff1f6;
}

.sound-category-button.is-active {
  background: #cc6c96;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(185, 80, 126, 0.25);
}

.recent-sounds-section,
.sound-section {
  margin-top: 38px;
  padding: 28px;
  border: 1px solid rgba(105, 79, 96, 0.09);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 50px rgba(93, 60, 80, 0.07);
}

.sound-section[hidden],
.sound-card[hidden] {
  display: none;
}

.sound-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.sound-section-heading h2 {
  margin: 4px 0 0;
  font-size: clamp(25px, 4vw, 34px);
}

.sound-section-label {
  margin: 0;
  color: #a0647d;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.sound-count {
  flex: 0 0 auto;
  color: #8b7e88;
  font-size: 14px;
  font-weight: 700;
}

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

.sound-card {
  position: relative;
  display: flex;
  min-height: 145px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(98, 71, 89, 0.09);
  border-radius: 23px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(83, 53, 72, 0.08);
  color: #493c48;
  font: inherit;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.sound-card:hover {
  transform: translateY(-5px);
  border-color: rgba(204, 108, 150, 0.34);
  box-shadow: 0 18px 38px rgba(83, 53, 72, 0.14);
}

.sound-card-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  background: #fff0f6;
  color: #be5a86;
  font-size: 19px;
  line-height: 1;
}

.sound-card-name {
  font-size: 17px;
  font-weight: 900;
}

.sound-card-meta {
  color: #968994;
  font-size: 12px;
  font-weight: 700;
}

.sound-card.is-playing {
  transform: translateY(-5px) scale(1.02);
  border-color: rgba(196, 86, 134, 0.56);
  background: linear-gradient(145deg, #fff7fa, #ffe9f2);
  box-shadow:
    0 0 0 5px rgba(205, 103, 148, 0.12),
    0 20px 44px rgba(129, 58, 89, 0.18);
}

.sound-card.is-playing .sound-card-icon {
  background: #c96791;
  color: #ffffff;
  animation: soundPulse 900ms ease-in-out infinite alternate;
}

@keyframes soundPulse {
  from {
    transform: scale(0.94);
  }

  to {
    transform: scale(1.08);
  }
}

.recent-sound-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.recent-sound-empty {
  margin: 0;
  color: #958a93;
}

.recent-sound-button {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid rgba(186, 89, 132, 0.15);
  border-radius: 999px;
  background: #fff3f8;
  color: #9e426b;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.recent-sound-button:hover {
  background: #fbdde9;
}

.sound-player-bar {
  position: fixed;
  right: 20px;
  bottom: 18px;
  left: 20px;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 2fr auto;
  align-items: center;
  gap: 24px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 14px 18px;
  border: 1px solid rgba(94, 67, 85, 0.13);
  border-radius: 22px;
  background: rgba(55, 44, 54, 0.94);
  box-shadow: 0 18px 50px rgba(47, 34, 43, 0.3);
  color: #ffffff;
  backdrop-filter: blur(18px);
}

.sound-player-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.sound-player-icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.11);
}

.sound-player-label {
  margin: 0 0 3px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 11px;
  font-weight: 800;
}

#currentSoundName {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sound-player-progress-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
}

.sound-player-progress {
  width: 100%;
  cursor: pointer;
  accent-color: #f194ba;
}

#soundTimeText {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  white-space: nowrap;
}

.sound-player-stop {
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  background: #ffffff;
  color: #463945;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

@media (max-width: 800px) {
  .soundboard-header {
    align-items: stretch;
    flex-direction: column;
    padding-top: 34px;
  }

  .soundboard-header-actions {
    align-items: stretch;
    justify-content: flex-start;
  }

  .sound-search {
    width: 100%;
  }

  .sound-search input {
    width: 100%;
    box-sizing: border-box;
  }

  .sound-player-bar {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .sound-player-progress-wrap {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 520px) {
  .soundboard-page {
    padding-bottom: 130px;
  }

  .soundboard-header,
  .soundboard-main {
    width: min(100% - 24px, 1180px);
  }

  .sound-action-button {
    flex: 1;
  }

  .recent-sounds-section,
  .sound-section {
    padding: 20px 16px;
    border-radius: 22px;
  }

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

  .sound-card {
    min-height: 125px;
    padding: 14px 8px;
    border-radius: 19px;
  }

  .sound-card-icon {
    width: 46px;
    height: 46px;
  }

  .sound-player-bar {
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: auto;
  }
}