/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--pink-strong), var(--pink));
  color: #fff;
  box-shadow: 0 14px 26px -16px rgba(255, 111, 168, 0.95);
}

.btn-primary:hover {
  box-shadow: 0 18px 30px -14px rgba(255, 111, 168, 0.95);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.82);
  border-color: var(--line);
  color: var(--pink-deep);
}

.btn-ghost:hover {
  background: #fff;
  border-color: rgba(255, 111, 168, 0.4);
}

.btn-text {
  padding-inline: 8px;
  background: transparent;
  color: var(--ink-soft);
  font-weight: 500;
}

.btn-danger {
  background: linear-gradient(135deg, #e8567f, #c62d5c);
  color: #fff;
}

.btn-block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1;
  color: var(--ink-soft);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}

.icon-btn:hover {
  background: #fff;
  color: var(--pink-deep);
  transform: translateY(-1px);
}

.icon-btn[aria-pressed="true"] {
  background: rgba(255, 170, 204, 0.28);
  border-color: rgba(255, 111, 168, 0.42);
  color: var(--pink-deep);
}

.play-btn {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink-strong), var(--pink));
  color: #fff;
  font-size: 17px;
  box-shadow: 0 16px 28px -15px rgba(255, 111, 168, 0.95);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.play-btn:hover {
  transform: scale(1.04);
}

.control-icon {
  display: block;
  width: 18px;
  height: 18px;
}

.play-btn .control-icon {
  width: 22px;
  height: 22px;
}

.icon-play,
.icon-pause {
  display: none;
}

[data-playing="false"] .icon-play,
[data-playing="true"] .icon-pause {
  display: block;
}

#repeatBtn {
  position: relative;
}

.repeat-one {
  position: absolute;
  top: 50%;
  left: 50%;
  display: none;
  place-items: center;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--pink-strong);
  color: #fff;
  font-family: var(--font-display);
  font-size: 8px;
  line-height: 1;
  transform: translate(2px, -2px);
}

#repeatBtn[data-repeat="one"] .repeat-one {
  display: grid;
}

/* ---------- 分段控件 ---------- */
.segmented {
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-sm);
}

.seg-btn {
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  color: var(--ink-soft);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.seg-btn:hover {
  color: var(--pink-deep);
}

.seg-btn.is-active {
  background: #fff;
  color: var(--pink-deep);
  font-weight: 700;
  box-shadow: 0 6px 14px -10px rgba(58, 43, 54, 0.55);
}

.segmented-sm .seg-btn {
  padding: 5px 11px;
  font-size: 11.5px;
}

.segmented-auth {
  display: flex;
  margin: 16px 0 20px;
}

.segmented-auth .seg-btn {
  flex: 1;
  padding: 9px;
  text-align: center;
}

/* ---------- 表单 ---------- */
.stack-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-soft);
}

.field > span {
  font-weight: 600;
  letter-spacing: 0.03em;
}

.field input,
.field textarea,
.field select,
.select,
.search-field input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  color: var(--ink);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field input:focus,
.field textarea:focus,
.field select:focus,
.select:focus,
.search-field input:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(255, 170, 204, 0.22);
}

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

.search-field input {
  min-width: 190px;
}

.illust-search {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 230px;
}

.illust-search input {
  min-width: 230px;
  padding-right: 36px;
}

.illust-search input::-webkit-search-cancel-button {
  display: none;
}

.illust-search-clear {
  position: absolute;
  right: 8px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(58, 43, 54, 0.08);
  color: var(--ink-mute);
  font-size: 15px;
  line-height: 1;
}

.illust-search-clear:hover {
  background: rgba(198, 45, 92, 0.12);
  color: #c62d5c;
}

.illust-search-clear[hidden] {
  display: none;
}

.select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  background-image:
    linear-gradient(45deg, transparent 50%, #b4416f 50%),
    linear-gradient(135deg, #b4416f 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}

.form-error {
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(198, 45, 92, 0.09);
  color: #c62d5c;
  font-size: 12px;
}

.form-error[hidden] {
  display: none;
}

.form-hint {
  font-size: 11px;
  color: var(--ink-mute);
}

.auth-link {
  align-self: flex-end;
  padding: 0;
  color: var(--pink-deep);
  font-size: 11.5px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-link:hover {
  color: var(--pink-strong);
}

.code-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.code-row input {
  flex: 1;
  min-width: 0;
}

.btn-code {
  flex-shrink: 0;
  padding-inline: 11px;
  font-size: 11.5px;
  white-space: nowrap;
}

@media (max-width: 520px) {
  .code-row {
    align-items: stretch;
    flex-direction: column;
  }

  .btn-code {
    width: 100%;
  }
}

/* ---------- 滑块 ---------- */
.range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  margin: 16px 0 0;
  border-radius: var(--radius-pill);
  background: linear-gradient(
    90deg,
    var(--pink) var(--progress, 0%),
    rgba(255, 170, 204, 0.22) var(--progress, 0%)
  );
  cursor: pointer;
}

.range:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid var(--pink-strong);
  background: #fff;
  box-shadow: 0 4px 10px -4px rgba(58, 43, 54, 0.5);
}

.range::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 3px solid var(--pink-strong);
  background: #fff;
}

.range-volume {
  width: 88px;
  margin-top: 0;
}

/* ---------- 头像 / 用户 ---------- */
.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--avatar, #ffaacc);
  color: #fff;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.45);
  flex-shrink: 0;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.avatar-sm {
  width: 27px;
  height: 27px;
  font-size: 10.5px;
}

.avatar-lg {
  width: 42px;
  height: 42px;
  font-size: 14px;
}

.online-user {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 3px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  color: var(--ink-soft);
}

.auth-slot {
  position: relative;
}

.login-btn {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: #fff;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--pink-deep);
  box-shadow: var(--shadow-sm);
}

.login-btn:hover {
  border-color: rgba(255, 111, 168, 0.45);
}

.user-menu-wrap {
  position: relative;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 190px;
  padding: 4px 12px 4px 4px;
  border-radius: var(--radius-pill);
  background: #fff;
  box-shadow: var(--shadow-sm);
  font-size: 12.5px;
  color: var(--ink);
}

.user-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 70;
  display: none;
  min-width: 178px;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid var(--line-soft);
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.user-menu.is-open {
  display: block;
}

.user-menu button {
  display: block;
  width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  text-align: left;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.user-menu button:hover {
  background: rgba(255, 170, 204, 0.16);
  color: var(--pink-deep);
}

.menu-note {
  margin-bottom: 4px;
  padding: 8px 12px 6px;
  border-bottom: 1px dashed var(--line);
  font-size: 10.5px;
  color: var(--ink-mute);
}

.dialog.notification-dialog {
  width: min(640px, calc(100vw - 28px));
}

.notification-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-height: min(62vh, 620px);
  overflow: auto;
  padding-right: 4px;
}

.notification-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.notification-section-title {
  color: var(--ink);
  font-size: 14px;
  letter-spacing: 0.02em;
}

.notification-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255, 224, 235, 0.9);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 248, 251, 0.94), rgba(255, 255, 255, 0.9));
  color: var(--ink-soft);
  text-align: left;
  font: inherit;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}

.notification-item:hover {
  border-color: rgba(255, 111, 168, 0.38);
  background: #fff;
  transform: translateY(-1px);
}

.notification-item-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.notification-item-head time {
  margin-left: auto;
  color: var(--ink-mute);
  font-size: 10px;
  white-space: nowrap;
}

.notification-status,
.notification-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 700;
}

.notification-status.is-approved {
  background: rgba(95, 190, 145, 0.16);
  color: #2f7a55;
}

.notification-status.is-pending {
  background: rgba(255, 193, 99, 0.2);
  color: #9a6416;
}

.notification-status.is-rejected {
  background: rgba(198, 45, 92, 0.1);
  color: #b4416f;
}

.notification-type.is-post {
  background: rgba(255, 170, 204, 0.22);
  color: var(--pink-deep);
}

.notification-type.is-work {
  background: rgba(126, 201, 188, 0.18);
  color: #2f756b;
}

.notification-title {
  overflow: hidden;
  color: var(--ink);
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-author {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-soft);
  font-size: 11.5px;
}

.notification-note {
  color: var(--ink-mute);
  font-size: 11.5px;
  line-height: 1.6;
}

.notification-body {
  display: block;
  overflow: hidden;
  max-height: 3.5em;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.notification-body .markdown-reaction {
  width: 22px;
  height: 22px;
  margin: 1px;
}

.notification-empty {
  padding: 26px 18px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--ink-mute);
  text-align: center;
}

.notification-empty strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-soft);
  font-size: 13px;
}

.notification-empty p,
.notification-loading {
  color: var(--ink-mute);
  font-size: 11.5px;
}

.notification-empty.is-error strong {
  color: #c62d5c;
}

.avatar.avatar-xs {
  width: 20px;
  height: 20px;
  font-size: 8px;
}

.dialog.profile-dialog {
  width: min(940px, calc(100vw - 28px));
}

.profile-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 8px 0 18px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 242, 247, 0.78);
}

.profile-avatar-slot .avatar {
  width: 64px;
  height: 64px;
  font-size: 20px;
}

.profile-summary-text {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.profile-summary-text strong {
  font-family: var(--font-display);
  font-size: 18px;
}

.profile-summary-text span,
.profile-summary-text small {
  overflow: hidden;
  color: var(--ink-mute);
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 3px;
}

.profile-badges[hidden] {
  display: none;
}

.profile-summary-text .profile-badges .tag {
  overflow: visible;
  padding: 2px 8px;
  color: #1f8f83;
  font-size: 10px;
  text-overflow: clip;
}

.profile-summary-text .profile-badges .tag.sponsor-tag {
  color: #a32e61;
}

.profile-summary-text .profile-badges .tag.owner-tag {
  color: #8a5200;
}

.profile-summary-text .profile-badges .tag.admin-tag {
  color: #24618f;
}

.profile-summary-text .profile-badges .tag.artist-tag {
  color: #6240a0;
}

.profile-avatar-upload {
  cursor: pointer;
}

.profile-settings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.profile-form {
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.66);
}

