/* =========================
   GLOBAL APP
========================= */

.app-shell,
.app,
#forum-page {
    transition: transform .25s ease, filter .25s ease;
    transform-origin: top center;
}

.app-shell,
#forum-page {
    min-height: 100dvh;
    background: #ffffff;
}

/* 手机打开 drawer 时背景缩放 */
body.drawer-open .app-shell,
body.drawer-open #forum-page {
    border-radius: 34px 34px 26px 26px;
    overflow: hidden;
}

body.drawer-open {
    background: #000000;
}

/* PC 不缩放 */
@media (min-width: 769px) {
    body.drawer-open .app-shell,
    body.drawer-open .app,
    body.drawer-open #forum-page {
        transform: none !important;
        filter: none !important;
    }
}

/* =========================
   OVERLAY（遮罩层）
   z-index: 999
========================= */

.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(9, 12, 20, 0);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease;
    z-index: 999;
}

.drawer-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* PC 桌面毛玻璃效果 */
@media (min-width: 769px) {
    .drawer-overlay {
        backdrop-filter: blur(6px);
    }
}

/* =========================
   DRAWER（弹窗主体）
========================= */

.drawer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background: #fff;
    border-radius: 24px 24px 0 0;
    transition: transform .3s ease;
    will-change: transform;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
}

/* 移动端触摸优化 */
@media (max-width: 768px) {
    .drawer {
        touch-action: pan-y;
        height: min(94dvh, calc(100dvh - 6px));
        max-height: calc(100dvh - 6px);
    }
}

/* PC 桌面弹窗样式 */
@media (min-width: 769px) {
    .drawer {
        width: 520px;
        height: 720px;
        max-height: 82vh;
        left: 50%;
        top: 50%;
        right: auto;
        bottom: auto;
        border-radius: 28px;
        transform: translate(-50%, calc(-50% + 100vh));
        box-shadow: 0 30px 80px rgba(0, 0, 0, .18);
        touch-action: auto;
        padding-bottom: 0;
    }
}

/* =========================
   HANDLE（拖拽把手）
========================= */

.drawer-handle-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0 4px;
    flex-shrink: 0;
}

.drawer-handle {
    width: 42px;
    height: 5px;
    border-radius: 999px;
    background: #d0d0d0;
}

/* =========================
   HEADER（弹窗头部）
========================= */

.drawer-header {
    position: relative;
    z-index: 30;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    border-bottom: 1px solid #f1f1f1;
    background: #fff;
    flex-shrink: 0;
}

.drawer-title {
    font-size: 18px;
    font-weight: 700;
}

/* PC 关闭按钮 */
@media (min-width: 769px) {
    .drawer-close {
        display: flex !important;
        width: 34px;
        height: 34px;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        background: #f5f5f5;
        cursor: pointer;
        flex-shrink: 0;
        transition: background .2s ease;
        position: relative;
        z-index: 50;
    }

    .drawer-close:hover {
        background: #ebebeb;
    }
}

/* 移动端隐藏关闭按钮 */
@media (max-width: 768px) {
    .drawer-close {
        display: none !important;
    }
}

/* =========================
   CONTENT（滚动内容区）
   ✅ 只改 padding-bottom，不加 absolute
========================= */

.drawer-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
    padding: 12px;
    padding-bottom: calc(120px + env(safe-area-inset-bottom)) !important;
    scroll-padding-bottom: calc(120px + env(safe-area-inset-bottom));
    overscroll-behavior: contain;
}

/* PC 桌面弹窗内容区 */
@media (min-width: 769px) {
    .drawer-content {
        padding: 12px;
        padding-bottom: 12px !important;
    }
}

/* =========================
   INPUT AREA（输入框区域）
   ✅ 只改 input 为 absolute，不碰 content
========================= */

.drawer-input-area {
    position: absolute !important;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(18px);
    border-top: none;
    padding: 10px 12px;
    transition: bottom .18s ease;
}

