/* 详情页专属 */
.detail-hero {
  padding: 0.5rem 0 1.5rem;
  animation: fade-up 0.55s ease both;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.detail-tax {
  margin-bottom: 1rem;
}

.detail-title {
  font-family: var(--font-brand);
  font-size: clamp(1.75rem, 5vw, 2.4rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
}

.detail-body {
  font-size: 1.05rem;
  color: var(--ink-soft);
  word-break: break-word;
  padding-bottom: 1.25rem;
  line-height: 1.8;
}

.detail-share {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-bottom: 1.5rem;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid var(--line);
}

.detail-share .share-trigger,
.reply-share .share-trigger {
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  gap: 0.35rem;
  display: inline-flex;
  align-items: center;
}

.reply-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.reply-section {
  padding: 1.75rem 0 1rem;
  animation: fade-up 0.55s ease 0.12s both;
}

.reply-section h2 {
  font-family: var(--font-brand);
  font-size: 1.45rem;
  font-weight: 400;
  margin-bottom: 1.25rem;
}

.reply-section h2 span {
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.9rem;
  margin-left: 0.5rem;
}

.reply-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 2rem;
}

.reply-item {
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
  animation: fade-up 0.4s ease both;
}

.reply-item-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.reply-author {
  font-weight: 700;
  color: var(--teal-deep);
}

.reply-time {
  color: var(--muted);
}

.reply-content {
  color: var(--ink-soft);
  word-break: break-word;
  line-height: 1.75;
}

.reply-form-box {
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--line);
  animation: fade-up 0.55s ease 0.2s both;
}

.reply-form-box h3 {
  font-family: var(--font-brand);
  font-size: 1.35rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

.detail-skeleton .detail-title,
.detail-skeleton .detail-body {
  background: linear-gradient(90deg, rgba(26, 46, 42, 0.06), rgba(26, 46, 42, 0.02), rgba(26, 46, 42, 0.06));
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
  color: transparent;
  border-radius: 4px;
}

@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

/* ====== 分享面板 / 海报 ====== */
.share-mask {
  position: fixed;
  inset: 0;
  z-index: 220;
  background: rgba(26, 46, 42, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}
.share-mask[hidden] {
  display: none !important;
}
.share-mask.open {
  opacity: 1;
  visibility: visible;
}
.share-sheet {
  width: min(100%, 440px);
  background: var(--bg-bottom, #fff);
  border-radius: 16px 16px 8px 8px;
  box-shadow: var(--shadow-soft);
  padding: 1.1rem 1.15rem 1.25rem;
  transform: translateY(20px);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  max-height: min(88vh, 720px);
  overflow: auto;
}
.share-mask.open .share-sheet {
  transform: none;
}
@media (min-width: 640px) {
  .share-mask {
    align-items: center;
  }
  .share-sheet {
    border-radius: 12px;
  }
}
.share-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}
.share-sheet-head h3 {
  margin: 0;
  font-family: var(--font-brand);
  font-size: 1.25rem;
  font-weight: 400;
}
.share-sheet-desc {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.share-channels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}
.share-channels[hidden],
.share-poster-panel[hidden],
.share-sheet-desc[hidden] {
  display: none !important;
}
.share-mask.is-poster .share-sheet-desc {
  display: none !important;
}
.share-mask.is-poster .share-channels {
  display: none !important;
}
.share-channel {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 0.85rem 0.4rem 0.7rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
  color: var(--ink);
}
.share-channel:hover {
  border-color: var(--teal);
  background: color-mix(in srgb, var(--teal) 8%, var(--surface));
  transform: translateY(-1px);
}
.share-channel-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  background: rgba(42, 157, 143, 0.12);
  color: var(--teal-deep);
}
.share-channel[data-share-act="weibo"] .share-channel-icon {
  background: rgba(230, 22, 45, 0.12);
  color: #e6162d;
}
.share-channel[data-share-act="qq"] .share-channel-icon {
  background: rgba(18, 183, 245, 0.14);
  color: #12b7f5;
}
.share-channel[data-share-act="wechat"] .share-channel-icon {
  background: rgba(7, 193, 96, 0.14);
  color: #07c160;
}
.share-channel[data-share-act="poster"] .share-channel-icon {
  background: rgba(232, 93, 76, 0.12);
  color: var(--accent);
}
.share-channel-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.share-poster-panel {
  margin-top: 0.25rem;
}
.share-poster-preview {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  margin-bottom: 0.9rem;
}
.share-poster-preview img {
  width: 100%;
  height: auto;
  display: block;
}
.share-poster-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
html[data-theme="apple-black"] .share-sheet,
html[data-theme="nvidia"] .share-sheet {
  background: #1c1c1e;
}
html[data-theme="apple-black"] .share-channel,
html[data-theme="nvidia"] .share-channel {
  background: rgba(255, 255, 255, 0.06);
}