.profile-form h3 {
  font-size: 15px;
}

#profileBioForm textarea {
  resize: none;
}

@media (max-width: 780px) {
  .profile-settings {
    grid-template-columns: 1fr;
  }

  .profile-summary {
    flex-wrap: wrap;
  }
}

/* ---------- 标签 / 徽标 ---------- */
.tag,
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: rgba(51, 204, 187, 0.14);
  color: #1f8f83;
  font-size: 11px;
  white-space: nowrap;
}

.tag.sponsor-tag {
  background: rgba(255, 150, 190, 0.28);
  color: #a32e61;
}

.tag.owner-tag {
  background: rgba(255, 196, 87, 0.28);
  color: #8a5200;
}

.tag.admin-tag {
  background: rgba(120, 190, 255, 0.3);
  color: #24618f;
}

.tag.artist-tag {
  background: rgba(185, 160, 255, 0.3);
  color: #6240a0;
}

.tag-btn {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.7);
  font-size: 11.5px;
  color: var(--ink-soft);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.tag-btn:hover {
  color: var(--pink-deep);
}

.tag-btn.is-active {
  background: linear-gradient(135deg, rgba(255, 170, 204, 0.35), rgba(255, 204, 170, 0.3));
  border-color: rgba(255, 111, 168, 0.35);
  color: var(--pink-deep);
  font-weight: 600;
}

/* ---------- 卡面卡片 ---------- */
.card-tile {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.card-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-media {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #ffe3ee, #fff2f7 58%, #e8fbf6);
}

.card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.45s var(--ease), transform 0.7s var(--ease);
}

.card-media img.side-trained {
  opacity: 0;
}

.card-tile.show-trained .card-media img.side-untrained {
  opacity: 0;
}

.card-tile.show-trained .card-media img.side-trained {
  opacity: 1;
}

.card-tile:hover .card-media img {
  transform: scale(1.035);
}

.card-badge {
  position: absolute;
  top: 9px;
  left: 9px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.88);
  font-size: 10px;
  font-weight: 700;
  color: var(--pink-deep);
}

.card-version {
  position: absolute;
  right: 9px;
  bottom: 9px;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  background: rgba(58, 43, 54, 0.55);
  color: #fff;
  font-size: 10px;
}

.card-group-stars,
.card-dialog-stars {
  display: flex;
  align-items: center;
  gap: 2px;
}

.star-icon {
  width: auto;
  height: 17px;
  object-fit: contain;
}

.star-icon.birthday-star {
  height: 23px;
}

.card-group-stars {
  gap: 1px;
  filter: drop-shadow(0 2px 4px rgba(58, 43, 54, 0.16));
}

.card-group-stars .star-icon {
  height: 15px;
}

.card-dialog-stars {
  gap: 3px;
  padding: 2px 0;
}

.card-dialog-stars .star-icon {
  height: 21px;
}

.card-flip {
  position: absolute;
  top: 9px;
  right: 9px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.92);
  font-size: 10.5px;
  color: var(--pink-deep);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.card-tile:hover .card-flip,
.card-flip:focus-visible {
  opacity: 1;
  transform: none;
}

.card-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 13px;
}

.card-foot h3 {
  flex: 1;
  overflow: hidden;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-side-btn {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 170, 204, 0.16);
  color: var(--pink-strong);
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.card-side-btn:hover {
  transform: scale(1.08);
}

.card-side-btn[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--pink-strong), var(--pink));
  color: #fff;
}

.card-tile.is-placeholder {
  pointer-events: none;
  opacity: 0.85;
}

.card-placeholder-text {
  position: absolute;
  inset: auto 0 12px;
  padding: 0 12px;
  font-size: 10.5px;
  color: var(--ink-mute);
  text-align: center;
}

/* ---------- 翻转小知识 ---------- */
.flip-card {
  height: 214px;
  padding: 0;
  border: 0;
  background: none;
  perspective: 1000px;
  text-align: left;
}

.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s var(--ease);
}

.flip-card.is-flipped .flip-inner {
  transform: rotateY(180deg);
}

.flip-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  background: linear-gradient(160deg, #fff 25%, var(--pink-mist));
  box-shadow: var(--shadow-md);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.flip-back {
  transform: rotateY(180deg);
  background: linear-gradient(160deg, #fff 20%, #eefbf8);
}

.flip-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 170, 204, 0.45), rgba(255, 204, 170, 0.35));
  font-size: 18px;
}

.flip-front h3 {
  font-size: 15px;
  line-height: 1.5;
}

.flip-front small {
  margin-top: auto;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
}

.flip-back p {
  overflow: auto;
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.flip-back .flip-tag {
  margin-top: auto;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--teal);
}

/* ---------- 播放列表 ---------- */
.track {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 12px;
  text-align: left;
  font-size: 12.5px;
  color: var(--ink-soft);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.track:hover {
  background: rgba(255, 170, 204, 0.13);
}

.track.is-active {
  background: rgba(255, 170, 204, 0.2);
  color: var(--pink-deep);
  font-weight: 600;
}

.track-index {
  width: 18px;
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--ink-mute);
  text-align: center;
  flex-shrink: 0;
}

.track-cover {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: cover;
  flex-shrink: 0;
  background: linear-gradient(135deg, #ffe3ee, #e8fbf6);
}

.track.is-active .track-index {
  color: var(--pink-strong);
}

.track-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  gap: 1px;
}

.track-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-artist {
  overflow: hidden;
  color: var(--ink-mute);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-eq {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.track-eq span {
  width: 2px;
  background: var(--pink-strong);
  border-radius: 2px;
  animation: eq-bounce 1s ease-in-out infinite;
}

.track-eq span:nth-child(2) {
  animation-delay: -0.35s;
}

.track-eq span:nth-child(3) {
  animation-delay: -0.7s;
}

@keyframes eq-bounce {
  0%,
  100% {
    height: 4px;
  }
  50% {
    height: 12px;
  }
}

/* ---------- 插画作品 ---------- */
.work-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.work-media {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  background: linear-gradient(135deg, #ffe3ee, #e8fbf6);
}

.work-media img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.6s var(--ease);
}

.work-card:hover .work-media img {
  transform: scale(1.035);
}

.work-quick-actions {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
}

.work-like,
.work-share {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  color: var(--pink-deep);
  box-shadow: var(--shadow-sm);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.work-like:hover,
.work-share:hover {
  transform: translateY(-1px);
}

.work-like[aria-pressed="true"] {
  background: var(--pink-strong);
  color: #fff;
}

.work-body {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 13px;
}

.work-body h3 {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-author {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  color: var(--ink-mute);
  white-space: nowrap;
}

.work-delete {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(58, 43, 54, 0.06);
  color: var(--ink-mute);
  font-size: 12px;
  flex-shrink: 0;
}

.work-delete:hover {
  background: rgba(198, 45, 92, 0.12);
  color: #c62d5c;
}

.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  color: var(--ink-mute);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.like-btn:hover {
  background: #fff;
  color: var(--pink-deep);
}

.like-btn[aria-pressed="true"] {
  background: rgba(255, 170, 204, 0.24);
  border-color: rgba(255, 111, 168, 0.32);
  color: #d63a70;
}

/* ---------- 审核状态 / 公告 ---------- */
.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.7;
  white-space: nowrap;
}

.status-pending {
  background: rgba(255, 204, 170, 0.42);
  color: #9a5a1a;
}

.status-rejected {
  background: rgba(198, 45, 92, 0.12);
  color: #c62d5c;
}

.status-approved {
  background: rgba(136, 221, 68, 0.25);
  color: #4f8f1e;
}

.status-official {
  background: linear-gradient(135deg, #ffd36a, #ff9f43);
  color: #5b3200;
}

.status-reprint {
  background: rgba(153, 204, 255, 0.32);
  color: #356a9e;
}

.work-source {
  font-size: 11px;
  color: var(--pink-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-all;
}

.work-media .status-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
}

.work-detail-author .status-badge {
  margin-left: 2px;
}

.status-notice {
  margin: 4px 0 10px;
  padding: 10px 13px;
  border: 1px solid rgba(255, 204, 170, 0.45);
  border-radius: 12px;
  background: rgba(255, 204, 170, 0.22);
  color: #8a5a20;
  font-size: 12px;
  line-height: 1.7;
}

.section-news {
  background: radial-gradient(760px 280px at 12% 0%, rgba(255, 170, 204, 0.2), transparent 70%);
}

.sponsor-section {
  padding-top: 18px;
}

.sponsor-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  min-height: 96px;
  padding: 18px 20px;
  border: 1px dashed var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.56);
}

.sponsor-empty {
  color: var(--ink-mute);
  font-size: 12.5px;
}

.sponsor-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.82);
  color: var(--pink-deep);
  font-size: 12px;
  font-weight: 700;
}

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

.announcement-list .announcement-empty-card {
  min-height: 190px;
  padding: 38px 24px;
  border: 1px dashed rgba(180, 65, 111, 0.34);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.52);
}

.announcement-list .announcement-empty-card .empty-icon-img {
  margin-bottom: 2px;
}

.announcement {
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-sm);
}

.announcement.is-pinned {
  border-color: rgba(255, 111, 168, 0.38);
  background: linear-gradient(135deg, rgba(255, 227, 238, 0.86), rgba(255, 255, 255, 0.92));
}

.announcement-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.announcement-head h3 {
  font-size: 16px;
  line-height: 1.5;
}

.announcement-pin {
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  background: rgba(255, 170, 204, 0.26);
  color: #a33b66;
  font-size: 10px;
  font-weight: 700;
}

.announcement-body {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.85;
  white-space: pre-wrap;
  word-break: break-word;
}

.announcement-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  color: var(--ink-mute);
  font-size: 11px;
}