/* PC 桌面弹窗输入框 */
@media (min-width: 769px) {
    .drawer-input-area {
        position: relative !important;
        bottom: auto;
        border-radius: 0 0 28px 28px;
        border-top: none;
        padding: 10px;
    }
}

@media (max-width: 768px) {
    .drawer-input-area {
        position: fixed !important;
        width: min(100% - 24px, 560px);
        left: 50%;
        right: auto;
        top: auto;
        bottom: calc(var(--keyboard-offset, 0px) + 16px);
        transform: translateX(-50%);
        border-radius: 18px;
        box-shadow: 0 16px 38px rgba(0, 0, 0, .16);
        z-index: 1002;
    }

    .drawer-input-area.reply-anchored {
        top: auto;
        bottom: calc(var(--keyboard-offset, 0px) + 16px);
    }

    .reply-preview {
        display: none !important;
    }
}

/* 回复预览条 */
.reply-preview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 8px;
    border-radius: 14px;
    background: rgba(22, 33, 62, .06);
}

.reply-preview[hidden] {
    display: none !important;
}

.reply-preview.active {
    display: flex;
}

.comment-preview-popover {
    position: fixed;
    z-index: 1200;
    width: 280px;
    padding: 12px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 55px rgba(0, 0, 0, .18);
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    display: block;
}

.comment-preview-popover.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.comment-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.comment-preview-name {
    font-size: 14px;
    font-weight: 700;
    color: #111;
}

.comment-preview-close {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .06);
    color: #777;
    cursor: pointer;
}

.comment-preview-text {
    max-height: 96px;
    overflow: auto;
    font-size: 14px;
    line-height: 1.55;
    color: #333;
    word-break: break-word;
}

.comment-preview-reply {
    margin-top: 12px;
    width: 100%;
    height: 36px;
    border-radius: 12px;
    background: #111;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

@media (max-width: 768px) {
    .comment-preview-popover {
        display: none !important;
    }
}

.reply-preview-text {
    font-size: 13px;
    color: #485168;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    flex: 1;
}

#cancelReply {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, .05);
    color: #777;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 输入框容器 */
.comment-input-fixed,
.drawer-input-wrap {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

/* ✅ 必须改成 font-size: 16px（防止iOS缩放） */
#commentInput {
    flex: 1;
    min-height: 44px;
    max-height: 120px;
    padding: 12px 14px;
    border-radius: 16px;
    border: none;
    outline: none;
    resize: none;
    background: rgba(255, 255, 255, .9);
    font-size: 16px;
    line-height: 1.5;
    transform: translateZ(0);
}

#commentInput:focus {
    background: #fff;
}

#sendCommentBtn {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: none;
    background: #111;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .18s ease;
}

#sendCommentBtn:active {
    transform: scale(.92);
}

/* =========================
   COMMENT SYSTEM
========================= */

/* 评论项基础布局 */
.comment {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #f3f3f3;
}

/* 头像区域 */
.comment-avatar-wrap {
    flex-shrink: 0;
}

.comment-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

/* 评论主体 */
.comment-body {
    flex: 1;
    min-width: 0;
}

/* 统一 user-line 布局 */
.user-line {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

/* 顶部信息行 */
.comment-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.comment-meta {
    display: flex;
    gap: 6px;
    font-size: 12px;
    color: #999;
}

.comment-username {
    font-size: 14px;
    font-weight: 600;
    color: #111;
    text-decoration: none;
}

/* 徽章统一 order: -1 靠左 */
.badge {
    height: 18px;
    padding: 0 7px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    background: rgba(0, 0, 0, .06);
    color: #666;
    order: -1;
}

.badge.founder {
    color: #c48a00;
    background: rgba(255, 215, 0, .08);
}

.badge.vip {
    color: #ff7a59;
    background: rgba(255, 120, 80, .1);
}

/* 评论正文 */
.comment-content {
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    word-break: break-word;
    position: relative;
    z-index: 2;
    pointer-events: auto;
}

/* 评论操作按钮区 */
.comment-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.action-btn,
.reply-btn {
    width: 32px;
    height: 32px;
    border: none;
    outline: none;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    cursor: pointer;
    transition: background .18s ease;
}

.action-btn:hover,
.reply-btn:hover {
    background: rgba(0, 0, 0, .05);
}

.reply-list {
    display: grid;
    gap: 8px;
    margin-top: 10px;
    padding-left: 8px;
}

.reply-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(22, 33, 62, .035);
}

