        :root {
            --kawaii-bg: #fff8f3;
            --kawaii-peach: #ff9a76;
            --kawaii-pink: #ffb8a4;
            --kawaii-cream: #fff0e8;
            --kawaii-warm: #5c4a3a;
            --kawaii-soft: #8b7b6b;
            --kawaii-card: #ffffff;
            --like-color: #e87b6b;
            --fav-color: #f59e0b;
            --kawaii-glow: 0 2px 20px rgba(255,154,118,0.12);
            --kawaii-hover: 0 6px 28px rgba(255,154,118,0.18);
        }

        body { background: var(--kawaii-bg); }

        /* ===== 主风格横幅：蜜桃渐变变体，结构复用 common.css 的 .page-header ===== */
        .page-header.treehole { background: linear-gradient(135deg, #ff9a76, #f27052); }

        /* ===== 写心声入口按钮 ===== */
        .write-heart-wrap {
            text-align: center; padding: 0 20px 10px;
        }
        .write-heart-btn {
            display: inline-flex; align-items: center; gap: 8px;
            padding: 13px 32px;
            background: linear-gradient(135deg, #ffb8a4, #ff9a76);
            color: #fff; font-size: 1rem; font-weight: 600;
            border-radius: 30px; text-decoration: none;
            box-shadow: 0 4px 18px rgba(255,154,118,0.25);
            transition: all 0.3s ease;
            letter-spacing: 1px;
        }
        .write-heart-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 28px rgba(255,154,118,0.35);
            color: #fff;
        }
        .write-heart-btn .btn-icon { font-size: 1.2rem; }

        /* ===== 容器 ===== */
        .container { max-width: 800px; margin: 0 auto; padding: 84px 20px 100px; }

        /* ===== 搜索/筛选工具栏 ===== */
        .treehole-toolbar {
            display: flex; gap: 8px; align-items: center;
            margin-bottom: 14px; flex-wrap: wrap;
        }
        .mobile-filter-toggle { display: none; }
        .search-input-wrap {
            position: relative; flex: 1; min-width: 160px;
        }
        .search-input-wrap input {
            width: 100%; padding: 9px 14px 9px 36px;
            border: 2px solid #f0ddd0; border-radius: 24px;
            font-size: 0.9rem; font-family: inherit;
            background: #fff; color: var(--kawaii-warm);
            transition: all 0.3s ease; box-sizing: border-box;
        }
        .search-input-wrap input:focus {
            border-color: var(--kawaii-peach); outline: none;
            box-shadow: 0 0 0 4px rgba(255,154,118,0.08);
        }
        .search-input-wrap i {
            position: absolute; left: 13px; top: 50%;
            transform: translateY(-50%); color: #d4b8a8; cursor: pointer;
        }
        .toolbar-date {
            padding: 8px 10px; border: 2px solid #f0ddd0;
            border-radius: 24px; font-size: 0.85rem; font-family: inherit;
            color: var(--kawaii-soft); cursor: pointer; background: #fff;
            transition: border-color 0.3s;
        }
        .toolbar-date:focus { border-color: var(--kawaii-peach); outline: none; }
        .btn-search {
            padding: 8px 18px; background: var(--kawaii-peach);
            color: #fff; border: none; border-radius: 24px; cursor: pointer;
            font-size: 0.85rem; font-family: inherit; font-weight: 600;
            white-space: nowrap; transition: all 0.3s ease;
        }
        .btn-search:hover { background: #ff8a5e; transform: translateY(-1px); }
        .btn-clear {
            display: none; padding: 6px 14px;
            border: 1px solid #e8a090; border-radius: 20px;
            background: #fff5f2; cursor: pointer; font-size: 0.8rem;
            color: #d4836b; font-family: inherit; white-space: nowrap;
        }
        .result-count {
            font-size: 0.8rem; color: var(--kawaii-soft); white-space: nowrap;
        }

        /* ===== 热门标签 ===== */
        /* 排序标签 */
        .sort-tabs {
            display: flex; gap: 0; margin: 0 auto 6px; max-width: var(--container);
            padding: 0 var(--space-sm); justify-content: center;
        }
        .sort-tab {
            padding: 8px 22px; cursor: pointer; font-size: 0.88rem; font-weight: 500;
            border: 1px solid #f0ddd0; background: #fff; color: #8b7b6b;
            font-family: inherit; transition: all var(--trans-fast);
        }
        .sort-tab:first-child { border-radius: 20px 0 0 20px; }
        .hot-sort-wrap .sort-tab { border-radius: 0 20px 20px 0; }
        .sort-tab:hover { background: #fff5ee; color: var(--kawaii-peach); }
        .sort-tab.active { background: var(--kawaii-peach); color: #fff; border-color: var(--kawaii-peach); font-weight: 600; }
        .sort-tab i { margin-right: 4px; }

        /* 最火时间范围下拉 */
        .hot-sort-wrap { position: relative; display: inline-flex; }
        .hot-sort-wrap .sort-tab { display: inline-flex; align-items: center; gap: 4px; }
        .hot-range-label { font-size: 0.72rem; font-weight: 400; opacity: 0.9; }
        .hot-range-dropdown {
            position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%);
            display: none; flex-direction: column; gap: 2px;
            min-width: 150px; padding: 6px; background: #fff;
            border: 1px solid #f0ddd0; border-radius: 14px;
            box-shadow: 0 8px 24px rgba(139,123,107,0.18);
            z-index: 60;
        }
        .hot-range-dropdown.open { display: flex; }
        .hot-range-option {
            display: block; width: 100%; text-align: center;
            padding: 8px 16px; border: none; background: transparent;
            font-family: inherit; font-size: 0.85rem; color: #8b7b6b; cursor: pointer;
            border-radius: 10px; transition: all var(--trans-fast);
        }
        .hot-range-option:hover { background: #fff5ee; color: var(--kawaii-peach); }
        .hot-range-option.active { background: var(--kawaii-peach); color: #fff; font-weight: 600; }

        .trending-tags {
            display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
            padding: 10px 16px; margin-bottom: 14px;
            background: linear-gradient(135deg, #fff5ee, #ffefe5);
            border: 1px solid #ffe0d0; border-radius: 16px;
        }
        .trending-label {
            font-size: 0.82rem; font-weight: 600;
            color: var(--kawaii-soft); margin-right: 4px;
            display: flex; align-items: center; gap: 4px;
        }
        .tag-chip {
            display: inline-flex; align-items: center; gap: 2px;
            padding: 3px 12px; margin: 2px 4px 2px 0;
            border-radius: 16px;
            background: #fff5ee; color: #d4836b;
            font-size: 0.78rem; font-weight: 500;
            cursor: pointer; user-select: none;
            border: 1px solid #ffe0d0;
            transition: all 0.2s ease; white-space: nowrap;
        }
        .tag-chip:hover { background: var(--kawaii-peach); color: #fff; border-color: var(--kawaii-peach); }
        .tag-chip.active { background: var(--kawaii-peach); color: #fff; font-weight: 600; border-color: var(--kawaii-peach); }
        .tag-chip .tag-count { font-size: 0.65rem; opacity: 0.7; margin-left: 2px; }

        /* ===== 标签筛选提示条 ===== */
        .tag-filter-bar {
            display: none; align-items: center; gap: 8px;
            padding: 8px 16px; margin-bottom: 12px;
            background: #fff5ee; border-radius: 16px;
            font-size: 0.82rem; color: var(--kawaii-soft);
            border: 1px solid #ffe0d0;
        }
        .tag-filter-bar .btn-clear-tag {
            background: none; border: none; cursor: pointer;
            color: #d4836b; font-size: 0.85rem; font-family: inherit;
        }

        /* ===== 今日热门置顶 ===== */
        .top-today-wrap {
            margin-bottom: 16px; display: none;
        }
        .top-today-inner {
            background: linear-gradient(135deg, #fff5ee, #ffece0);
            border-radius: 18px; padding: 14px 16px;
            border: 1px solid #ffe0d0;
        }
        .top-today-title {
            font-weight: 700; font-size: 0.95rem; color: #c06a3e;
            margin-bottom: 10px; display: flex; align-items: center; gap: 6px;
        }
        .top-today-item {
            display: flex; align-items: center; gap: 10px;
            padding: 9px 12px; background: #fff;
            border-radius: 12px; cursor: pointer;
            transition: all 0.2s ease; margin-bottom: 6px;
            border: 1px solid transparent;
        }
        .top-today-item:last-child { margin-bottom: 0; }
        .top-today-item:hover {
            transform: translateX(4px);
            border-color: #ffe0d0;
            box-shadow: 0 2px 12px rgba(255,154,118,0.1);
        }
        .top-today-rank {
            font-size: 1.3rem; flex-shrink: 0; width: 28px; text-align: center;
        }
        .top-today-preview {
            flex: 1; min-width: 0; font-size: 0.85rem;
            color: #6b5645; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
        }
        .top-today-time {
            flex-shrink: 0; font-size: 0.72rem; color: #c4b0a0;
        }
        .top-today-likes {
            flex-shrink: 0; display: flex; align-items: center; gap: 2px;
            font-weight: 600; font-size: 0.82rem;
        }

        /* ===== 帖子卡片（萌系） ===== */
        .post-card {
            background: var(--kawaii-card); border-radius: 20px;
            padding: 22px 26px; margin-bottom: 16px;
            box-shadow: 0 2px 16px rgba(0,0,0,0.04);
            border: 1px solid #f5ece4;
            transition: all 0.3s ease;
        }
        .post-card:hover {
            box-shadow: var(--kawaii-hover);
            transform: translateY(-2px);
            border-color: #ffe0d0;
        }
        .post-card.pinned-card {
            border-left: 3px solid var(--kawaii-peach);
        }
        .post-card.new-post {
            animation: slideInPost 0.5s ease-out;
            background: #fffaf7;
        }
        @keyframes slideInPost {
            from { opacity: 0; transform: translateY(-20px); max-height: 0; }
            to   { opacity: 1; transform: translateY(0); max-height: 500px; }
        }

        .post-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
        .post-avatar {
            width: 38px; height: 38px; border-radius: 50%;
            background: linear-gradient(135deg, #ffb8a4, #ff9a76);
            display: flex; align-items: center; justify-content: center;
            color: white; font-size: 0.85rem; font-weight: bold;
            flex-shrink: 0;
            box-shadow: 0 2px 8px rgba(255,154,118,0.2);
        }
        .post-avatar.anon { background: #c4b0a0; }
        .post-avatar-img {
            width: 38px; height: 38px; border-radius: 50%;
            object-fit: cover; flex-shrink: 0;
            box-shadow: 0 2px 8px rgba(255,154,118,0.2);
        }
        .post-user { font-weight: 600; color: #6b4a30; font-size: 0.95rem; }
        .post-time { font-size: 0.78rem; color: #c4b0a0; }
        .pinned-badge {
            display: inline-block;
            background: linear-gradient(135deg, #ff9a76, #ff7a50);
            color: #fff; font-size: 0.68rem; padding: 1px 8px;
            border-radius: 10px; margin-left: 4px; vertical-align: middle;
        }
        .post-content {
            color: #5c4a3a; line-height: 1.75; margin-bottom: 14px;
            white-space: pre-wrap; word-break: break-word;
        }

        /* 图片网格 */
        .post-img-grid { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0; }
        .post-img-grid img {
            max-width: 150px; max-height: 120px; object-fit: cover;
            border-radius: 12px; border: 1px solid #f5ece4; cursor: pointer;
            transition: opacity 0.2s;
        }
        .post-img-grid img:hover { opacity: 0.85; }

        /* 帖子标签 */
        .post-tags { display: flex; flex-wrap: wrap; gap: 2px; margin-bottom: 10px; margin-top: -4px; }

        /* 帖子底部操作 */
        .post-footer { display: flex; gap: 12px; align-items: center; flex-wrap: nowrap; margin-left: auto; }
        .post-action {
            display: flex; align-items: center; gap: 5px;
            color: #b8a090; font-size: 0.85rem; cursor: pointer;
            transition: all 0.2s ease; padding: 6px 12px; border-radius: 16px;
            border: none; background: none; font-family: inherit;
        }
        .post-action:hover { color: var(--kawaii-peach); background: #fff5ee; }
        .post-action.liked { color: var(--like-color); }
        .post-action.liked i { animation: heartBeat 0.4s; }
        .post-action.pinned { color: var(--orange-main); }
        @keyframes heartBeat {
            0%,100% { transform: scale(1); } 30% { transform: scale(1.3); } 60% { transform: scale(0.9); }
        }
        .post-action:focus-visible { outline: 2px solid var(--kawaii-peach); outline-offset: 2px; }
        /* 收藏按钮 */
        .post-action.bookmarked { color: var(--fav-color); }
        .post-action.bookmarked i { animation: bookmarkPop 0.3s ease; }
        @keyframes bookmarkPop {
            0% { transform: scale(1); } 50% { transform: scale(1.4); } 100% { transform: scale(1); }
        }

        /* 收藏夹入口链接 */
        .fav-link {
            display: inline-flex; align-items: center; gap: 4px;
            margin-top: 8px; font-size: 0.82rem; color: #d4b8a8;
            text-decoration: none; transition: color 0.2s;
        }
        .fav-link:hover { color: #f59e0b; }

        /* ===== 点赞粒子 ===== */
        .like-particle {
            position: fixed; pointer-events: none; z-index: 999;
            font-size: 1rem; animation: particleFly 0.7s ease-out forwards;
        }
        @keyframes particleFly {
            0%   { opacity: 1; transform: translate(0, 0) scale(0.5); }
            50%  { opacity: 0.8; transform: translate(var(--px), var(--py)) scale(1.2); }
            100% { opacity: 0; transform: translate(var(--px2), var(--py2)) scale(0.3); }
        }

        /* ===== 评论区 ===== */
        .comments-section {
            margin-top: 14px; padding-top: 14px;
            border-top: 1px solid #f5ece4; display: none;
        }
        .comments-section.open { display: block; }
        .comment {
            padding: 10px 14px; margin: 6px 0;
            background: #fffaf7; border-radius: 12px; font-size: 0.9rem;
        }
        .comment .c-user { font-weight: 600; color: #8b6b50; }
        .comment .c-text { color: #6b5645; margin-left: 5px; white-space: pre-wrap; word-break: break-word; overflow-wrap: break-word; }
        .comment .c-time { font-size: 0.7rem; color: #c4b0a0; }
        .comment-locked { border-left: 3px solid #e8a090; padding-left: 10px; }
        .comment.is-mine { border-left: 3px solid var(--kawaii-peach); }
        .comment.is-deleted { opacity: 0.5; background: #f9f6f3; font-style: italic; }
        .comment .reply-btn {
            background: none; border: none; color: #c4b0a0; font-size: 0.78rem;
            cursor: pointer; padding: 2px 8px; font-family: inherit;
            transition: color 0.2s;
        }
        .comment .reply-btn:hover { color: var(--kawaii-peach); }
        .cmt-like-btn {
            display: flex; align-items: center; gap: 5px;
            color: #b8a090; font-size: 0.85rem; cursor: pointer;
            transition: all 0.2s ease; padding: 6px 12px; border-radius: 16px;
            border: none; background: none; font-family: inherit;
        }
        .cmt-like-btn:hover { color: var(--kawaii-peach); background: #fff5ee; }
        .cmt-like-btn.liked { color: var(--like-color); }
        .cmt-like-btn.liked i { animation: heartBeat 0.4s; }
        /* 举报按钮 */
        .post-action.report-action,
        .cmt-like-btn.report-action { color: #c9b8a8; }
        .post-action.report-action:hover,
        .cmt-like-btn.report-action:hover { color: var(--kawaii-peach); }
        .post-action.report-action.reported,
        .cmt-like-btn.report-action.reported { opacity: .45; color: #d6c8ba; cursor: not-allowed; }
        .comment .cmt-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 4px; }

        /* 二级回复 */
        .replies-section { margin-left: 20px; margin-top: 4px; }
        .reply-item {
            padding: 6px 10px; margin: 2px 0; background: #fffaf7;
            border-radius: 10px; font-size: 0.85rem;
        }
        .reply-item .r-user { font-weight: 600; color: #8b6b50; }
        .reply-item .r-reply-to { color: var(--kawaii-peach); }
        .reply-item .r-text { color: #6b5645; white-space: pre-wrap; word-break: break-word; overflow-wrap: break-word; }
        .reply-item .r-time { font-size: 0.68rem; color: #c4b0a0; }
        .reply-body { margin-bottom: 2px; }
        .reply-actions { display: flex; align-items: center; gap: 6px; margin-top: 4px; justify-content: flex-end; }
        .reply-actions .cmt-like-btn { font-size: 0.78rem; padding: 2px 8px; border-radius: 10px; }
        .reply-actions .reply-btn {
            background: none; border: none; color: #c4b0a0; font-size: 0.78rem;
            cursor: pointer; padding: 2px 8px; font-family: inherit; transition: color 0.2s;
        }
        .reply-actions .reply-btn:hover { color: var(--kawaii-peach); }
        .reply-actions .del-cmt {
            background: none; border: none; color: #e8a090; font-size: 0.75rem;
            cursor: pointer; padding: 2px 6px; margin-left: auto;
        }
        .view-replies-btn {
            background: none; border: none; color: var(--kawaii-peach); font-size: 0.78rem;
            cursor: pointer; padding: 4px 8px; font-family: inherit; font-weight: 500;
        }
        .view-replies-btn:hover { text-decoration: underline; }

        /* 评论排序 */
        .comment-sort-bar {
            display: flex; gap: 12px; margin-bottom: 10px;
            font-size: 0.82rem; color: #c4b0a0;
        }
        .comment-sort-bar span {
            cursor: pointer; padding: 2px 4px; transition: color 0.2s;
        }
        .comment-sort-bar span:hover { color: var(--kawaii-peach); }
        .comment-sort-bar span.active { color: var(--kawaii-peach); font-weight: 600; }

        /* 回复输入框 */
        .reply-input-wrap {
            display: flex; gap: 6px; margin-top: 6px; margin-left: 20px;
        }
        .reply-input-wrap input {
            flex: 1; padding: 7px 12px; border: 2px solid #f0ddd0;
            border-radius: 18px; font-size: 0.82rem; font-family: inherit;
            background: #fff; transition: border-color 0.3s;
        }
        .reply-input-wrap input:focus { border-color: var(--kawaii-peach); outline: none; }
        .reply-input-wrap button {
            padding: 6px 14px; background: var(--kawaii-peach); color: #fff;
            border: none; border-radius: 18px; cursor: pointer; font-size: 0.8rem;
            font-family: inherit; transition: all 0.2s; white-space: nowrap;
        }
        .reply-input-wrap button:hover { background: #ff8a5e; }
        .reply-input-wrap button:disabled { background: #ddd; cursor: not-allowed; }

        /* 评论骨架 */
        .cmt-skeleton { display: flex; gap: 10px; padding: 10px 0; }
        .cmt-sk-avatar { width: 30px; height: 30px; border-radius: 50%; background: #f0e8e0; }
        .cmt-sk-body { flex: 1; }
        .cmt-sk-name { width: 60px; height: 11px; background: #f0e8e0; border-radius: 5px; margin-bottom: 6px; }
        .cmt-sk-text { width: 85%; height: 10px; background: #f5f0ea; border-radius: 5px; }

        .comment-form { display: flex; gap: 8px; margin-top: 10px; }
        .comment-form input {
            flex: 1; padding: 10px 14px; border: 2px solid #f0ddd0;
            border-radius: 24px; font-size: 0.9rem; font-family: inherit;
            background: #fff; transition: border-color 0.3s;
        }
        .comment-form input:focus {
            border-color: var(--kawaii-peach); outline: none;
            box-shadow: 0 0 0 4px rgba(255,154,118,0.06);
        }
        .comment-form button {
            padding: 8px 18px; background: var(--kawaii-peach);
            color: white; border: none; border-radius: 24px; cursor: pointer;
            font-size: 0.85rem; font-family: inherit; transition: all 0.2s;
        }
        .comment-form button:hover { background: #ff8a5e; }
        .comment-form button:disabled { background: #ddd; cursor: not-allowed; }

        .collapse-comments-btn {
            display: block; text-align: center; margin-top: 8px;
            color: #c4b0a0; font-size: 0.82rem; cursor: pointer;
            padding: 4px 12px; border-radius: 12px; border: none;
            background: none; font-family: inherit; transition: all 0.2s;
        }
        .collapse-comments-btn:hover { color: var(--kawaii-peach); background: #fff5ee; }

        /* 评论内联编辑 */
        .comment-edit-input { width: 100%; padding: 8px 10px; border: 2px solid var(--kawaii-peach); border-radius: 10px; font-size: 0.88rem; font-family: inherit; margin-top: 4px; box-sizing: border-box; }
        .comment.editing textarea { width: 100%; padding: 8px 10px; border: 2px solid var(--kawaii-peach); border-radius: 10px; font-size: 0.88rem; font-family: inherit; margin: 4px 0; box-sizing: border-box; }

        /* ===== 浮动写心声按钮 (FAB) ===== */
        .fab-write {
            position: fixed; bottom: 32px; right: 28px; z-index: 100;
            width: 56px; height: 56px; border-radius: 50%;
            background: linear-gradient(135deg, #ffb8a4, #ff9a76);
            color: #fff; display: flex; align-items: center; justify-content: center;
            font-size: 1.5rem; text-decoration: none;
            box-shadow: 0 4px 20px rgba(255,154,118,0.3);
            animation: fabBreathe 3s ease-in-out infinite;
            transition: transform 0.2s;
        }
        .fab-write:hover {
            transform: scale(1.08);
            box-shadow: 0 6px 28px rgba(255,154,118,0.4);
        }
        .fab-write:active {
            transform: scale(0.9);
            transition: transform 0.1s ease;
        }
        @keyframes fabBreathe {
            0%,100% { box-shadow: 0 4px 20px rgba(255,154,118,0.3); }
            50% { box-shadow: 0 6px 32px rgba(255,154,118,0.45); }
        }

        /* ===== 骨架屏 ===== */
        .skeleton-card {
            background: white; border-radius: 20px; padding: 20px 24px;
            margin-bottom: 16px; box-shadow: 0 2px 12px rgba(0,0,0,0.03);
            border: 1px solid #f5ece4;
        }
        .sk-line {
            height: 14px; border-radius: 8px; margin-bottom: 10px;
            background: linear-gradient(90deg, #f0e8e0 25%, #f8f2ec 50%, #f0e8e0 75%);
            background-size: 200% 100%; animation: shimmer 1.5s ease-in-out infinite;
        }
        .sk-line.sk-short { width: 50%; }
        .sk-line.sk-mid { width: 75%; }
        .sk-line.sk-title { width: 35%; height: 16px; }
        .sk-row { display: flex; gap: 20px; margin-top: 14px; }
        .sk-row .sk-line { width: 55px; height: 12px; }
        @keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

        /* ===== 空状态 ===== */
        .empty-state {
            text-align: center; padding: 60px 20px; color: var(--kawaii-soft);
        }
        .empty-state .empty-icon { font-size: 3.5rem; margin-bottom: 15px; }
        .empty-state p { font-size: 1rem; margin-bottom: 4px; color: #6b5645; }
        .empty-state .sub { font-size: 0.85rem; color: #c4b0a0; }

        /* ===== 管理按钮 ===== */
        .treehole-admin-btn {
            display: inline-flex; align-items: center; gap: 6px;
            margin-top: 6px; padding: 6px 16px;
            border: 2px solid #ffe0d0; border-radius: 24px;
            color: #d4836b; font-size: 0.82rem; font-weight: 500;
            text-decoration: none; transition: all 0.2s ease;
            background: #fffaf7;
        }
        .treehole-admin-btn:hover { background: #fff5ee; border-color: var(--kawaii-peach); transform: translateY(-1px); }

        /* ===== 分页 ===== */
        #treeholePagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
        #treeholePagination button {
            padding: 6px 14px; border: 1px solid #f0ddd0; border-radius: 20px;
            background: white; cursor: pointer; font-family: inherit; font-size: 0.85rem;
            color: #6b5645; transition: all 0.2s;
        }
        #treeholePagination button:hover:not(:disabled) { border-color: var(--kawaii-peach); color: var(--kawaii-peach); }
        #treeholePagination button:disabled { opacity: 0.4; cursor: not-allowed; }

        /* ===== 评论分页 ===== */
        .comment-pagination {
            display: flex; justify-content: center; align-items: center; gap: 8px;
            margin-top: 14px; padding-top: 10px; border-top: 1px dashed #f3e3d6; flex-wrap: wrap;
        }
        .comment-pagination button {
            padding: 4px 12px; border: 1px solid #f0ddd0; border-radius: 20px;
            background: white; cursor: pointer; font-family: inherit; font-size: 0.8rem;
            color: #6b5645; transition: all 0.2s;
        }
        .comment-pagination button:hover:not(:disabled) { border-color: var(--kawaii-peach); color: var(--kawaii-peach); }
        .comment-pagination button:disabled { opacity: 0.4; cursor: not-allowed; }
        .comment-pagination span { font-size: 0.8rem; color: #a88d7a; }

        /* ===== 单帖详情页 ===== */
        .detail-topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
        .detail-back-btn {
            padding: 8px 18px; border: 1px solid #f0ddd0; border-radius: 20px;
            background: white; cursor: pointer; font-family: inherit; font-size: 0.85rem;
            color: #6b5645; transition: all 0.2s;
        }
        .detail-back-btn:hover { border-color: var(--kawaii-peach); color: var(--kawaii-peach); }
        /* topbar 写心声按钮：恢复渐变胶囊，尺寸与返回按钮均衡 */
        .detail-topbar .write-heart-btn {
            padding: 10px 22px; font-size: 0.88rem;
        }
        .detail-loading { text-align: center; color: #c4b0a0; font-size: 0.9rem; padding: 48px 0; }
        .detail-loading i { margin-right: 6px; color: var(--kawaii-peach); }
        .detail-error { text-align: center; color: var(--kawaii-soft); font-size: 0.95rem; padding: 60px 20px; }
        .detail-error .err-icon { font-size: 3.5rem; display: block; margin-bottom: 14px; }
        .detail-error .err-title { font-size: 1rem; color: #6b5645; margin-bottom: 4px; }
        .detail-error .err-sub { font-size: 0.85rem; color: #c4b0a0; margin-bottom: 16px; }
        .detail-error .err-btn {
            display: inline-block; padding: 9px 24px;
            background: linear-gradient(135deg, #ffb8a4, #ff9a76);
            color: #fff; text-decoration: none; font-size: 0.88rem; font-weight: 600;
            border-radius: 24px; box-shadow: 0 4px 18px rgba(255,154,118,0.25);
            transition: all 0.3s ease;
        }
        .detail-error .err-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 24px rgba(255,154,118,0.35);
            color: #fff;
        }

        /* ===== 评论区头部（软渐变条 + 标题 + 数量徽记 + 排序） ===== */
        .comments-header {
            display: flex; align-items: center; justify-content: space-between;
            gap: 10px; padding: 10px 14px; margin-bottom: 10px;
            background: linear-gradient(135deg, #fff5ee, #ffefe5);
            border: 1px solid #ffe0d0; border-radius: 14px; flex-wrap: wrap;
        }
        .comments-header-title {
            display: inline-flex; align-items: center; gap: 8px;
            font-size: 1.05rem; font-weight: 700; color: #8b5a3c;
        }
        .comments-header-title .comments-count {
            background: linear-gradient(135deg, #ffb8a4, #ff9a76);
            color: #fff; font-size: 0.72rem; font-weight: 600;
            padding: 1px 9px; border-radius: 10px;
        }
        .comments-header .comment-sort-bar { margin-bottom: 0; }

        /* ===== 空评论 ===== */
        .comments-empty {
            text-align: center; color: #c4b0a0; font-size: 0.82rem; padding: 14px 0;
        }
        .comments-empty .ce-icon { font-size: 1.6rem; display: block; margin-bottom: 4px; }

        /* ===== 被拒图片占位 ===== */
        .img-rejected {
            display: flex; align-items: center; justify-content: center;
            width: 150px; height: 120px; box-sizing: border-box;
            background: #fffaf7; border-radius: 12px; border: 1px solid #f5ece4;
            color: #c4b0a0; font-size: 0.75rem; text-align: center; padding: 10px;
        }
        .img-rejected i { display: block; font-size: 1.2rem; margin-bottom: 4px; }

        /* ===== 评论小样式类 ===== */
        .r-reply-word { color: #8b7b6b; }

        /* 单帖页弱化卡片 hover 位移 */
        body.detail-page .post-card:hover { transform: none; }
        /* 详情页 .page-header 自带 85px 顶距让位导航，容器仅留常规顶部留白 */
        body.detail-page .container { padding-top: 30px; }

        /* ===== 编辑弹窗 ===== */
        #editPostModal.show { display: flex !important; }

        /* ===== 响应式 ===== */
        @media (max-width: 768px), (orientation: landscape) and (max-height: 480px) and (max-width: 1024px) {
            .write-heart-btn { padding: 11px 26px; font-size: 0.92rem; }
            .container { padding: 70px 14px 100px; }
            .post-card { padding: 16px 18px; border-radius: 16px; }
            .post-footer { gap: 10px; }
            .post-action { padding: 6px 8px; font-size: 0.8rem; }
            .comment-form { flex-direction: column; }
            .mobile-filter-toggle {
                display: flex; width: 100%; align-items: center; justify-content: space-between;
                margin-bottom: 10px; padding: 10px 14px; border: 1px solid #f0ddd0;
                border-radius: 14px; background: #fff; color: var(--kawaii-warm);
                font: 600 0.86rem/1.2 inherit; cursor: pointer;
            }
            .mobile-filter-toggle i { color: var(--kawaii-peach); transition: transform .2s ease; }
            .mobile-filter-toggle[aria-expanded="true"] i { transform: rotate(180deg); }
            .treehole-toolbar { display: none !important; flex-direction: column; align-items: stretch; flex-wrap: nowrap; padding: 12px; border-radius: 14px; background: #fff8f4; }
            .treehole-toolbar.is-mobile-open { display: flex !important; }
            .treehole-toolbar .search-input-wrap,
            .treehole-toolbar .toolbar-date,
            .treehole-toolbar .btn-search,
            .treehole-toolbar .btn-clear { width: 100%; }
            #treeholePagination { gap: 4px; }
            #treeholePagination button { padding: 4px 10px; font-size: 0.78rem; }
            .fab-write { bottom: 24px; right: 18px; width: 50px; height: 50px; font-size: 1.3rem; }
            .post-header { flex-wrap: wrap; }
        }

        /* ===== 帖子右上角三点菜单 ===== */
        .post-menu-wrap { position: relative; margin-left: 4px; flex-shrink: 0; }
        .post-menu-btn {
            background: none; border: none; padding: 6px 8px;
            color: #c4b0a0; font-size: 1.05rem; cursor: pointer;
            border-radius: 8px; line-height: 1; transition: all var(--trans-fast);
        }
        .post-menu-btn:hover, .post-menu-btn:active { background: #fff5ee; color: var(--kawaii-peach); }
        .post-menu-dropdown {
            position: absolute; top: calc(100% + 6px); right: 0;
            display: none; flex-direction: column; gap: 2px;
            min-width: 132px; padding: 6px; background: #fff;
            border: 1px solid #f0ddd0; border-radius: 14px;
            box-shadow: 0 8px 24px rgba(139,123,107,0.18); z-index: 60;
        }
        .post-menu-dropdown.open { display: flex; }
        .post-menu-item {
            display: flex; align-items: center; gap: 8px;
            width: 100%; text-align: left; padding: 9px 12px;
            border: none; background: transparent; color: #6b4a30;
            font-family: inherit; font-size: 0.88rem; cursor: pointer;
            border-radius: 10px; transition: background 0.15s;
        }
        .post-menu-item:hover { background: #fff5ee; }
        .post-menu-item.danger { color: #e06c5a; }
        .post-menu-item.danger:hover { background: #fdeeea; }

        /* ===== 长按删除：消除触摸延迟，禁用原生菜单/文本选择 ===== */
        .post-card, .comment, .reply-item { touch-action: manipulation; }
        @media (hover: none) and (pointer: coarse) {
            .post-card, .comment, .reply-item {
                -webkit-touch-callout: none;
                -webkit-user-select: none;
                user-select: none;
            }
        }