/* ---------- 聊天室 ---------- */
.section-chat {
  background: radial-gradient(820px 360px at 88% 0%, rgba(153, 238, 221, 0.2), transparent 70%);
}

.chat-online {
  width: min(320px, 100%);
  padding: 14px 18px;
  border-radius: 20px;
}

.chat-online-head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 12px;
}

.chat-online-head strong {
  color: var(--teal);
  font-family: var(--font-display);
}

.chat-online .online-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.online-avatar {
  display: inline-flex;
  flex-shrink: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.88);
  cursor: help;
}

.online-avatar .avatar {
  box-shadow: none;
}

.online-avatar-placeholder {
  display: inline-grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  color: var(--ink-mute);
  font-size: 11px;
  line-height: 1;
  flex-shrink: 0;
}

.chat-online .online-empty {
  margin-top: 6px;
  margin-bottom: 0;
}

.chat-shell {
  padding: 0;
  overflow: hidden;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 320px;
  max-height: min(58vh, 620px);
  padding: 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  background:
    radial-gradient(520px 220px at 10% 0%, rgba(255, 170, 204, 0.12), transparent 70%),
    rgba(255, 255, 255, 0.45);
}

#chatMessages:empty {
  display: none;
}

.chat-message {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  max-width: 100%;
}

.chat-avatar-wrap {
  padding-top: 17px;
  flex-shrink: 0;
}

.chat-bubble-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: fit-content;
  max-width: min(76%, 620px);
  min-width: 0;
}

.chat-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 17px;
  color: var(--ink-mute);
  font-size: 10.5px;
}

.chat-meta strong {
  color: var(--ink-soft);
  font-size: 11.5px;
}

.chat-meta time {
  font-size: 10px;
}

.chat-delete {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: var(--ink-mute);
  font-size: 13px;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.2s var(--ease), background 0.2s var(--ease);
}

.chat-message:hover .chat-delete,
.chat-delete:focus-visible {
  opacity: 1;
}

.chat-delete:hover {
  background: rgba(198, 45, 92, 0.1);
  color: #c62d5c;
}

@media (hover: none) {
  .chat-delete {
    opacity: 1;
  }
}

.chat-bubble {
  width: fit-content;
  max-width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 4px 16px 16px 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
}

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

.chat-message.is-mine .chat-bubble-wrap {
  align-items: flex-end;
}

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

.chat-message.is-mine .chat-bubble {
  align-self: flex-end;
  border-radius: 16px 4px 16px 16px;
  background: linear-gradient(135deg, rgba(255, 170, 204, 0.42), rgba(255, 204, 170, 0.3));
}

.chat-bubble.is-room-card,
.chat-message.is-mine .chat-bubble.is-room-card {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.chat-bubble.is-room-card .chat-room-card {
  margin: 0;
}

.chat-bubble.is-reaction-only,
.chat-message.is-mine .chat-bubble.is-reaction-only {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  line-height: 1;
}

.chat-bubble.is-reaction-only .chat-reaction {
  width: 56px;
  height: 56px;
  margin: 0 3px 0 0;
}

.chat-bubble.is-reaction-only .chat-text:empty {
  display: none;
}

.chat-login-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 15px 22px;
  border-top: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-mute);
  font-size: 12px;
}

.chat-login-hint[hidden],
.chat-form[hidden] {
  display: none;
}

.chat-form {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 12px 16px 14px;
  border-top: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.82);
}

.chat-input-wrap {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 7px 11px 4px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.96);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.chat-input-wrap:focus-within {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(255, 170, 204, 0.2);
}

.chat-input-wrap textarea {
  width: 100%;
  min-height: 28px;
  max-height: 120px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.65;
  resize: none;
  outline: none;
}

.chat-count {
  align-self: flex-end;
  color: var(--ink-mute);
  font-size: 9.5px;
  line-height: 1.4;
}

.chat-send {
  flex-shrink: 0;
  padding: 11px 22px;
}

.chat-shell > .empty-state {
  margin: 18px;
}

@media (max-width: 760px) {
  .chat-online {
    width: 100%;
  }

  .chat-messages {
    max-height: 56vh;
    padding: 18px 16px;
  }

  .chat-bubble-wrap {
    max-width: 84%;
  }

  .chat-form {
    padding: 10px 12px 12px;
  }
}

@media (max-width: 480px) {
  .chat-form {
    flex-direction: column;
    align-items: stretch;
  }

  .chat-send {
    width: 100%;
  }

  .chat-bubble-wrap {
    max-width: 88%;
  }
}

/* ---------- 空状态 / 骨架 ---------- */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 58px 24px;
  border: 1px dashed rgba(180, 65, 111, 0.3);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.55);
  text-align: center;
  color: var(--ink-soft);
}

.empty-state[hidden] {
  display: none;
}

.empty-icon {
  font-size: 34px;
  line-height: 1;
  color: var(--pink-strong);
}

.empty-icon-img {
  width: 48px;
  height: 48px;
  margin: 0 auto 10px;
  object-fit: contain;
}

.empty-state h3 {
  font-size: 18px;
}

.empty-state p {
  max-width: 52ch;
  font-size: 12.5px;
}

.empty-state .btn {
  margin-top: 10px;
}

.empty-compact {
  padding: 26px 16px;
  border: 0;
  background: transparent;
}

.empty-compact p {
  font-size: 12px;
}

.skeleton {
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(100deg, rgba(255, 227, 238, 0.65) 20%, #fff 45%, rgba(255, 227, 238, 0.65) 70%);
  background-size: 220% 100%;
  animation: skeleton-slide 1.4s linear infinite;
}

.skeleton-card {
  aspect-ratio: 16 / 13;
}

@keyframes skeleton-slide {
  to {
    background-position: -120% 0;
  }
}

/* ---------- 弹窗 ---------- */
.dialog {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 0;
  border: 0;
  border-radius: 26px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 40px 90px -40px rgba(58, 43, 54, 0.55);
  overflow: hidden;
}

.dialog::backdrop {
  background: rgba(58, 43, 54, 0.36);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.dialog[open] {
  animation: dialog-in 0.28s var(--ease);
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.dialog-wide {
  width: min(920px, calc(100vw - 32px));
}

.dialog-sm {
  width: min(420px, calc(100vw - 32px));
}

.dialog-body {
  max-height: calc(100vh - 48px);
  padding: 26px;
  overflow: auto;
}

.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.dialog-head h2 {
  font-size: 22px;
  line-height: 1.4;
}

.dialog-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 170, 204, 0.16);
  color: var(--pink-deep);
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

.dialog-close:hover {
  background: rgba(255, 170, 204, 0.3);
}

.dialog-lead {
  margin-bottom: 6px;
  font-size: 12.5px;
  color: var(--ink-mute);
}

.dialog-actions {
  justify-content: flex-end;
  margin-top: 20px;
}

.confirm-message {
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-soft);
  white-space: pre-line;
}

.auth-dialog {
  width: min(440px, calc(100vw - 32px));
}

/* ---------- 上传 ---------- */
.dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 178px;
  padding: 18px;
  border: 2px dashed rgba(255, 111, 168, 0.35);
  border-radius: 18px;
  background: rgba(255, 242, 247, 0.65);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.dropzone.is-drag {
  border-color: var(--pink-strong);
  background: rgba(255, 227, 238, 0.9);
}

.dropzone strong {
  color: var(--pink-deep);
}

.dropzone-hint {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--ink-soft);
}

.dropzone-hint small {
  font-size: 10.5px;
  color: var(--ink-mute);
}

.upload-preview {
  width: auto;
  max-height: 240px;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.upload-preview[hidden] {
  display: none;
}

.dropzone.has-image .dropzone-hint {
  display: none;
}

/* ---------- 作品详情 ---------- */
.work-detail {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 22px;
  align-items: start;
}

.work-detail-media {
  display: grid;
  place-items: center;
  overflow: hidden;
  max-height: 68vh;
  border-radius: 18px;
  background: rgba(255, 227, 238, 0.5);
}

.work-detail-media img {
  width: auto;
  max-width: 100%;
  max-height: 68vh;
  object-fit: contain;
}

.work-detail-info h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.work-detail-author {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 12px;
  color: var(--ink-mute);
}

.work-detail-desc {
  margin-bottom: 18px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink-soft);
  white-space: pre-wrap;
  word-break: break-word;
}

.work-detail-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- 作品评论 ---------- */
.work-comments-mount {
  grid-column: 1 / -1;
}

.work-comments {
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}

.work-comments-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.work-comments-head h4 {
  font-size: 16px;
}

.work-comments-count {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 22px;
  margin-left: 5px;
  padding: 0 7px;
  border-radius: var(--radius-pill);
  background: rgba(255, 170, 204, 0.2);
  color: var(--pink-deep);
  font-family: var(--font-body);
  font-size: 11px;
}

.work-comment-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.work-comment-input {
  width: 100%;
  min-height: 78px;
  resize: vertical;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink);
}

.work-comment-input:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(255, 170, 204, 0.22);
}

.work-comment-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.work-comment-submit-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.work-comment-counter {
  color: var(--ink-mute);
  font-size: 11px;
}

.work-comment-submit {
  flex-shrink: 0;
}

.work-comment-login-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px 13px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--ink-soft);
  font-size: 12px;
}

.work-comment-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 310px;
  overflow: auto;
  padding-right: 4px;
}

.work-comment {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.58);
}

.work-comment-main {
  min-width: 0;
  flex: 1;
}

.work-comment-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.work-comment-author {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-soft);
}

.work-comment-time {
  color: var(--ink-mute);
  font-size: 10.5px;
}

.work-comment-delete {
  margin-left: auto;
  color: var(--ink-mute);
  font-size: 10.5px;
}

.work-comment-delete:hover {
  color: #c62d5c;
}

.work-comment-body {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.work-comment-state {
  margin: 4px 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.52);
  color: var(--ink-mute);
  font-size: 12px;
  text-align: center;
}

.work-comment-state.is-error {
  color: #c62d5c;
}