.reply-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

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

.reply-user-line {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.comment-time,
.reply-time {
    font-size: 11px;
    color: #9aa1b1;
    font-weight: 500;
}

.reply-username,
.reply-target {
    font-size: 13px;
    font-weight: 700;
    color: #111;
}

.reply-arrow {
    color: #9aa1b1;
    font-size: 12px;
}

.reply-content {
    margin-top: 5px;
    color: #4c5567;
    font-size: 13px;
    line-height: 1.5;
}

/* =========================
   LIKE SYSTEM
========================= */

.like-btn,
.reply-like-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 4px;
    position: relative;
    color: #999;
    transition: transform .18s ease;
}

.like-icon,
.like-icon * {
    width: 18px;
    height: 18px;
    fill: transparent;
    stroke: currentColor;
    transition: fill .22s ease, stroke .22s ease, transform .22s ease;
}

.like-btn.active,
.reply-like-btn.active {
    color: #ff4d4f;
}

.like-btn.active .like-icon,
.reply-like-btn.active .like-icon {
    fill: currentColor;
    stroke: currentColor;
}

.like-btn.active .like-icon path,
.reply-like-btn.active .like-icon path {
    fill: #ff4d4f;
    stroke: #ff4d4f;
}

.like-icon.pop {
    animation: likePop .32s cubic-bezier(.22, 1.4, .36, 1);
}

.heart-burst {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 32px;
    height: 28px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    color: #ff4d4f;
}

.heart-burst .like-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    fill: currentColor;
    stroke: currentColor;
    opacity: 0;
}

.heart-burst .like-icon:nth-child(1) {
    animation: heartFloatOne .58s ease-out forwards;
}

.heart-burst .like-icon:nth-child(2) {
    animation: heartFloatTwo .58s ease-out forwards;
}

.heart-burst .like-icon:nth-child(3) {
    animation: heartFloatThree .58s ease-out forwards;
}

@keyframes likePop {
    0% { transform: scale(1); }
    40% { transform: scale(1.14); }
    100% { transform: scale(1); }
}

@keyframes heartFloatOne {
    0% { transform: translate(-50%, -50%) scale(.4); opacity: 0; }
    35% { opacity: 1; }
    100% { transform: translate(-50%, -150%) scale(1); opacity: 0; }
}

@keyframes heartFloatTwo {
    0% { transform: translate(-50%, -50%) scale(.35); opacity: 0; }
    35% { opacity: 1; }
    100% { transform: translate(-125%, -122%) scale(.85) rotate(-16deg); opacity: 0; }
}

@keyframes heartFloatThree {
    0% { transform: translate(-50%, -50%) scale(.3); opacity: 0; }
    35% { opacity: 1; }
    100% { transform: translate(24%, -118%) scale(.72) rotate(14deg); opacity: 0; }
}

.like-count,
.reply-like-count {
    font-size: 13px;
    line-height: 1;
}

.like-count-trigger {
    cursor: pointer;
    padding: 6px 4px;
    margin: -6px -4px;
    border-radius: 8px;
}

.like-count.pop,
.like-count-trigger.pop {
    animation: countPop .24s cubic-bezier(.22, 1.3, .36, 1);
}

@keyframes countPop {
    0% { transform: scale(1); }
    45% { transform: scale(1.22); }
    100% { transform: scale(1); }
}

.like-btn.ripple::after,
.reply-like-btn.ripple::after {
    content: "";
    position: absolute;
    inset: -7px;
    border-radius: 999px;
    border: 2px solid rgba(255, 77, 79, .5);
    animation: likeRipple .45s ease-out;
    pointer-events: none;
}

