.post-detail-page {
  padding-top: 80px;
  min-height: 100vh;
  padding-bottom: 40px;
}
.post-detail-back {
  margin-bottom: 16px;
}
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-mid);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
  letter-spacing: 1px;
  font-weight: 500;
}
.back-btn:hover {
  border-color: rgba(78, 110, 242, 0.25);
  color: var(--ice);
  background: var(--card-bg-hover);
}
.floor-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.floor-card {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-bottom: none;
  padding: 24px 28px;
  transition: background 0.2s;
}
.floor-card:first-child {
  border-radius: 10px 10px 0 0;
}
.floor-card:last-child {
  border-bottom: 1px solid var(--border-subtle);
  border-radius: 0 0 10px 10px;
}
.floor-card:only-child {
  border-radius: 10px;
  border-bottom: 1px solid var(--border-subtle);
}
.floor-card:hover {
  background: var(--card-bg-hover);
}
.floor-card.floor-main {
  background: var(--card-bg);
}
.floor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.floor-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.floor-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(78, 110, 242, 0.06);
  border: 1.5px solid rgba(78, 110, 242, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--ice);
  font-weight: 700;
  flex-shrink: 0;
  cursor: pointer;
  transition: border-color 0.3s;
}
.floor-avatar:hover {
  border-color: rgba(78, 110, 242, 0.35);
}
.floor-user-detail {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.floor-nickname {
  font-size: 15px;
  color: var(--text-bright);
  letter-spacing: 1px;
  font-weight: 700;
}
.op-tag {
  font-size: 13px;
  padding: 1px 8px;
  border-radius: 3px;
  background: rgba(78, 110, 242, 0.08);
  color: var(--ice);
  border: 1px solid rgba(78, 110, 242, 0.15);
  letter-spacing: 1px;
  font-weight: 500;
}
.level-badge {
  font-size: 12px;
  padding: 1px 7px;
  border-radius: 3px;
  background: rgba(255, 165, 0, 0.08);
  color: #e6a23c;
  border: 1px solid rgba(255, 165, 0, 0.18);
  letter-spacing: 0.5px;
  font-weight: 500;
  white-space: nowrap;
}
.floor-number {
  font-size: 13.5px;
  color: var(--text-mid);
  letter-spacing: 1px;
  flex-shrink: 0;
  font-weight: 520;
}
.floor-title {
  margin-bottom: 16px;
}
.floor-title h2 {
  font-size: 22px;
  color: var(--text-bright);
  letter-spacing: 1px;
  line-height: 1.5;
  margin-bottom: 10px;
  font-weight: 700;
}
.floor-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.floor-content {
  font-size: 15.5px;
  color: var(--text-bright);
  line-height: 2;
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 16px;
  font-weight: 400;
  opacity: 0.92;
}
.floor-quote {
  background: rgba(78, 110, 242, 0.03);
  border-left: 3px solid rgba(78, 110, 242, 0.25);
  border-radius: 0 6px 6px 0;
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 13.5px;
  color: var(--text-mid);
  line-height: 1.6;
  font-weight: 460;
}
.floor-quote-ref {
  color: var(--ice);
  font-weight: 600;
  margin-right: 8px;
}
.floor-quote-content {
  color: var(--text-mid);
  font-weight: 460;
}
.floor-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}
.floor-time {
  font-size: 13px;
  color: var(--text-mid);
  letter-spacing: 1px;
  font-weight: 460;
}
.floor-stat {
  font-size: 13px;
  color: var(--text-mid);
  font-weight: 460;
}
.floor-actions {
  display: flex;
  gap: 10px;
  margin-left: auto;
  align-items: center;
}
.floor-reply-btn {
  padding: 5px 16px;
  background: 0 0;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  color: var(--text-mid);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
  letter-spacing: 1px;
  font-weight: 500;
}
.floor-reply-btn:hover {
  border-color: rgba(78, 110, 242, 0.3);
  color: var(--ice);
  background: rgba(78, 110, 242, 0.05);
}
.reply-count-bar {
  padding: 14px 20px;
  margin-top: 16px;
  font-size: 14.5px;
  color: var(--text-bright);
  letter-spacing: 1px;
  font-weight: 520;
}
.reply-form-container {
  margin-top: 8px;
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  overflow: hidden;
}
.reply-quote-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: rgba(78, 110, 242, 0.04);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13px;
  color: var(--ice);
  letter-spacing: 1px;
  font-weight: 500;
}
.reply-quote-cancel {
  background: 0 0;
  border: none;
  color: var(--text-dim);
  font-size: 16px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.2s;
}
.reply-quote-cancel:hover {
  color: var(--pink);
  background: rgba(224, 93, 111, 0.06);
}
.reply-form-container .reply-form {
  margin-top: 0;
  padding: 20px;
  border-top: none;
}
.reply-form-container.inline-reply-mode {
  margin-top: 0;
  border-radius: 0 0 10px 10px;
  border-top: none;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 16px;
  background: rgba(78, 110, 242, 0.02);
  border: 1px solid rgba(78, 110, 242, 0.15);
  animation: inlineReplySlideIn 0.25s ease-out;
}
@keyframes inlineReplySlideIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
    max-height: 0;
  }
  to {
    opacity: 1;
    transform: translateY(0);
    max-height: 500px;
  }
}
.floor-sub-replies {
  margin-top: 0;
  margin-left: 0;
  margin-right: 0;
  padding: 0 20px 0 56px;
  background: var(--input-bg);
  border-radius: 0 0 12px 12px;
  border-top: 1px solid var(--border-subtle);
  border-left: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 16px;
}
.floor-card + .floor-sub-replies {
  border-top: 1px solid var(--border-subtle);
}
.sub-reply-item {
  display: flex;
  gap: 10px;
  padding: 14px 0 12px;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}