/* ---------- 卡面详情 ---------- */
.card-detail {
  display: grid;
  grid-template-columns: 1.45fr 0.55fr;
  gap: 20px;
  align-items: start;
}

.card-detail-media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 220px;
  overflow: hidden;
  border-radius: 18px;
  background: #ffe3ee;
}

.card-detail-media img {
  width: 100%;
  height: auto;
  max-height: 68vh;
  object-fit: contain;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-sm);
  font-size: 22px;
  line-height: 1;
  color: var(--pink-deep);
  transform: translateY(-50%);
}

.gallery-nav:hover {
  background: #fff;
}

.gallery-nav.prev {
  left: 10px;
}

.gallery-nav.next {
  right: 10px;
}

.card-detail-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.card-detail-info h3 {
  font-size: 18px;
}

#cardDialogSides {
  flex-wrap: wrap;
}

.card-facts {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 8px;
  margin: 2px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}

.card-fact-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  font-size: 11.5px;
  line-height: 1.65;
}

.card-fact-row dt {
  color: var(--ink-mute);
}

.card-fact-row dd {
  min-width: 0;
  margin: 0;
  color: var(--ink-soft);
  word-break: break-word;
}

.card-fact-attr {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.card-attr-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.card-event-link {
  color: var(--pink-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.card-event-link:hover {
  color: var(--pink-strong);
}

.card-fact-skill dt small {
  font-size: 10px;
  color: var(--ink-mute);
}

.card-skill-name {
  display: block;
  margin-bottom: 2px;
  color: var(--ink-soft);
}

.card-skill-desc {
  display: block;
  color: var(--ink-mute);
}

.card-detail-hint {
  font-size: 10.5px;
  color: var(--ink-mute);
}

.card-sekai-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

/* ---------- Toast ---------- */
.toast-stack {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 130;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: min(92vw, 430px);
  transform: translateX(-50%);
  pointer-events: none;
}

.toast-stack[popover] {
  top: auto;
  right: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  overflow: visible;
}

.toast {
  max-width: 100%;
  padding: 11px 18px;
  border-radius: var(--radius-pill);
  background: rgba(58, 43, 54, 0.93);
  color: #fff;
  font-size: 12.5px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: toast-in 0.3s var(--ease);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.toast[data-type="error"] {
  background: #c62d5c;
}

.toast[data-type="success"] {
  background: #1f9d8f;
}

.toast.is-leaving {
  opacity: 0;
  transform: translateY(8px);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 迷你播放器 ---------- */
.mini-player {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 95;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(390px, calc(100vw - 36px));
  padding: 10px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.mini-player[hidden] {
  display: none;
}

.mini-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 96;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink-strong), var(--pink));
  color: #fff;
  box-shadow: 0 14px 28px -12px rgba(255, 111, 168, 0.95);
}

.mini-toggle[hidden] {
  display: none;
}

.mini-toggle svg {
  width: 100%;
  height: 100%;
}

@media (max-width: 720px) {
  .mini-player {
    width: min(360px, calc(100vw - 36px));
  }
}

.mini-cover {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--pink), var(--peach));
  background-position: center;
  background-size: cover;
  flex-shrink: 0;
  cursor: pointer;
}

.mini-cover:focus-visible {
  outline: 2px solid var(--pink-deep);
  outline-offset: 2px;
}

.mini-info {
  flex: 1;
  min-width: 0;
}

.mini-info strong {
  display: block;
  overflow: hidden;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-track {
  height: 3px;
  margin-top: 6px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(255, 170, 204, 0.25);
}

.mini-track span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--pink-strong);
  transition: width 0.2s linear;
}

.mini-btn {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
}

/* ---------- 应援特效 ---------- */
.support-btn strong {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 22px;
  margin-left: 7px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.32);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
}

.support-btn[disabled] {
  opacity: 0.72;
}

.support-effect {
  position: fixed;
  inset: 0;
  z-index: 220;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.82), rgba(255, 227, 238, 0.38) 42%, transparent 72%),
    linear-gradient(140deg, rgba(255, 170, 204, 0.28), rgba(153, 238, 221, 0.22));
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.support-effect.is-active {
  opacity: 1;
}

.support-particle {
  position: absolute;
  left: var(--x);
  bottom: -8%;
  color: var(--color);
  font-family: var(--font-display);
  font-size: var(--size);
  line-height: 1;
  opacity: 0;
  text-shadow: 0 4px 14px rgba(180, 65, 111, 0.3);
  animation: support-rise var(--duration) var(--delay) ease-out forwards;
}

.support-effect-banner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--pink-deep);
  text-align: center;
  animation: support-pop 0.55s var(--ease) both;
}

.support-effect-banner strong {
  font-family: var(--font-display);
  font-size: clamp(34px, 7vw, 72px);
  letter-spacing: 0.06em;
  line-height: 1.15;
  text-shadow: 0 10px 30px rgba(255, 111, 168, 0.45);
}

.support-effect-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.34em;
}

.support-effect-count {
  margin-top: 8px;
  padding: 4px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  box-shadow: var(--shadow-sm);
}

@keyframes support-rise {
  0% {
    opacity: 0;
    transform: translate3d(0, 48px, 0) scale(0.45) rotate(-12deg);
  }
  16% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--drift), -108vh, 0) scale(1.18) rotate(18deg);
  }
}

@keyframes support-pop {
  from {
    opacity: 0;
    transform: scale(0.72);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 官方漫画 ---------- */
.comic-list {
  display: flex;
  flex-direction: column;
  gap: 38px;
}

.comic-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comic-group-head h2 {
  font-size: 20px;
}

.comic-group-head p {
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--ink-mute);
}

.comic-pages {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.comic-page {
  width: min(100%, 880px);
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.comic-page img {
  width: 100%;
  height: auto;
}

.comic-page figcaption {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  font-size: 11.5px;
  color: var(--ink-mute);
}

.comic-page figcaption span {
  font-family: var(--font-display);
  color: var(--pink-deep);
}

.comic-page figcaption strong {
  overflow: hidden;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comic-pdf {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 28px;
  background: linear-gradient(135deg, rgba(255, 227, 238, 0.7), rgba(232, 251, 246, 0.8));
  font-size: 15px;
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .support-particle {
    animation-duration: 0.9s;
  }

  .support-effect-banner {
    animation: none;
  }
}

/* ---------- 活动列表 / 活动详情 ---------- */
.event-featured-mount {
  max-width: 980px;
  margin: 0 auto 26px;
}

.event-featured {
  padding: 16px;
  border: 1px solid rgba(255, 170, 204, 0.4);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 242, 247, 0.9), rgba(255, 255, 255, 0.82)),
    rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-md);
}

.event-featured-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.event-featured-head h3 {
  font-size: 17px;
}

.event-featured-eyebrow {
  color: var(--pink-deep);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.event-featured-item .event-card {
  width: 100%;
  border-color: rgba(255, 111, 168, 0.35);
  box-shadow: var(--shadow-sm);
}

.event-progress {
  margin-top: 12px;
  padding: 11px 13px;
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.8);
}

.event-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
  color: var(--ink-soft);
  font-size: 11px;
}

.event-progress-head span:last-child {
  color: var(--pink-deep);
  font-variant-numeric: tabular-nums;
}

.event-progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: rgba(148, 128, 140, 0.14);
}

.event-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pink), var(--pink-strong));
  transition: width 0.3s var(--ease);
}

.event-progress.ended .event-progress-fill {
  background: rgba(148, 128, 140, 0.45);
}

.event-progress.ended .event-progress-head {
  color: var(--ink-mute);
}

.event-groups {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.event-group-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  max-width: 980px;
  margin: 0 auto 12px;
}

.event-group-title {
  font-size: 19px;
}

.event-group-note {
  margin-top: 2px;
  color: var(--ink-mute);
  font-size: 10.5px;
}

.event-group-count {
  color: var(--ink-mute);
  font-size: 10.5px;
  white-space: nowrap;
}

.event-card-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.event-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.7;
}

.event-badge.box {
  background: rgba(255, 170, 204, 0.24);
  color: var(--pink-deep);
}

.event-badge.wl {
  background: rgba(51, 204, 187, 0.2);
  color: #167f74;
}

.event-badge.mix {
  background: rgba(255, 204, 170, 0.35);
  color: #a15b2e;
}

.event-badge.upcoming {
  background: rgba(255, 196, 87, 0.27);
  color: #8a5200;
}

.event-badge.active {
  background: rgba(136, 221, 68, 0.26);
  color: #4f8f1e;
}

.event-more-card {
  max-width: 980px;
  margin: 26px auto 0;
  padding: 15px 18px;
  border: 1px dashed rgba(255, 111, 168, 0.35);
  border-radius: 16px;
  background: rgba(255, 242, 247, 0.62);
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.8;
  text-align: center;
}

.event-more-card a {
  color: var(--pink-deep);
  font-weight: 700;
  text-underline-offset: 3px;
}

.event-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 980px;
  margin: 0 auto;
  padding-left: 38px;
}

.event-timeline::before {
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 12px;
  border-left: 2px dashed rgba(255, 111, 168, 0.5);
  content: '';
}

.event-timeline-item {
  position: relative;
}

.event-timeline-dot {
  position: absolute;
  top: 50%;
  left: -31px;
  z-index: 1;
  width: 12px;
  height: 12px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--pink-strong);
  box-shadow: 0 0 0 4px rgba(255, 170, 204, 0.22);
  transform: translateY(-50%);
}

.event-timeline .event-card {
  width: 100%;
}

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

.event-card {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  background: #fff;
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.event-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.event-thumb {
  display: block;
  width: 26%;
  max-width: 220px;
  height: auto;
  margin-left: 10px;
  align-self: center;
  object-fit: contain;
  flex-shrink: 0;
  background: transparent;
}

.event-card-copy {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 12px 16px;
}

.event-card-kicker {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--pink-deep);
}

.event-card-copy strong {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.45;
}