@keyframes likeRipple {
    0% { transform: scale(.6); opacity: .8; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* =========================
   REPLY（楼中楼）
========================= */

.reply-list {
    margin-top: 8px;
    padding-left: 14px;
    border-left: 2px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reply-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.reply-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

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

.reply-user-line {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.reply-username {
    font-size: 13px;
    font-weight: 600;
    color: #111;
}

.reply-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #bbb;
}

.reply-arrow svg {
    width: 10px;
    height: 10px;
    display: block;
}

.reply-target {
    font-size: 13px;
    font-weight: 500;
    color: #888;
}

.reply-content {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.5;
    color: #444;
    white-space: normal;
    word-break: break-word;
    position: relative;
    z-index: 2;
    pointer-events: auto;
}

/* =========================
   容器
========================= */

#commentDrawer {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#drawerComments {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

/* =========================
   帖子卡片样式
========================= */

.topbar {
    height: 88px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #eee;
}

.post-avatar,
.comment-avatar,
.reply-avatar,
.avatar {
    cursor: pointer;
}

.comment-icon {
    flex-shrink: 0;
}

.hash-link {
    display: inline;
    padding: 0;
    border: none;
    background: transparent;
    color: #2563eb;
    font-size: inherit;
    font-weight: 600;
    line-height: inherit;
    cursor: pointer;
    vertical-align: baseline;
}

.hash-link:hover {
    text-decoration: underline;
}

.hot-clear {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 139, 106, .16);
    color: #ff7a59;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

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

.hot-item {
    border: none;
    color: inherit;
    cursor: pointer;
}

.hot-item.active {
    outline: 2px solid rgba(255, 139, 106, .34);
}

.mention-panel {
    display: none;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 8px;
    padding: 8px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .96);
    box-shadow: none;
}

.mention-panel.show {
    display: flex;
}

.mention-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 8px;
    border-radius: 10px;
    cursor: pointer;
}

.mention-item:hover {
    background: rgba(0, 0, 0, .05);
}

.mention-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.like-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 4px;
}

.like-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.like-left .user-info {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.like-left .username {
    font-size: 14px;
    font-weight: 600;
    color: #111;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.like-times {
    min-width: 34px;
    height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    background: rgba(255, 77, 79, .1);
    color: #ff4d4f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.logo {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: #ff8b6a;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    flex-shrink: 0;
}

.nav {
    display: flex;
    align-items: center;
    gap: 36px;
    font-size: 18px;
    font-weight: 600;
    white-space: nowrap;
}

.nav span {
    cursor: pointer;
    transition: 0.2s;
}

.nav span:hover {
    opacity: 0.7;
}

.nav .active {
    color: #ff8b6a;
    font-weight: bold;
}

.user-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    object-fit: cover;
}

.container {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 22px;
}

.hot-section {
    background: #fff8ed;
    border-radius: 30px;
    padding: 22px;
    margin-bottom: 24px;
}

.hot-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px;
}

.hot-title {
    font-size: 20px;
    font-weight: bold;
    color: #ff8b6a;
}

.hot-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hot-item {
    background: white;
    border-radius: 22px;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 600;
    transition: 0.2s;
}

.hot-item:hover {
    transform: translateY(-2px);
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.post-card {
    background: white;
    border-radius: 30px;
    padding: 22px;
    box-shadow: none;
    animation: cardEnter .45s cubic-bezier(.22, 1, .36, 1);
}

.post-header {
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
}

.post-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #fff;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    object-fit: cover;
    border: 1px solid rgba(22, 33, 62, 0.08);
}

.author-name {
    font-size: 20px;
    font-weight: bold;
}

.post-time {
    color: #aaa;
    margin-top: 6px;
    font-size: 14px;
}

.post-content {
    font-size: 18px;
    line-height: 1.7;
    white-space: pre-wrap;
}

.post-image {
    display: block;
    width: min(100%, 280px);
    aspect-ratio: 1 / 1;
    max-height: 280px;
    object-fit: cover;
    background: transparent;
    border-radius: 20px;
    margin-top: 16px;
}