.sub-reply-item:last-child {
  border-bottom: none;
}
.sub-replies-hidden + .sub-replies-expand {
  border-top: none;
}
.sub-reply-left {
  flex-shrink: 0;
}
.sub-reply-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 1px;
}
.sub-reply-main {
  flex: 1;
  min-width: 0;
}
.sub-reply-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.sub-reply-user {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.sub-reply-nickname {
  font-size: 13px;
  font-weight: 600;
  color: var(--ice);
  cursor: pointer;
}
.sub-reply-nickname:hover {
  text-decoration: underline;
}
.sub-reply-body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-bright);
  margin-bottom: 6px;
  word-break: break-word;
}
.sub-reply-to {
  font-size: 14px;
  color: var(--text-dim);
  font-weight: 400;
}
.sub-reply-to-name {
  color: var(--ice);
  font-weight: 500;
  cursor: pointer;
}
.sub-reply-to-name:hover {
  text-decoration: underline;
}
.sub-reply-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}
.sub-reply-time {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 400;
}
.sub-reply-footer .floor-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}
.sub-reply-footer .floor-reply-btn {
  padding: 3px 10px;
  font-size: 12px;
  color: var(--text-dim);
  transition: color 0.2s;
}
.sub-reply-footer .floor-reply-btn:hover {
  color: var(--ice);
}
.sub-reply-images {
  margin: 6px 0;
}
.sub-reply-images img {
  max-width: 120px;
  max-height: 120px;
  border-radius: 6px;
}
.sub-replies-expand {
  padding: 12px 0 8px;
  font-size: 13px;
  color: var(--ice);
  cursor: pointer;
  font-weight: 500;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 4px;
}
.sub-replies-expand::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--ice);
  transition: transform 0.2s;
}
.sub-replies-expand.expanded::before {
  transform: rotate(180deg);
}
.sub-replies-expand:hover {
  opacity: 0.8;
}
.sub-replies-expand.expanded {
  color: var(--text-dim);
}
.sub-replies-expand.expanded::before {
  border-top-color: var(--text-dim);
}
@media (max-width: 900px) {
  .post-detail-page {
    padding-top: 70px;
  }
  .post-detail-page .container {
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .floor-card {
    padding: 18px 16px;
    overflow-x: hidden;
    max-width: 100%;
    box-sizing: border-box;
  }
  .floor-avatar {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  .floor-title h2 {
    font-size: 18px;
  }
  .floor-actions {
    flex-wrap: wrap;
  }
  .floor-card.floor-main .floor-actions .action-btn {
    padding: 6px 12px;
    font-size: 13px;
  }
}
@media (max-width: 600px) {
  .post-detail-page {
    padding-top: 56px;
    padding-bottom: 20px;
  }
  .post-detail-page .container {
    padding: 0 6px;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .post-detail-back {
    margin-bottom: 10px;
  }
  .back-btn {
    padding: 6px 12px;
    font-size: 13px;
  }
  .floor-card {
    padding: 14px 12px;
    overflow-x: hidden;
    max-width: 100%;
    box-sizing: border-box;
  }
  .floor-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .floor-number {
    align-self: flex-end;
    margin-top: -28px;
    font-size: 12px;
  }
  .floor-avatar {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }
  .floor-user-info {
    gap: 8px;
  }
  .floor-user-detail {
    gap: 4px;
  }
  .floor-nickname {
    font-size: 14px;
  }
  .floor-user-detail .level-badge,
  .floor-user-detail .op-tag,
  .floor-user-detail .role-badge {
    font-size: 10px;
    padding: 0 5px;
  }
  .floor-title h2 {
    font-size: 17px;
  }
  .floor-title .floor-tags {
    gap: 6px;
  }
  .floor-title .post-category-tag,
  .floor-title .post-tag-item {
    font-size: 11px;
    padding: 2px 8px;
  }
  .floor-content {
    font-size: 14.5px;
    line-height: 1.85;
    margin-bottom: 12px;
    overflow-x: auto;
    max-width: 100%;
    word-break: break-all;
  }
  .detail-images img,
  .reply-images img {
    max-width: 100%;
    height: auto;
  }
  .floor-title {
    overflow: hidden;
    max-width: 100%;
  }
  .floor-title h2 {
    word-break: break-all;
  }
  .floor-footer {
    max-width: 100%;
    overflow: hidden;
  }
  .floor-footer {
    flex-direction: column;
    gap: 10px;
    padding-top: 10px;
  }
  .floor-footer .floor-stat,
  .floor-footer .floor-time {
    font-size: 12px;
  }
  .floor-actions {
    margin-left: 0;
    flex-wrap: wrap;
    gap: 6px;
  }
  .floor-reply-btn {
    padding: 4px 10px;
    font-size: 12px;
    letter-spacing: 0.5px;
  }
  .floor-card.floor-main .floor-actions .action-btn {
    padding: 5px 10px;
    font-size: 12px;
    gap: 3px;
    letter-spacing: 0.5px;
    border-radius: 16px;
  }
  .floor-quote {
    padding: 8px 10px;
    font-size: 12.5px;
    margin-bottom: 10px;
  }
  .sub-reply-item {
    padding: 8px 0;
    gap: 8px;
  }
  .sub-reply-avatar {
    width: 20px;
    height: 20px;
    font-size: 10px;
  }
  .sub-reply-body {
    font-size: 13px;
  }
  .floor-sub-replies {
    margin-left: 0;
    padding: 0 8px 0 32px;
  }
  .sub-reply-footer {
    flex-wrap: wrap;
    gap: 6px;
  }
  .sub-reply-footer .floor-actions {
    gap: 4px;
  }
  .sub-reply-footer .floor-reply-btn {
    padding: 3px 8px;
    font-size: 11px;
  }
  .reply-count-bar {
    padding: 10px 14px;
    font-size: 13px;
  }
  .reply-form-container .reply-form {
    padding: 14px 12px;
  }
  .reply-form textarea {
    font-size: 14px;
  }
  .reply-pagination {
    padding: 10px;
  }
  .reply-pagination .page-btn {
    padding: 6px 12px;
    font-size: 12px;
  }
  .reply-page-info {
    font-size: 12px;
  }
}
.sort-buttons {
  display: flex;
  gap: 4px;
  margin-left: 16px;
}
.sort-btn {
  padding: 6px 14px;
  background: 0 0;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--text-mid);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
  letter-spacing: 1px;
  font-weight: 500;
}
.sort-btn:hover {
  color: var(--text-bright);
  background: rgba(78, 110, 242, 0.04);
}
.sort-btn.active {
  color: var(--ice);
  background: rgba(78, 110, 242, 0.08);
  border-color: rgba(78, 110, 242, 0.15);
}
.toolbar-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.hot-posts-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hot-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s;
  font-size: 13.5px;
}
.hot-item:hover {
  background: rgba(78, 110, 242, 0.05);
}
.hot-rank {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
  background: rgba(0, 0, 0, 0.03);
  flex-shrink: 0;
}
.hot-rank.top {
  background: rgba(224, 93, 111, 0.08);
  color: var(--pink);
}
.hot-title {
  flex: 1;
  color: var(--text-bright);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
  line-height: 1.4;
  opacity: 0.88;
}
.hot-item:hover .hot-title {
  color: var(--text-bright);
}
.hot-stat {
  font-size: 13px;
  color: var(--text-mid);
  flex-shrink: 0;
  font-weight: 480;
}
.active-users-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.active-user-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s;
}
.active-user-item:hover {
  background: rgba(78, 110, 242, 0.05);
}
.active-user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(78, 110, 242, 0.06);
  border: 1px solid rgba(78, 110, 242, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--ice);
  font-weight: 700;
  flex-shrink: 0;
}
.active-user-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.active-user-name {
  font-size: 13.5px;
  color: var(--text-bright);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0.9;
}
.active-user-item:hover .active-user-name {
  color: var(--text-bright);
}
.active-user-stat {
  font-size: 13px;
  color: var(--text-mid);
  flex-shrink: 0;
  font-weight: 480;
}
.profile-bio {
  font-size: 14px;
  color: var(--text-bright);
  font-style: italic;
  margin-bottom: 12px;
  letter-spacing: 1px;
  font-weight: 460;
  line-height: 1.6;
  opacity: 0.82;
}
.profile-bio.profile-bio-empty {
  color: var(--text-dim);
  cursor: pointer;
  font-style: normal;
  opacity: 0.6;
  transition: opacity 0.3s;
}
.profile-bio.profile-bio-empty:hover {
  opacity: 1;
  color: var(--ice);
}
.floor-reply-btn.active {
  background: rgba(78, 110, 242, 0.08);
  border-color: rgba(78, 110, 242, 0.2);
  color: var(--ice);
}
@media (max-width: 900px) {
  .sort-buttons {
    margin-left: 0;
    margin-top: 8px;
  }
  .toolbar-left {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 600px) {
  .sort-buttons {
    flex-wrap: wrap;
  }
  .sort-btn {
    font-size: 13px;
    padding: 5px 10px;
  }
}
.notif-btn {
  position: relative;
  background: 0 0;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.3s;
  line-height: 1;
}
.notif-btn:hover {
  background: rgba(78, 110, 242, 0.06);
}
.notif-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--pink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-family: inherit;
}
.notif-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-right: 30px;
}
.notif-modal-header h2 {
  margin: 0;
}
.notif-read-all-btn {
  background: 0 0;
  border: 1px solid rgba(78, 110, 242, 0.15);
  color: var(--ice);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  transition: all 0.3s;
}
.notif-read-all-btn:hover {
  background: rgba(78, 110, 242, 0.06);
}
.notifications-list {
  max-height: 500px;
  overflow-y: auto;
}
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}
.notif-item:last-child {
  border-bottom: none;
}
.notif-item:hover {
  background: rgba(78, 110, 242, 0.04);
}
.notif-item.unread {
  background: rgba(78, 110, 242, 0.03);
}
.notif-icon {
  font-size: 20px;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(78, 110, 242, 0.05);
  border-radius: 50%;
}
.notif-body {
  flex: 1;
  min-width: 0;
}
.notif-content {
  font-size: 14px;
  color: var(--text-bright);
  line-height: 1.5;
  margin: 0 0 4px 0;
  font-weight: 460;
  opacity: 0.82;
}
.notif-item.unread .notif-content {
  color: var(--text-bright);
  font-weight: 500;
}
.notif-time {
  font-size: 13px;
  color: var(--text-mid);
  font-weight: 460;
}
.notif-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ice);
  flex-shrink: 0;
  margin-top: 6px;
}
.reply-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 0;
  margin: 8px 0;
}
.reply-page-info {
  font-size: 13.5px;
  color: var(--text-mid);
  font-weight: 480;
}
.content-link {
  color: var(--ice);
  text-decoration: none;
  word-break: break-all;
  font-weight: 450;
}
.content-link:hover {
  text-decoration: underline;
}
.floor-content {
  white-space: normal;
  word-break: break-word;
  line-height: 1.8;
  overflow-wrap: break-word;
  overflow-x: hidden;
  max-width: 100%;
}