.event-card-copy small {
  color: var(--ink-mute);
  font-size: 10.5px;
}

.event-card-song {
  margin-top: 5px;
  color: var(--pink-deep);
  font-size: 11px;
}

.event-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 22px;
  align-items: start;
}

.event-visual {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--pink-soft), var(--mint));
  box-shadow: var(--shadow-sm);
}

.event-bg {
  width: 100%;
  height: 100%;
  min-height: 310px;
  object-fit: cover;
}

.event-logo {
  position: absolute;
  left: 16px;
  bottom: 16px;
  max-width: 48%;
  max-height: 34%;
  object-fit: contain;
  filter: drop-shadow(0 5px 14px rgba(58, 43, 54, 0.3));
}

.event-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.event-info h3 {
  font-size: 24px;
  line-height: 1.35;
}

.event-original {
  color: var(--ink-mute);
  font-size: 11.5px;
  line-height: 1.7;
}

.event-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
  margin: 4px 0;
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(255, 242, 247, 0.8);
}

.event-meta-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 8px;
  font-size: 11.5px;
  line-height: 1.7;
}

.event-meta-row dt {
  color: var(--ink-mute);
}

.event-meta-row dd {
  margin: 0;
  color: var(--ink-soft);
  word-break: break-word;
}

.event-summary {
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.9;
}

.event-song-card {
  width: 100%;
  margin-top: 4px;
  padding: 11px;
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.7);
}

.event-song-kicker {
  display: block;
  margin-bottom: 7px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--pink-deep);
}

.event-song-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.event-play-btn {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.event-play-btn .control-icon {
  width: 18px;
  height: 18px;
}

.event-song-copy {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 1px;
}

.event-song-copy strong {
  overflow: hidden;
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-song-copy small {
  color: var(--ink-mute);
  font-size: 10px;
}

.event-sekai-link {
  margin-top: 2px;
}

@media (max-width: 900px) {
  .event-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .event-featured {
    padding: 12px;
  }

  .event-group-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .event-timeline {
    gap: 12px;
    padding-left: 28px;
  }

  .event-timeline::before {
    left: 7px;
  }

  .event-timeline-dot {
    left: -25px;
  }

  .event-thumb {
    width: 32%;
    max-width: 160px;
  }

  .event-detail {
    grid-template-columns: 1fr;
  }

  .event-visual,
  .event-bg {
    min-height: 220px;
  }

  .event-info h3 {
    font-size: 21px;
  }
}

/* ---------- 回到顶部 ---------- */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.9);
  color: var(--pink-deep);
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(12px) scale(0.92);
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), background 0.2s var(--ease);
}

.back-to-top.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.back-to-top:hover {
  background: #fff;
  transform: translateY(-2px);
}

.noscript {
  position: fixed;
  left: 50%;
  top: 20px;
  z-index: 200;
  transform: translateX(-50%);
  padding: 12px 20px;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  font-size: 13px;
}

/* ---------- 弹窗响应式 ---------- */
@media (max-width: 760px) {
  .dialog-body {
    padding: 20px;
  }

  .work-detail,
  .card-detail {
    grid-template-columns: 1fr;
  }

  .work-detail-media,
  .work-detail-media img {
    max-height: 50vh;
  }

  .card-detail-info {
    gap: 10px;
  }

  .toast-stack {
    bottom: 88px;
  }

  .back-to-top {
    right: 14px;
    bottom: 86px;
  }
}







/* ---------- 爱莉小屋 / Chibi ---------- */
.chibi-home-section {
  padding-top: 10px;
}

.chibi-room-head {
  align-items: flex-end;
}

.chibi-room-head .section-sub {
  max-width: 620px;
}

@media (max-width: 760px) {
  .chibi-room-head {
    align-items: flex-start;
    text-align: left;
  }

  .chibi-room-head > div {
    width: 100%;
  }
}

.chibi-claim-btn[hidden] {
  display: none;
}

.chibi-room-shell {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 26px;
  background: rgba(255, 252, 250, 0.84);
  box-shadow: var(--shadow-md);
}

.chibi-room {
  position: relative;
  height: 380px;
  overflow: hidden;
  isolation: isolate;
  background: #f8e8c7;
}

.chibi-room-wall {
  position: absolute;
  inset: 0 0 30%;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.78), transparent 25%),
    linear-gradient(180deg, #fdf0d6 0%, #f8e6c4 100%);
}

.chibi-room-wall::after {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(198, 144, 93, 0.07) 1px, transparent 1px);
  background-size: 100% 28px;
  content: '';
}

.chibi-room-floor {
  position: absolute;
  right: -10%;
  bottom: -18%;
  left: -10%;
  height: 48%;
  border-radius: 50%;
  background: repeating-linear-gradient(
    90deg,
    #d7aa75 0,
    #d7aa75 48px,
    #e0b881 48px,
    #e0b881 96px
  );
  box-shadow: inset 0 12px 30px rgba(126, 78, 39, 0.1);
}