.post-stats {
    border-top: 1px solid #eee;
    padding-top: 14px;
    margin-top: 18px;
    display: flex;
    gap: 28px;
}

.stat-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 2px;
    color: #777;
    cursor: pointer;
    transition: 0.2s;
}

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

.stat-btn svg {
    width: 22px;
    height: 22px;
}

@keyframes cardEnter {
    from {
        opacity: 0;
        transform: translateY(20px) scale(.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* =========================
   移动端适配
========================= */

@media (max-width: 768px) {
    .topbar {
        height: 74px;
        padding: 0 14px;
    }

    .nav {
        gap: 14px;
        font-size: 15px;
    }

    .logo {
        width: 44px;
        height: 44px;
        font-size: 24px;
        border-radius: 14px;
    }

    .user-avatar {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }

    .container {
        padding: 14px;
    }

    .post-card {
        padding: 16px;
        border-radius: 22px;
    }

    .post-avatar {
        width: 52px;
        height: 52px;
        font-size: 22px;
    }

    .author-name {
        font-size: 17px;
    }

    .post-content {
        font-size: 16px;
    }

    .reply-list {
        padding-left: 10px;
    }

    .reply-btn {
        display: none;
    }

    .comment-avatar {
        width: 36px;
        height: 36px;
    }

    .comment-content {
        font-size: 13px;
    }
}

/* =========================
   ========== 最终强制覆盖（放最底部）==========
========================= */

/* 手机禁止页面顶飞 */
html,
body {
    overscroll-behavior: none;
}

/* iOS 防止背景滚动 */
body.drawer-open {
    position: fixed;
    width: 100%;
    overflow: hidden;
    background: #000;
}

/* PC 强制隐藏拖拽条 */
@media (min-width: 769px) {
    .drawer-handle-wrap {
        display: none !important;
    }
}

/* ✅ 关键修复：让点击永远落在 button 上，解决点赞失效 */
.like-icon,
.like-icon * {
    pointer-events: none !important;
}

/* Keep drawer.css from resurrecting the old forum feed styles above. */
#forum-page .container {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 22px 16px 28px;
    box-sizing: border-box;
}

#forum-page .hot-section {
    background: #fff8ed;
    border-radius: 30px;
    padding: 22px;
    margin-bottom: 18px;
    overflow: hidden;
    box-sizing: border-box;
    border: 1px solid rgba(22, 33, 62, .06);
    box-shadow: 0 18px 42px rgba(22, 33, 62, .08);
}

#forum-page .hot-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

#forum-page .hot-item {
    width: auto;
    box-sizing: border-box;
    align-items: center;
    overflow: hidden;
    color: #1c2333;
}

#forum-page .hot-item-empty {
    min-height: 60px;
    color: #9aa1af;
    background: linear-gradient(180deg, rgba(22, 33, 62, .035), rgba(22, 33, 62, .02));
    border: 1px dashed rgba(22, 33, 62, .08);
    pointer-events: none;
    transform: none !important;
}

#forum-page .hot-item.active {
    background: #ffefe4;
    color: #ff7a59;
    box-shadow: inset 0 0 0 2px rgba(255, 122, 89, .24);
}

#forum-page .hot-item-empty span {
    display: block;
    border-radius: 999px;
    background: transparent;
}

#forum-page .hot-item-empty span:first-child {
    width: auto;
    height: auto;
}

#forum-page .hot-item-empty span:last-child {
    width: auto;
    height: auto;
}

#forum-page .posts-list {
    gap: 28px;
    padding: 10px 6px 18px;
}

#forum-page .post-card {
    border: 1px solid rgba(22, 33, 62, .1);
    box-shadow: 0 18px 38px rgba(22, 33, 62, .09);
}

@media (max-width: 768px) {
    #forum-page .container {
        padding: 14px;
    }

    #forum-page .hot-section {
        padding: 16px;
        border-radius: 22px;
    }
}