.chibi-room-window {
  position: absolute;
  top: 13%;
  left: 6%;
  width: 210px;
  height: 132px;
  overflow: hidden;
  border: 8px solid #c98d5f;
  border-radius: 10px;
  background: linear-gradient(160deg, #b9e8f8, #e5f7fd 64%, #f6fbfd);
  box-shadow: 0 10px 22px rgba(116, 80, 49, 0.12);
  transition: background 0.8s var(--ease), filter 0.8s var(--ease);
}

.chibi-room.time-dawn .chibi-room-window {
  background: linear-gradient(160deg, #4e4b82 0%, #e58aa7 46%, #ffd5a4 100%);
}

.chibi-room.time-morning .chibi-room-window {
  background: linear-gradient(160deg, #84d2f4 0%, #c9eefb 56%, #f4fcff 100%);
}

.chibi-room.time-noon .chibi-room-window {
  background: linear-gradient(160deg, #65c8f2 0%, #b6e9fb 58%, #f8fdff 100%);
}

.chibi-room.time-afternoon .chibi-room-window {
  background: linear-gradient(160deg, #7bc6dd 0%, #c5e8e8 56%, #fff0d4 100%);
}

.chibi-room.time-dusk .chibi-room-window {
  background: linear-gradient(160deg, #4b3c72 0%, #c36e8d 48%, #f5a46e 100%);
}

.chibi-room.time-night .chibi-room-window {
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.9) 1px, transparent 1.7px),
    radial-gradient(circle at 68% 18%, rgba(255, 255, 255, 0.72) 1px, transparent 1.6px),
    radial-gradient(circle at 82% 62%, rgba(255, 255, 255, 0.58) 1px, transparent 1.5px),
    radial-gradient(circle at 34% 72%, rgba(255, 255, 255, 0.55) 1px, transparent 1.5px),
    linear-gradient(160deg, #050817, #11162b 72%, #1a2139);
}

.chibi-room-window::before,
.chibi-room-window::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  content: '';
}

.chibi-room.weather-sunny .chibi-room-window {
  filter: saturate(1.1) brightness(1.04);
}

.chibi-room.weather-sunny .chibi-room-window::before {
  position: absolute;
  top: 16%;
  right: 16%;
  inset: auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #fff8c9 0 28%, #ffd56d 70%, #ffbc45 100%);
  box-shadow: 0 0 0 7px rgba(255, 226, 139, 0.16), 0 0 28px rgba(255, 207, 94, 0.65);
}

.chibi-room.time-night.weather-sunny .chibi-room-window::before {
  opacity: 0;
}

.chibi-room.weather-cloudy .chibi-room-window {
  filter: saturate(0.78) brightness(0.96);
}

.chibi-room.weather-cloudy .chibi-room-window::before {
  background: rgba(70, 86, 102, 0.18);
}

.chibi-room.weather-cloudy .chibi-window-cloud {
  opacity: 0.95;
}

.chibi-room.weather-rain .chibi-room-window {
  filter: saturate(0.72) brightness(0.88);
}

.chibi-room.weather-rain .chibi-room-window::after {
  background-image: repeating-linear-gradient(
    105deg,
    transparent 0,
    transparent 10px,
    rgba(220, 245, 255, 0.5) 10px,
    rgba(220, 245, 255, 0.5) 11px,
    transparent 11px,
    transparent 22px
  );
  background-size: 34px 38px;
  opacity: 0.72;
  animation: chibi-rain-fall 0.7s linear infinite;
}

.chibi-room.weather-snow .chibi-room-window {
  filter: saturate(0.85) brightness(1.04);
}

.chibi-room.weather-snow .chibi-room-window::after {
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.95) 1.5px, transparent 2px);
  background-size: 18px 18px;
  opacity: 0.9;
  animation: chibi-snow-fall 5s linear infinite;
}

@keyframes chibi-rain-fall {
  from {
    background-position: 0 0;
  }
  to {
    background-position: -34px 38px;
  }
}

@keyframes chibi-snow-fall {
  from {
    background-position: 0 0;
  }
  to {
    background-position: -18px 18px;
  }
}

.chibi-room-wall-decor {
  position: absolute;
  inset: 0 0 30%;
  z-index: 1;
  pointer-events: none;
}

.chibi-room-calendar {
  position: absolute;
  top: 70%;
  left: 6%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  width: 108px;
  padding: 11px 12px 9px;
  border: 1px solid rgba(201, 141, 95, 0.42);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), transparent 34%),
    linear-gradient(180deg, #fffdf7, #fff5e5);
  box-shadow: 4px 6px 12px rgba(106, 66, 41, 0.2);
  color: var(--ink);
  pointer-events: none;
  text-align: left;
}

.chibi-room-calendar::before {
  position: absolute;
  top: -15px;
  left: 50%;
  width: 1px;
  height: 15px;
  background: rgba(126, 84, 50, 0.42);
  content: '';
}

.chibi-calendar-pin {
  position: absolute;
  top: -6px;
  left: 50%;
  width: 30px;
  height: 10px;
  border-radius: 2px;
  background: rgba(255, 232, 174, 0.92);
  box-shadow: 0 1px 2px rgba(106, 66, 41, 0.16);
  transform: translateX(-50%) rotate(2deg);
}

.chibi-calendar-label {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  color: var(--pink-deep);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1;
  text-align: left;
}

.chibi-calendar-date {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  font-family: var(--font-display);
  font-size: 12px;
  line-height: 1.35;
  text-align: left;
  white-space: nowrap;
}

.chibi-calendar-weekday {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  color: var(--ink-mute);
  font-size: 9px;
  line-height: 1;
  text-align: left;
}

.chibi-window-cloud {
  position: absolute;
  z-index: 1;
  width: 40px;
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  transition: opacity 0.8s var(--ease);
}

.chibi-room.time-night .chibi-window-cloud {
  opacity: 0;
}

.chibi-window-cloud.cloud-a {
  top: 30%;
  left: 18%;
}

.chibi-window-cloud.cloud-b {
  top: 55%;
  right: 16%;
  width: 52px;
}

.chibi-room-poster {
  position: absolute;
  top: 17%;
  right: 8%;
  display: grid;
  place-items: center;
  width: 108px;
  height: 82px;
  border: 5px solid #fff8ee;
  border-radius: 6px;
  background: linear-gradient(135deg, #ffd2e2, #ffe8ca);
  color: #c54c83;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transform: rotate(3deg);
  box-shadow: 0 8px 14px rgba(106, 66, 41, 0.12);
}

.chibi-room-rug {
  position: absolute;
  right: 20%;
  bottom: 6%;
  left: 20%;
  height: 24%;
  border-radius: 50%;
  background: rgba(244, 162, 184, 0.72);
  box-shadow: inset 0 0 0 8px rgba(255, 238, 244, 0.32);
}

.chibi-room-sofa {
  position: absolute;
  right: 5%;
  bottom: 23%;
  width: 190px;
  height: 92px;
  filter: drop-shadow(0 10px 9px rgba(105, 63, 49, 0.12));
}

.chibi-sofa-back,
.chibi-sofa-seat,
.chibi-sofa-cushion {
  position: absolute;
  display: block;
  border-radius: 18px;
}

.chibi-sofa-back {
  inset: 12px 4px 34px;
  background: #e99bb1;
}

.chibi-sofa-seat {
  right: 0;
  bottom: 8px;
  left: 0;
  height: 42px;
  border-radius: 15px;
  background: #f2b3c3;
}

.chibi-sofa-cushion {
  top: 22px;
  width: 38px;
  height: 30px;
  border-radius: 10px;
  background: #fff1c9;
}

.chibi-sofa-cushion.cushion-a {
  left: 28px;
  transform: rotate(-8deg);
}

.chibi-sofa-cushion.cushion-b {
  right: 28px;
  background: #ffd4bd;
  transform: rotate(8deg);
}

.chibi-stage {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.chibi-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.chibi-labels,
.chibi-bubbles {
  position: absolute;
  inset: 0;
  z-index: 4;
  overflow: hidden;
  pointer-events: none;
}

.chibi-pet-label {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transform: translateX(-50%);
  white-space: nowrap;
}

.chibi-shadow {
  display: block;
  width: 54px;
  height: 11px;
  border-radius: 50%;
  background: rgba(72, 51, 58, 0.24);
  filter: blur(2px);
}

.chibi-name {
  display: block;
  max-width: 120px;
  overflow: hidden;
  padding: 2px 8px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #714b5e;
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  backdrop-filter: blur(5px);
  pointer-events: auto;
  cursor: help;
}

.chibi-bubble {
  position: absolute;
  z-index: 5;
  max-width: 180px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 7px 16px rgba(72, 51, 58, 0.14);
  color: #694457;
  font-size: 11.5px;
  line-height: 1.5;
}

.chibi-sleep-zzz {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: flex-end;
  gap: 1px;
  color: #5ad8ff;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
  text-shadow:
    0 2px 8px rgba(7, 25, 70, 0.75),
    0 0 14px rgba(70, 206, 255, 0.75);
  transform: translate(-50%, -100%);
}

.chibi-sleep-zzz[hidden] {
  display: none;
}

.chibi-sleep-zzz span {
  display: block;
  animation: chibi-sleep-z 2.4s ease-in-out infinite;
}

.chibi-sleep-zzz span:nth-child(1) {
  font-size: 17px;
}

.chibi-sleep-zzz span:nth-child(2) {
  font-size: 13px;
}

.chibi-sleep-zzz span:nth-child(3) {
  font-size: 11px;
}

@keyframes chibi-sleep-z {
  0%,
  100% {
    opacity: 0.25;
    transform: translateY(3px) scale(0.86);
  }
  42% {
    opacity: 1;
    transform: translateY(-5px) scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .chibi-sleep-zzz span {
    animation: none;
    opacity: 0.9;
  }
}
.chibi-room-empty {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: min(340px, calc(100% - 32px));
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  background: rgba(255, 250, 252, 0.88);
  box-shadow: var(--shadow-sm);
  color: var(--ink-mute);
  text-align: center;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(8px);
}

.chibi-room-empty[hidden] {
  display: none;
}

.chibi-room-empty strong {
  color: var(--ink);
  font-size: 13px;
}

.chibi-room-empty span:last-child {
  font-size: 11.5px;
}

.chibi-empty-icon {
  color: var(--pink-strong);
  font-size: 28px;
  line-height: 1;
}

.chibi-summon-btn {
  position: absolute;
  bottom: 12%;
  left: 50%;
  z-index: 7;
  transform: translateX(-50%);
}

.chibi-room-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px 16px;
  border-top: 1px dashed var(--line-soft);
  background: rgba(255, 255, 255, 0.65);
}

.chibi-room-note {
  color: var(--ink-mute);
  font-size: 11.5px;
}

.chibi-room-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  flex-shrink: 0;
}

.chibi-dialog {
  width: min(760px, calc(100% - 30px));
}

.chibi-outfit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.chibi-outfit-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  text-align: center;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.chibi-outfit-card:hover {
  border-color: rgba(255, 111, 168, 0.55);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.chibi-outfit-card.is-current {
  border-color: var(--pink-strong);
  background: rgba(255, 236, 244, 0.9);
}

.chibi-outfit-card:disabled {
  cursor: wait;
  opacity: 0.6;
}

.chibi-outfit-card img {
  width: 100%;
  height: 150px;
  object-fit: contain;
}

.chibi-outfit-card strong {
  font-size: 13px;
}

.chibi-outfit-card small {
  color: var(--ink-mute);
  font-size: 10.5px;
}

.chibi-outfit-card.no-thumb::before {
  display: grid;
  place-items: center;
  width: 100%;
  height: 150px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--pink-soft), var(--mint));
  color: var(--pink-deep);
  font-size: 34px;
  content: '✿';
}

.chibi-dialog-note {
  color: var(--ink-mute);
  font-size: 11px;
}

.chibi-profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 20px;
  align-items: stretch;
}

.chibi-profile-room {
  min-height: 390px;
}

.chibi-profile-panel {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-sm);
}

.chibi-profile-panel[hidden],
.chibi-profile-panel > div[hidden] {
  display: none;
}

.chibi-profile-title {
  margin: 8px 0 5px;
  font-family: var(--font-display);
  font-size: 21px;
}

.chibi-profile-owner,
.chibi-profile-costume {
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.8;
}

.chibi-profile-owner strong,
.chibi-profile-costume strong {
  color: var(--pink-deep);
}

.chibi-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 14px;
}

.chibi-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 13px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 238, 245, 0.8), rgba(255, 255, 255, 0.72));
}

.chibi-stat span {
  color: var(--ink-mute);
  font-size: 10.5px;
}

.chibi-stat strong {
  color: var(--pink-deep);
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1;
}

.chibi-profile-facts {
  margin: 0 0 16px;
}

.chibi-profile-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line-soft);
  font-size: 11.5px;
}

.chibi-profile-facts dt {
  color: var(--ink-mute);
}

.chibi-profile-facts dd {
  margin: 0;
  color: var(--ink-soft);
  text-align: right;
}

.chibi-profile-panel .btn {
  width: 100%;
}

.chibi-profile-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
@media (max-width: 860px) {
  .chibi-profile-layout {
    grid-template-columns: 1fr;
  }

  .chibi-profile-room {
    min-height: 300px;
  }
}

@media (max-width: 640px) {
  .chibi-room {
    height: 300px;
  }

  .chibi-room-window {
    width: 145px;
    height: 95px;
  }

  .chibi-room-poster {
    right: 5%;
    width: 76px;
    height: 60px;
    font-size: 13px;
  }

  .chibi-room-sofa {
    right: 2%;
    width: 140px;
    height: 72px;
  }

  .chibi-room-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .chibi-room-actions {
    width: 100%;
  }

  .chibi-outfit-grid {
    grid-template-columns: 1fr;
  }

  .chibi-outfit-card {
    display: grid;
    grid-template-columns: 78px 1fr;
    grid-template-rows: auto auto;
    justify-items: start;
    text-align: left;
  }

  .chibi-outfit-card img,
  .chibi-outfit-card.no-thumb::before {
    grid-row: span 2;
    height: 78px;
  }

  .chibi-outfit-card small {
    grid-column: 2;
  }
}



.chibi-room-poster {
  overflow: hidden;
}

.chibi-room-poster img {
  width: 100%;
  height: 100%;
  padding: 4px;
  object-fit: contain;
  background: #fff;
}

/* ---------- 作者悬停资料卡 ---------- */
.profile-hover-card {
  position: fixed;
  z-index: 120;
  width: min(280px, calc(100vw - 24px));
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 18px 40px -18px rgba(61, 36, 48, 0.55);
  pointer-events: none;
  backdrop-filter: blur(12px);
}

.profile-hover-card[hidden] {
  display: none;
}

.profile-hover-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-hover-identity {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.profile-hover-name {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.profile-hover-name strong {
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-hover-identity small {
  color: var(--ink-mute);
  font-size: 11px;
}

.profile-hover-bio {
  display: -webkit-box;
  overflow: hidden;
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px dashed var(--line-soft);
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.profile-hover-bio.is-empty {
  color: var(--ink-mute);
}

.has-profile-hover {
  cursor: help;
}

/* ---------- 页脚社交图标 ---------- */
.footer-social-icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 111, 168, 0.16);
  color: var(--pink-deep);
  font-size: 10px;
  font-weight: 700;
}

/* ---------- 个人设置与子窗口 ---------- */
.profile-settings {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-action-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.66);
}

.profile-action-card h3 {
  font-size: 15px;
}

.profile-action-card p {
  flex: 1;
  color: var(--ink-mute);
  font-size: 11.5px;
  line-height: 1.7;
}

.profile-subdialog {
  width: min(520px, calc(100vw - 28px));
}

.profile-subdialog .profile-form {
  padding: 0;
  border: 0;
  background: transparent;
}

.profile-subdialog .form-hint strong {
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}



/* ---------- 聊天室表情包 ---------- */
.chat-input-wrap {
  position: relative;
}

.chat-reaction-btn {
  position: absolute;
  right: 64px;
  bottom: 9px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--pink-deep);
  line-height: 1;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.chat-reaction-icon {
  display: block;
  width: 19px;
  height: 19px;
}

.chat-reaction-btn:hover,
.chat-reaction-btn[aria-expanded="true"] {
  background: rgba(255, 170, 204, 0.2);
  transform: translateY(-1px);
}

.chat-tools-btn {
  position: absolute;
  right: 96px;
  bottom: 9px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--pink-deep);
  line-height: 1;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.chat-tools-icon {
  display: block;
  width: 18px;
  height: 18px;
  transition: transform 0.2s var(--ease);
}

.chat-tools-btn:hover,
.chat-tools-btn[aria-expanded="true"] {
  background: rgba(255, 170, 204, 0.2);
  transform: translateY(-1px);
}

.chat-tools-btn[aria-expanded="true"] .chat-tools-icon {
  transform: rotate(180deg);
}

.chat-tools-menu {
  position: absolute;
  right: 10px;
  bottom: 46px;
  z-index: 36;
  width: min(280px, calc(100vw - 44px));
  padding: 9px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-lg);
}

.chat-tools-menu[hidden] {
  display: none;
}

.chat-tools-action {
  display: flex;
  width: 100%;
  align-items: center;
  padding: 9px 10px;
  border-radius: 9px;
  color: var(--ink-soft);
  font-size: 12px;
  text-align: left;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.chat-tools-action:hover {
  background: rgba(255, 170, 204, 0.16);
  color: var(--pink-deep);
}

.chat-tools-separator {
  height: 1px;
  margin: 7px 3px;
  background: var(--line-soft);
}

.chat-tools-label {
  display: block;
  padding: 2px 10px 6px;
  color: var(--ink-mute);
  font-size: 10px;
}

.chat-filter-options {
  display: grid;
  gap: 4px;
}

.chat-filter-btn {
  padding: 8px 10px;
  border-radius: 9px;
  color: var(--ink-soft);
  font-size: 11.5px;
  text-align: left;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.chat-filter-btn:hover {
  background: rgba(255, 170, 204, 0.13);
}

.chat-filter-btn.is-active {
  background: rgba(255, 170, 204, 0.22);
  color: var(--pink-deep);
  font-weight: 700;
}

.chat-search-dialog {
  width: min(760px, calc(100vw - 32px));
}

.chat-search-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.chat-search-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.chat-search-status {
  min-height: 20px;
  margin-top: 14px;
  color: var(--ink-mute);
  font-size: 11.5px;
}

.chat-search-results {
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-height: 46vh;
  overflow: auto;
}

.chat-search-result {
  padding: 11px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(255, 250, 252, 0.9);
}

.chat-search-result-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--ink-mute);
  font-size: 10.5px;
}

.chat-search-result-head strong {
  color: var(--ink-soft);
  font-size: 12px;
}

.chat-search-result-head time {
  margin-left: auto;
}

.chat-search-result-body {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-search-result-body .chat-room-card {
  margin: 0;
}

@media (max-width: 480px) {
  .chat-search-grid {
    grid-template-columns: 1fr;
  }

  .chat-search-actions .btn {
    flex: 1;
  }
}

.chat-reaction-picker {
  position: absolute;
  right: 10px;
  bottom: 46px;
  z-index: 35;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
  width: min(310px, calc(100vw - 44px));
  gap: 6px;
  max-height: min(56vh, 400px);
  overflow: auto;
  overscroll-behavior: contain;
  touch-action: none;
  -webkit-overflow-scrolling: touch;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-lg);
}

.chat-reaction-picker[hidden] {
  display: none;
}

.chat-reaction-option {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.chat-reaction-option:hover {
  background: rgba(255, 170, 204, 0.18);
  transform: translateY(-1px);
}

.chat-reaction-option img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.chat-reaction {
  display: inline-block;
  width: 48px;
  max-width: 100%;
  height: 48px;
  margin: 3px 2px;
  object-fit: contain;
  vertical-align: middle;
}

.chat-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.chat-author {
  cursor: help;
}



/* ---------- 友情链接 ---------- */
.friend-links-grid,
.friend-extra-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.friend-extra-grid {
  grid-template-columns: 1fr;
  margin-top: 16px;
}

.friend-link-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.94);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

a.friend-link-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.friend-link-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 13px;
  object-fit: cover;
  background: #fff;
}

.friend-link-card h3 {
  margin-bottom: 6px;
  font-size: 15px;
}

.friend-link-card p {
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.75;
}

.friend-link-card span {
  display: inline-block;
  margin-top: 8px;
  color: var(--pink-deep);
  font-size: 11.5px;
  font-weight: 600;
}

.friend-group-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.friend-group-line strong {
  color: var(--ink);
  font-size: 12.5px;
}

.friend-group-line .btn {
  padding: 6px 11px;
  font-size: 11px;
}

.airi-emoji-section {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px dashed var(--line);
}

.airi-emoji-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.airi-emoji-head h3 {
  margin: 4px 0 5px;
  font-family: var(--font-display);
  font-size: 21px;
}

.airi-emoji-head p {
  color: var(--ink-mute);
  font-size: 11.5px;
}

.airi-emoji-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.airi-emoji-actions .btn {
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), background 0.22s var(--ease), border-color 0.22s var(--ease), opacity 0.25s var(--ease);
  will-change: transform;
}

.js #mainContent .airi-emoji-actions .btn:not(.is-cooling):hover {
  animation: airi-emoji-btn-pop 0.3s var(--ease);
  transform: translateY(-2px) scale(1.02);
}

.airi-emoji-actions .btn:active {
  transform: translateY(0) scale(0.97);
}

.airi-emoji-actions .btn.is-cooling {
  opacity: 0.58;
  cursor: not-allowed;
}

@keyframes airi-emoji-btn-pop {
  0% {
    transform: translateY(0) scale(1);
  }

  55% {
    transform: translateY(-3px) scale(1.04);
  }

  100% {
    transform: translateY(-2px) scale(1.02);
  }
}

.airi-emoji-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(122px, 1fr));
  gap: 12px;
}

.airi-emoji-loading {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--ink-mute);
  font-size: 12px;
  text-align: center;
}

.airi-emoji-card {
  display: flex;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.airi-emoji-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.airi-emoji-card.is-cooling,
a[download].is-cooling {
  cursor: not-allowed;
  opacity: 0.52;
  transform: none;
}

.airi-emoji-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 6px;
  background: rgba(255, 242, 247, 0.68);
}

.airi-emoji-thumb-placeholder {
  display: grid;
  width: 100%;
  aspect-ratio: 1 / 1;
  place-items: center;
  background: rgba(255, 242, 247, 0.68);
  color: var(--pink-deep);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}

.airi-emoji-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 7px 9px;
  color: var(--ink-soft);
  font-size: 11px;
}

.airi-emoji-name span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.airi-emoji-name small {
  flex-shrink: 0;
  color: var(--pink-deep);
  font-size: 9.5px;
}

.card-event-link.is-empty {
  color: var(--ink-mute);
  cursor: default;
  text-decoration: none;
  pointer-events: none;
}

@media (max-width: 900px) {
  .friend-links-grid {
    grid-template-columns: 1fr;
  }

  .friend-extra-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .profile-settings {
    grid-template-columns: 1fr;
  }

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

  .airi-emoji-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }

  .chat-reaction-picker {
    right: 0;
    width: min(260px, calc(100vw - 32px));
    grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
  }
}
/* ---------- 小知识卡片 ---------- */
.knowledge-section {
  padding-top: 8px;
}

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

.knowledge-card {
  min-height: 150px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.94);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-sm);
}

.knowledge-card.is-empty {
  min-height: 160px;
  border: 1px dashed var(--line);
  background: rgba(255, 255, 255, 0.35);
  box-shadow: none;
}

.knowledge-card h3 {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 17px;
}

.knowledge-card p {
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.8;
}

.knowledge-tag {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: rgba(255, 170, 204, 0.16);
  color: var(--pink-deep);
  font-size: 10.5px;
  font-weight: 700;
}

@media (max-width: 760px) {
  .knowledge-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- 聊天室房间车卡片 ---------- */
.chat-room-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: min(260px, 100%);
  margin: 4px 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 170, 204, 0.52);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 242, 247, 0.98), rgba(238, 252, 249, 0.94));
  box-shadow: 0 8px 18px -12px rgba(180, 65, 111, 0.42);
}

.chat-room-card-title {
  color: var(--pink-deep);
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.3;
}

.chat-room-card-car {
  width: fit-content;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  font-weight: 700;
}

.chat-room-card p {
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.65;
}

.chat-room-card p strong {
  color: var(--ink);
}

.chat-room-card time {
  color: var(--ink-mute);
  font-size: 10.5px;
}

@media (max-width: 760px) {
  .toolbar-right {
    width: 100%;
    justify-content: space-between;
  }

  .illust-search,
  .illust-search input {
    width: 100%;
    min-width: 0;
  }

  .chat-online {
    width: 100%;
  }

  .work-comment-login-hint {
    align-items: flex-start;
  }
}

/* ---------- 帖子 ---------- */
.section-posts {
  background: radial-gradient(820px 380px at 12% 0%, rgba(255, 170, 204, 0.16), transparent 70%);
}

.posts-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin: 18px 0;
}

.posts-toolbar .toolbar-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.post-composer {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-sm);
}

.post-composer-login {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(135deg, rgba(255, 242, 247, 0.9), rgba(255, 255, 255, 0.86));
}

.post-dialog .post-composer,
.post-dialog-composer {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.post-composer-login h3 {
  font-size: 17px;
}

.post-composer-login p {
  margin-top: 3px;
  color: var(--ink-mute);
  font-size: 12px;
}

.post-composer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.post-composer-head h3 {
  font-size: 18px;
}

.post-composer-head p {
  margin-top: 3px;
  color: var(--ink-mute);
  font-size: 11.5px;
}

.post-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.post-input {
  width: 100%;
  min-height: 124px;
  resize: vertical;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.8;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.post-title-input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
}

.post-title-input:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(255, 170, 204, 0.22);
}

.post-input:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(255, 170, 204, 0.22);
}

.post-composer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.post-composer-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.post-image-btn {
  cursor: pointer;
}

.post-image-btn.is-loading {
  opacity: 0.65;
  pointer-events: none;
}

.post-composer-submit {
  display: flex;
  align-items: center;
  gap: 12px;
}

.post-counter {
  color: var(--ink-mute);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.post-counter.is-near-limit {
  color: #b4416f;
}

.post-form-hint {
  color: var(--ink-mute);
  font-size: 10.5px;
}

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

.post-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.94);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.post-card.is-clickable {
  cursor: pointer;
}

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

.post-author {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 9px;
  cursor: help;
}

.post-author-text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 1px;
}

.post-author-text strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-author-text span {
  overflow: hidden;
  color: var(--ink-mute);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-author-fallback {
  color: var(--ink-mute);
  font-size: 12px;
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
  flex-shrink: 0;
  color: var(--ink-mute);
  font-size: 10.5px;
}

.post-badge {
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: rgba(255, 170, 204, 0.2);
  color: var(--pink-deep);
  font-size: 9.5px;
  font-weight: 700;
}

.post-body {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.post-body > :first-child {
  margin-top: 0;
}

.post-body > :last-child {
  margin-bottom: 0;
}

.post-body p {
  margin: 0 0 8px;
}

.post-body h1,
.post-body h2,
.post-body h3,
.post-body h4,
.post-body h5,
.post-body h6 {
  margin: 10px 0 6px;
  color: var(--ink);
}

.post-body blockquote {
  margin: 8px 0;
  padding: 4px 12px;
  border-left: 3px solid rgba(255, 111, 168, 0.45);
  color: var(--ink-mute);
}

.post-body ul,
.post-body ol {
  margin: 6px 0 8px;
  padding-left: 22px;
}

.post-body code {
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(255, 170, 204, 0.14);
  color: var(--pink-deep);
  font-size: 0.94em;
}

.post-body pre {
  overflow: auto;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(58, 43, 54, 0.06);
}

.post-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 9px 0;
  border-radius: 12px;
}

.post-body a {
  color: var(--pink-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px dashed var(--line-soft);
}

.post-title {
  margin: 14px 0 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.5;
}

.post-foot-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.post-stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 2px;
  color: var(--ink-mute);
  font-size: 11px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  cursor: default;
}

.post-stat-icon {
  display: block;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

.post-stat-value {
  color: inherit;
}

.post-delete-btn,
.post-share-btn {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink-soft);
  font-size: 11px;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.post-share-btn:hover {
  border-color: rgba(255, 111, 168, 0.4);
  background: var(--pink-mist);
  transform: translateY(-1px);
}

.post-delete-btn {
  color: #b4416f;
}

.post-delete-btn:hover {
  border-color: rgba(198, 45, 92, 0.35);
  background: rgba(198, 45, 92, 0.08);
}

.post-image-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  min-height: 90px;
  margin: 9px 0;
  padding: 12px 18px;
  border: 1px dashed rgba(180, 65, 111, 0.32);
  border-radius: 12px;
  background: rgba(255, 242, 247, 0.62);
  color: var(--ink-mute);
  font-size: 12px;
}

.post-image-placeholder.rejected {
  border-color: rgba(198, 45, 92, 0.3);
  background: rgba(198, 45, 92, 0.06);
  color: #a33b66;
}

.post-composer-tools .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 13px;
  font-size: 12px;
}

.post-comment-preview {
  margin-bottom: 14px;
  padding: 11px 13px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: rgba(255, 242, 247, 0.55);
}

.post-comment-preview strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 13px;
}

.post-comment-preview p {
  color: var(--ink-mute);
  font-size: 11.5px;
  line-height: 1.7;
}

.post-comment-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.post-comment-input {
  width: 100%;
  min-height: 76px;
  resize: vertical;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.7;
}

.post-comment-input:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(255, 170, 204, 0.22);
}

.post-comment-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.post-comment-counter {
  color: var(--ink-mute);
  font-size: 11px;
}

.post-comment-submit-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.post-comment-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 300px;
  overflow: auto;
  padding-right: 3px;
}

.post-comment {
  padding: 9px 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.62);
}

.post-comment-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.post-comment-author {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 11.5px;
}

.post-comment-head time {
  color: var(--ink-mute);
  font-size: 10px;
}

.post-comment-delete {
  margin-left: auto;
  color: var(--ink-mute);
  font-size: 10px;
}

.post-comment-delete:hover {
  color: #c62d5c;
}

.post-comment-body {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.post-comment-state {
  padding: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink-mute);
  font-size: 11.5px;
  text-align: center;
}

.post-comment-state.is-error {
  color: #c62d5c;
}

.post-foot-note {
  color: var(--ink-mute);
  font-size: 10px;
}

.post-detail {
  min-width: 0;
}

.post-detail-card {
  padding-bottom: 2px;
}

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

.post-detail-title {
  margin: 16px 0 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.5;
}

.post-detail-body {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.post-detail-body > :first-child {
  margin-top: 0;
}

.post-detail-body > :last-child {
  margin-bottom: 0;
}

.post-detail-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 10px 0;
  border-radius: 14px;
}

.post-detail-body p {
  margin: 0 0 9px;
}

.post-detail-body h1,
.post-detail-body h2,
.post-detail-body h3,
.post-detail-body h4,
.post-detail-body h5,
.post-detail-body h6 {
  margin: 14px 0 7px;
  color: var(--ink);
}

.post-detail-body blockquote {
  margin: 9px 0;
  padding: 4px 12px;
  border-left: 3px solid rgba(255, 111, 168, 0.45);
  color: var(--ink-mute);
}

.post-detail-body ul,
.post-detail-body ol {
  margin: 7px 0 9px;
  padding-left: 22px;
}

.post-detail-body pre {
  overflow: auto;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(58, 43, 54, 0.06);
}

.post-detail-body code {
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(255, 170, 204, 0.14);
  color: var(--pink-deep);
}

.post-detail-body a {
  color: var(--pink-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-detail-empty {
  margin-top: 10px;
  color: var(--ink-mute);
  font-size: 12.5px;
}

.post-detail-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 17px;
  padding-top: 15px;
  border-top: 1px dashed var(--line-soft);
}

.post-detail-comment-count {
  color: var(--ink-mute);
  font-size: 11px;
}

.post-detail-comment-count .post-stat-value {
  color: var(--pink-deep);
}

.post-detail-comments {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}

.post-detail-comments-title {
  margin-bottom: 12px;
  font-size: 16px;
}

@media (max-width: 760px) {
  .post-detail-title {
    font-size: 20px;
  }
}

.post-like.is-liked {
  color: #c62d5c;
  background: rgba(255, 170, 204, 0.2);
}

.post-grid-state {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 38px 20px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--ink-mute);
  font-size: 12px;
}

.post-loading-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink-strong);
  animation: post-dot-pulse 1.1s ease-in-out infinite;
}

@keyframes post-dot-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.8);
  }

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

.reaction-controls {
  position: relative;
}

.reaction-trigger {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--pink-deep);
  font-size: 16px;
  line-height: 1;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.reaction-trigger:hover,
.reaction-trigger[aria-expanded="true"] {
  border-color: rgba(255, 111, 168, 0.4);
  background: var(--pink-mist);
  transform: translateY(-1px);
}

.reaction-icon {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.reaction-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  font-size: 12px;
}

.reaction-picker {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 45;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
  width: min(310px, calc(100vw - 44px));
  gap: 6px;
  max-height: min(56vh, 400px);
  overflow: auto;
  overscroll-behavior: contain;
  touch-action: none;
  -webkit-overflow-scrolling: touch;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-lg);
}

.reaction-picker[hidden] {
  display: none;
}

.reaction-option {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.reaction-option:hover {
  background: rgba(255, 170, 204, 0.18);
  transform: translateY(-1px);
}

.reaction-option img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.markdown-reaction {
  display: inline-block;
  width: 42px;
  height: 42px;
  margin: 2px;
  object-fit: contain;
  vertical-align: middle;
}

@media (max-width: 760px) {
  .post-grid {
    grid-template-columns: 1fr;
  }

  .post-composer-login {
    align-items: flex-start;
    flex-direction: column;
  }

  .posts-toolbar {
    align-items: flex-start;
  }

  .posts-toolbar .toolbar-right {
    width: 100%;
  }

  .posts-search {
    flex: 1;
  }

  .post-composer-actions {
    align-items: flex-start;
  }

  .post-composer-submit {
    width: 100%;
    justify-content: space-between;
  }
}

