.comments-section {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    padding: 24px 28px 28px;
    backdrop-filter: blur(8px);
    margin-top: 28px;
    width: 100%;
    transition: border-color 0.2s;
}
.comments-section:hover {
    border-color: rgba(255, 255, 255, 0.10);
}
.comments-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.comments-title {
    font-size: 18px;
    font-weight: 600;
    color: #e6edf3;
    letter-spacing: 0.3px;
}
.comments-title i {
    margin-right: 8px;
    color: #55d88b;
}
.comments-count {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.06);
    padding: 1px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-left: auto;
    white-space: nowrap;
}
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
    min-height: 60px;
}
.comment-form {
    margin-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 18px;
    position: relative;   /* ★ 让表情面板以此为定位基准 */
}
.comment-form-inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.comment-form-inner textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: #e6edf3;
    font-size: 14px;
    line-height: 1.7;
    resize: vertical;
    min-height: 72px;
    max-height: 180px;
    outline: none;
    transition: border-color 0.25s, background 0.25s;
    font-family: inherit;
}
.comment-form-inner textarea::placeholder {
    color: rgba(255, 255, 255, 0.25);
}
.comment-form-inner textarea:focus {
    border-color: rgba(85, 216, 139, 0.35);
    background: rgba(255, 255, 255, 0.06);
}
.comment-form-inner textarea:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.comment-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.char-counter {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.25);
    transition: color 0.25s;
}
.char-counter.warning {
    color: #f1c40f;
}
.char-counter.danger {
    color: #ff6b6b;
}
.btn-submit {
    padding: 8px 28px;
    border: none;
    border-radius: 999px;
    background: #55d88b;
    color: #111;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.btn-submit:hover:not(:disabled) {
    background: #6ae09c;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(85, 216, 139, 0.20);
}
.btn-submit:active:not(:disabled) {
    transform: scale(0.96);
}
.btn-submit:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}
.login-prompt {
    display: none;
    text-align: center;
    padding: 12px 0 4px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
}
.login-prompt a {
    color: #55d88b;
    text-decoration: none;
    font-weight: 500;
}
.login-prompt a:hover {
    text-decoration: underline;
}
.comment-top {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.2s;
}
.comment-top:hover {
    background: rgba(255, 255, 255, 0.04);
}
.comment-top .comment-main {
    display: flex;
    gap: 14px;
}
.comment-top .comment-floor {
    flex-shrink: 0;
    min-width: 48px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.25);
    padding-top: 2px;
    text-align: right;
}
.comment-top .comment-floor.special {
    color: #f5a623;
}
.comment-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.2s;
}
.comment-avatar:hover {
    transform: scale(1.05);
}
.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.comment-avatar a {
    display: block;
    width: 100%;
    height: 100%;
}
.comment-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.comment-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.comment-meta a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}
.comment-meta a:hover {
    color: #55d88b;
}
.comment-author {
    font-weight: 600;
    font-size: 14px;
    color: #e6edf3;
}
.comment-time {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    white-space: nowrap;
}
.comment-content {
    font-size: 14px;
    line-height: 1.7;
    color: #d0d6dc;
    word-break: break-word;
    white-space: pre-wrap;
}
.comment-content:empty::before {
    content: "（空内容）";
    color: rgba(255, 255, 255, 0.2);
    font-style: italic;
}
.comment-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}
.comment-actions .btn-reply {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.3);
    font-size: 13px;
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 6px;
    transition: all 0.2s;
}
.comment-actions .btn-reply:hover {
    color: #55d88b;
    background: rgba(85, 216, 139, 0.10);
}
.comment-actions .btn-report {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.3);
    font-size: 16px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 6px;
    transition: all 0.2s;
    line-height: 1;
}
.comment-actions .btn-report:hover {
    color: #f5a623;
    background: rgba(245, 166, 35, 0.10);
}
.comment-actions .btn-delete {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.2);
    font-size: 16px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 6px;
    transition: all 0.2s;
    line-height: 1;
}
.comment-actions .btn-delete:hover {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.10);
}
.comment-actions .btn-delete:active {
    transform: scale(0.90);
}
.comment-children {
    margin-left: 62px;
    display: none;
    flex-direction: column;
    gap: 10px;
    padding-top: 8px;
    border-top: 1px dashed rgba(255, 255, 255, 0.06);
}
.comment-children.visible {
    display: flex;
}
.comment-child {
    display: flex;
    gap: 12px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border-left: 2px solid rgba(255, 255, 255, 0.06);
}
.comment-child .comment-avatar {
    width: 32px;
    height: 32px;
}
.comment-child .comment-body .comment-author {
    font-size: 13px;
}
.comment-child .comment-body .comment-content {
    font-size: 13px;
}
.comment-child .comment-body .comment-reply-to {
    font-size: 12px;
    color: #f5a623;
    margin-top: 2px;
}
.comment-child .comment-actions .btn-reply {
    font-size: 12px;
}
.btn-view-thread {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.3);
    font-size: 13px;
    cursor: pointer;
    padding: 4px 12px;
    border-radius: 6px;
    transition: all 0.2s;
    margin-left: 62px;
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-view-thread:hover {
    color: #55d88b;
    background: rgba(85, 216, 139, 0.08);
}
.btn-view-thread .arrow {
    transition: transform 0.2s;
    display: inline-block;
}
.btn-view-thread .arrow.open {
    /* transform: rotate(180deg);*/
}
.reply-form-inline {
    display: none;
    margin-top: 8px;
    margin-left: 62px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.reply-form-inline.active {
    display: block;
}
.reply-form-inline textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: #e6edf3;
    font-size: 13px;
    line-height: 1.6;
    resize: vertical;
    min-height: 56px;
    max-height: 120px;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s;
}
.reply-form-inline textarea:focus {
    border-color: rgba(85, 216, 139, 0.35);
    background: rgba(255, 255, 255, 0.06);
}
.reply-form-inline .reply-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 6px;
}
.reply-form-inline .reply-actions button {
    padding: 4px 16px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.reply-form-inline .reply-actions .btn-cancel-reply {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.5);
}
.reply-form-inline .reply-actions .btn-cancel-reply:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}
.reply-form-inline .reply-actions .btn-submit-reply {
    background: #55d88b;
    color: #111;
}
.reply-form-inline .reply-actions .btn-submit-reply:hover:not(:disabled) {
    background: #6ae09c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(85, 216, 139, 0.20);
}
.reply-form-inline .reply-actions .btn-submit-reply:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
}
.comments-loading {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 24px 0;
    color: rgba(255, 255, 255, 0.3);
    font-size: 14px;
}
.loader {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.06);
    border-top-color: #55d88b;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.comments-empty {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 0 20px;
    color: rgba(255, 255, 255, 0.25);
    gap: 6px;
}
.comments-empty .empty-icon {
    font-size: 32px;
}
.comments-empty span:last-child {
    font-size: 14px;
}
.comments-error {
    display: none;
    text-align: center;
    padding: 20px 0;
    color: #ff6b6b;
    font-size: 14px;
}
.comments-error a {
    color: #55d88b;
    text-decoration: none;
    cursor: pointer;
}
.comments-error a:hover {
    text-decoration: underline;
}
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .7);
    backdrop-filter: blur(8px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.modal-overlay.active {
    display: flex;
}
.modal-box {
    background: #1d2229;
    border-radius: 24px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px 36px 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
    border: 1px solid rgba(255, 255, 255, .06);
    position: relative;
}
.modal-box::-webkit-scrollbar { width: 6px; }
.modal-box::-webkit-scrollbar-thumb { background: #3b434d; border-radius: 4px; }
.modal-close {
    position: sticky;
    top: 0;
    float: right;
    background: none;
    border: none;
    color: rgba(255, 255, 255, .4);
    font-size: 28px;
    cursor: pointer;
    transition: .2s;
    z-index: 10;
    line-height: 1;
}
.modal-close:hover {
    color: #fff;
    transform: rotate(90deg);
}
.modal-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    padding-right: 40px;
    color: #f5a623;
}
.modal-title i {
    margin-right: 10px;
}
.modal-footer-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    border-top: 1px solid rgba(255, 255, 255, .06);
    padding-top: 20px;
    margin-top: 16px;
}
.modal-footer-actions .btn {
    padding: 8px 24px;
    border-radius: 10px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
}
.modal-footer-actions .btn-cancel {
    background: rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .5);
}
.modal-footer-actions .btn-cancel:hover {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}
.modal-footer-actions .btn-submit {
    background: #f5a623;
    color: #111;
}
.modal-footer-actions .btn-submit:hover {
    background: #f7b83a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 166, 35, .25);
}
.modal-footer-actions .btn-submit:disabled {
    opacity: .5;
    pointer-events: none;
    transform: none !important;
    box-shadow: none !important;
}
.comment-highlight {
    animation: highlightFade 2s ease;
}
@keyframes highlightFade {
    0% { background: rgba(85, 216, 139, 0.25); }
    100% { background: transparent; }
}

@media (max-width: 600px) {
    .comments-section { padding: 18px 14px 20px; border-radius: 14px; }
    .comments-title { font-size: 16px; }
    .comment-top { padding: 10px 12px; }
    .comment-top .comment-floor { min-width: 36px; font-size: 11px; }
    .comment-avatar { width: 32px; height: 32px; }
    .comment-author { font-size: 13px; }
    .comment-content { font-size: 13px; }
    .comment-children { margin-left: 44px; }
    .btn-view-thread { margin-left: 44px; font-size: 12px; }
    .reply-form-inline { margin-left: 44px; }
    .comment-child .comment-avatar { width: 28px; height: 28px; }
    .modal-box { padding: 20px 16px; }
    .comment-form-inner textarea {
        font-size: 13px;
        padding: 10px 14px;
        min-height: 60px;
    }
    .btn-submit {
        padding: 6px 20px;
        font-size: 13px;
    }
    .comment-form-actions {
        flex-wrap: wrap;
    }
}
@media (max-width: 400px) {
    .comment-top .comment-main { flex-direction: column; gap: 6px; }
    .comment-top .comment-floor { text-align: left; min-width: auto; font-size: 11px; color: rgba(255,255,255,0.2); }
    .comment-top .comment-floor.special { color: #f5a623; }
    .comment-avatar { width: 28px; height: 28px; }
    .comment-actions { margin-left: 0; align-self: flex-end; }
    .comment-children { margin-left: 0; }
    .btn-view-thread { margin-left: 0; }
    .reply-form-inline { margin-left: 0; }
    .modal-box { padding: 16px 12px; }
    .comment-form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .btn-submit {
        width: 100%;
        justify-content: center;
    }
}

/* ===== 表态样式 ===== */
.comment-reactions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 4px;
    position: relative;
}
.comment-reactions .reaction-trigger {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 6px;
    transition: all 0.2s;
    line-height: 1;
    margin-right: 2px;
}
.comment-reactions .reaction-trigger:hover {
    background: rgba(255, 255, 255, 0.08);
}
.reaction-stat {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid transparent;
    border-radius: 16px;
    padding: 2px 8px 2px 6px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}
.reaction-stat:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.10);
}
.reaction-stat .reaction-emoji {
    font-size: 16px;
}
.reaction-stat .reaction-count-num {
    font-size: 12px;
    min-width: 12px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}
.reaction-stat.active {
    background: rgba(85, 216, 139, 0.15);
    border-color: rgba(85, 216, 139, 0.3);
    color: #55d88b;
}
.reaction-stat.active .reaction-count-num {
    color: #55d88b;
}
.reaction-picker {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #1d2229;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 6px 8px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.6);
    z-index: 100;
    white-space: nowrap;
    gap: 4px;
    flex-wrap: wrap;
    min-width: 180px;
    flex-direction: column;
}
.reaction-picker.active {
    display: flex;
}
.reaction-option {
    background: none;
    border: none;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    text-align: left;
}
.reaction-option:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}
.reaction-option .reaction-emoji {
    font-size: 18px;
    width: 24px;
    text-align: center;
}
.reaction-option .reaction-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}
.reaction-option.active {
    background: rgba(85, 216, 139, 0.15);
    color: #55d88b;
}
.reaction-option.active .reaction-label {
    color: #55d88b;
}

/* ===== 置顶样式 ===== */
.comment-top.is-pinned {
    border-left: 3px solid #f5a623;
    background: rgba(245, 166, 35, 0.05);
}
.comment-child.is-pinned {
    border-left: 3px solid #f5a623;
    background: rgba(245, 166, 35, 0.04);
}
.pin-badge {
    font-size: 12px;
    color: #f5a623;
    margin-right: 4px;
    font-weight: 600;
}
.pin-badge i {
    margin-right: 2px;
}
.btn-pin {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.25);
    font-size: 14px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 6px;
    transition: all 0.2s;
    line-height: 1;
}
.btn-pin:hover {
    color: #f5a623;
    background: rgba(245, 166, 35, 0.10);
}
.btn-pin.pinned {
    color: #f5a623;
}
.btn-pin.pinned:hover {
    background: rgba(245, 166, 35, 0.20);
}
/* ===== 分页样式 ===== */
.comments-pagination {
    display: none;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px 0 8px 0;
}
.comments-pagination .page-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    padding: 4px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
    user-select: none;
}
.comments-pagination .page-btn:hover:not(.active):not(.disabled) {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}
.comments-pagination .page-btn.active {
    background: #55d88b;
    color: #111;
    border-color: #55d88b;
}
.comments-pagination .page-btn.disabled {
    opacity: 0.3;
    pointer-events: none;
}
.comments-pagination .page-ellipsis {
    color: rgba(255, 255, 255, 0.3);
    padding: 0 4px;
}
.comments-pagination .page-jump {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
}
.comments-pagination .page-jump input {
    width: 50px;
    padding: 4px 6px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #e6edf3;
    font-size: 13px;
    text-align: center;
}
.comments-pagination .page-jump input:focus {
    border-color: #55d88b;
    outline: none;
}
.comments-pagination .page-jump .page-jump-btn {
    background: rgba(255, 255, 255, 0.06);
    border: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}
.comments-pagination .page-jump .page-jump-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}
/* 子评论分页（内联，更紧凑） */
.comment-children .children-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px 0 4px 0;
}
.comment-children .children-pagination .page-btn {
    font-size: 12px;
    padding: 2px 10px;
}
.comment-children .children-pagination .page-jump input {
    width: 40px;
    font-size: 12px;
    padding: 2px 4px;
}
.comment-children .children-pagination .page-jump .page-jump-btn {
    font-size: 12px;
    padding: 2px 10px;
}

/* ===== 自己的评论 - 表态只读 ===== */
.comment-reactions.readonly .reaction-stat {
    cursor: default;
    opacity: 0.6;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.02);
    border-color: transparent;
}
.comment-reactions.readonly .reaction-stat:hover {
    background: rgba(255, 255, 255, 0.02);
    border-color: transparent;
}
/* ===== 评论中的头衔徽章 ===== */
.user-title-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    padding: 0 8px;
    border-radius: 10px;
    color: #fff;
    line-height: 18px;
    white-space: nowrap;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    margin-left: 4px;
    border: 1px solid rgba(255,255,255,0.1);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    background-color: #55d88b; /* fallback */
}
/* ============================================================
   移动端样式（仅覆盖移动端，不影响桌面）
   ============================================================ */
@media (max-width: 767px) {
    /* 隐藏桌面端元素 */
    .comment-top {
        display: none !important;
    }

    /* 显示移动端元素 */
    .comment-top-mobile {
        display: block !important;
        padding: 12px 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        background: transparent;
    }
    .comment-top-mobile.is-pinned-mobile {
        border-left: 3px solid #f5a623;
        border-bottom: 1px solid rgba(245, 166, 35, 0.2);
    }

    .comment-main-mobile {
        display: flex;
        gap: 12px;
        align-items: flex-start;
    }

    .comment-avatar-mobile {
        flex-shrink: 0;
        width: 44px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .comment-avatar-mobile img {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        object-fit: cover;
        display: block;
        background: rgba(255, 255, 255, 0.06);
    }
    .comment-avatar-mobile .user-title-badge {
        display: block;
        margin-top: 4px;
        font-size: 9px;
        padding: 0 4px;
        max-width: 50px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        line-height: 14px;
        border-radius: 10px;
        text-align: center;
        color: #fff;
        font-weight: 600;
        border: 1px solid rgba(255,255,255,0.1);
    }

    .comment-body-mobile {
        flex: 1;
        min-width: 0;
    }

    .comment-meta-mobile {
        display: flex;
        align-items: center;
        gap: 6px;
        flex-wrap: wrap;
    }
    .comment-meta-mobile a {
        text-decoration: none;
        color: inherit;
    }
    .comment-author-mobile {
        font-weight: 600;
        font-size: 15px;
        color: #e6edf3;
    }
    .comment-meta-mobile .pin-badge {
        font-size: 11px;
        color: #f5a623;
    }
    .comment-meta-mobile .pin-badge i {
        margin-right: 2px;
    }

    .comment-content-mobile {
        font-size: 14px;
        line-height: 1.5;
        color: #d0d6dc;
        word-break: break-word;
        white-space: pre-wrap;
        margin: 2px 0;
    }

    .comment-footer-mobile {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 4px;
    }
    .comment-time-mobile {
        font-size: 12px;
        color: rgba(255, 255, 255, 0.3);
        white-space: nowrap;
    }

    .comment-actions-mobile {
        display: flex;
        gap: 4px;
        align-items: center;
    }
    .comment-actions-mobile button {
        background: none;
        border: none;
        color: rgba(255, 255, 255, 0.5);
        font-size: 18px;
        padding: 4px 6px;
        min-width: 32px;
        min-height: 32px;
        border-radius: 50%;
        cursor: pointer;
        transition: 0.2s;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }
    .comment-actions-mobile button:active {
        background: rgba(255, 255, 255, 0.08);
    }
    .comment-actions-mobile .btn-reply-mobile {
        color: #55d88b;
    }
    .comment-actions-mobile .btn-reaction-mobile {
        color: rgba(255, 255, 255, 0.5);
    }
    .comment-actions-mobile .btn-more-mobile {
        color: rgba(255, 255, 255, 0.4);
        font-size: 20px;
    }

    /* 移动端查看会话按钮 */
    .btn-view-thread-mobile {
        width: 100%;
        margin-top: 6px;
        padding: 8px 0;
        background: rgba(255, 255, 255, 0.04);
        border: none;
        border-radius: 8px;
        color: rgba(255, 255, 255, 0.5);
        font-size: 14px;
        text-align: center;
        display: block;
        cursor: pointer;
        transition: 0.2s;
    }
    .btn-view-thread-mobile:active {
        background: rgba(255, 255, 255, 0.08);
    }

    /* 评论列表间距 */
    .comments-list {
        gap: 0;
        margin-bottom: 0;
        padding: 0;
    }

    /* 评论表单 */
    .comment-form {
        padding: 12px 16px 8px;
        border-top: none;
        background: rgba(255, 255, 255, 0.02);
        margin: 0;
    }
    .comment-form-inner textarea {
        font-size: 15px;
        padding: 10px 14px;
        min-height: 60px;
        border-radius: 10px;
    }
    .comment-form-actions {
        flex-wrap: wrap;
        gap: 6px;
    }
    .btn-submit {
        padding: 8px 20px;
        font-size: 14px;
        min-height: 44px;
        border-radius: 24px;
        flex: 1 1 auto;
    }

    /* 分页 */
    .comments-pagination {
        padding: 8px 16px;
        gap: 4px;
    }
    .comments-pagination .page-btn {
        padding: 6px 12px;
        font-size: 14px;
        min-height: 36px;
        min-width: 36px;
        border-radius: 8px;
    }
    .comments-pagination .page-jump input {
        width: 44px;
        padding: 6px 4px;
        font-size: 14px;
    }
    .comments-pagination .page-jump .page-jump-btn {
        padding: 6px 12px;
        font-size: 14px;
        min-height: 36px;
    }

    /* 空状态 */
    .comments-empty {
        padding: 24px 0;
    }
    .comments-empty .empty-icon {
        font-size: 28px;
    }

    /* 评论区域头部 */
    .comments-section {
        padding: 12px 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
        margin-top: 12px;
        background: transparent;
        backdrop-filter: none;
    }
    .comments-header {
        padding: 0 16px 10px;
        margin-bottom: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }
    .comments-title {
        font-size: 16px;
    }
    .comments-count {
        font-size: 12px;
        padding: 0 12px;
        line-height: 22px;
    }
}

/* ============================================================
   底部抽屉样式（移动端）
   ============================================================ */
.bottom-drawer {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    pointer-events: none;
}
.bottom-drawer.active {
    display: flex;
    pointer-events: auto;
}
.drawer-mask {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.bottom-drawer.active .drawer-mask {
    opacity: 1;
    pointer-events: auto;
}
.drawer-content {
    position: relative;
    background: #1d2229;
    border-radius: 20px 20px 0 0;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    pointer-events: none;
}
.bottom-drawer.active .drawer-content {
    transform: translateY(0);
    pointer-events: auto;
}
.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
    font-weight: 600;
    font-size: 17px;
    color: #e6edf3;
}
.drawer-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.4);
    font-size: 24px;
    cursor: pointer;
    padding: 4px 8px;
    transition: 0.2s;
}
.drawer-close:active {
    transform: scale(0.9);
}
.drawer-body {
    padding: 16px 20px 20px;
    overflow-y: auto;
    flex: 1;
}
.drawer-body::-webkit-scrollbar {
    width: 4px;
}
.drawer-body::-webkit-scrollbar-thumb {
    background: #3b434d;
    border-radius: 4px;
}

/* 表态选择器（移动端） */
#reactionOptions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}
#reactionOptions .reaction-option {
    flex: 1 1 auto;
    min-width: 70px;
    padding: 10px 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 30px;
    font-size: 18px;
    color: #e6edf3;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
#reactionOptions .reaction-option:active {
    background: rgba(85,216,139,0.15);
    border-color: #55d88b;
}
#reactionOptions .reaction-option .count {
    font-size: 14px;
    color: rgba(255,255,255,0.4);
    margin-left: 4px;
}
#reactionOptions .reaction-option.active {
    background: rgba(85,216,139,0.2);
    border-color: #55d88b;
}

/* 更多操作菜单（移动端） */
#actionOptions {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
#actionOptions .action-item {
    padding: 14px 16px;
    border-radius: 12px;
    background: transparent;
    border: none;
    color: #e6edf3;
    font-size: 16px;
    text-align: left;
    cursor: pointer;
    transition: 0.15s;
    display: flex;
    align-items: center;
    gap: 12px;
}
#actionOptions .action-item:active {
    background: rgba(255,255,255,0.06);
}
#actionOptions .action-item.danger {
    color: #ff6b6b;
}
#actionOptions .action-item i {
    width: 24px;
    text-align: center;
    color: rgba(255,255,255,0.4);
}
#actionOptions .action-item.danger i {
    color: #ff6b6b;
}

/* 子评论抽屉（移动端） */
#threadDrawerBody {
    padding: 0 16px 16px;
}
#threadList {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 12px;
}
#threadList .thread-comment {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
#threadList .thread-comment:last-child {
    border-bottom: none;
}
.thread-comment .thread-row {
    display: flex;
    gap: 12px;
}
.thread-comment .thread-avatar {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255,255,255,0.06);
}
.thread-comment .thread-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.thread-comment .thread-body {
    flex: 1;
    min-width: 0;
}
.thread-comment .thread-author {
    font-weight: 600;
    font-size: 14px;
    color: #e6edf3;
}
.thread-comment .thread-content {
    font-size: 14px;
    line-height: 1.4;
    color: #d0d6dc;
    word-break: break-word;
}
.thread-comment .thread-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}
.thread-comment .thread-time {
    font-size: 12px;
    color: rgba(255,255,255,0.3);
}
.thread-comment .thread-actions {
    display: flex;
    gap: 4px;
}
.thread-comment .thread-actions button {
    background: none;
    border: none;
    color: rgba(255,255,255,0.3);
    font-size: 14px;
    padding: 2px 6px;
    cursor: pointer;
}
.thread-comment .thread-actions button:active {
    background: rgba(255,255,255,0.06);
    border-radius: 4px;
}
.thread-comment .thread-actions .btn-reply-thread {
    color: #55d88b;
}
.thread-comment .thread-actions .btn-more-thread {
    font-size: 18px;
    color: rgba(255,255,255,0.4);
}
.thread-comment .thread-actions .btn-more-thread:active {
    background: rgba(255,255,255,0.08);
    border-radius: 4px;
}

.thread-reply-box {
    display: flex;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.06);
    align-items: flex-end;
}
.thread-reply-box textarea {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    background: rgba(255,255,255,0.04);
    color: #e6edf3;
    font-size: 14px;
    resize: none;
    outline: none;
    font-family: inherit;
    min-height: 36px;
    max-height: 80px;
    transition: border-color 0.2s;
}
.thread-reply-box textarea:focus {
    border-color: rgba(85,216,139,0.35);
}
.thread-reply-box button {
    padding: 8px 16px;
    background: #55d88b;
    border: none;
    border-radius: 20px;
    color: #111;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
    min-height: 36px;
}
.thread-reply-box button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.thread-reply-box button:active:not(:disabled) {
    transform: scale(0.95);
}

/* 举报抽屉（移动端） */
#reportDrawer .drawer-body textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    color: #e6edf3;
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
    outline: none;
    font-family: inherit;
}
#reportDrawer .drawer-body textarea:focus {
    border-color: rgba(245,166,35,0.4);
}
.drawer-btn-cancel,
.drawer-btn-submit {
    padding: 8px 20px;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    min-height: 40px;
}
.drawer-btn-cancel {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.5);
}
.drawer-btn-cancel:active {
    background: rgba(255,255,255,0.12);
}
.drawer-btn-submit {
    background: #f5a623;
    color: #111;
}
.drawer-btn-submit:active {
    transform: scale(0.96);
}
.drawer-btn-submit:disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* ============================================================
   IP 属地
   ============================================================ */
.comment-ip,
.comment-ip-mobile {
    display: inline;
    margin-left: 6px;
    padding: 0;
    font-size: 12px;
    line-height: inherit;
    color: rgba(255, 255, 255, 0.28);   /* 比时间戳更淡一点 */
    background: none;
    border: none;
    border-radius: 0;
    vertical-align: baseline;
    white-space: nowrap;
    user-select: none;
}

.comment-ip::before,
.comment-ip-mobile::before {
    content: "IP属地 ";
    opacity: 0.75;
}

/* 移动端再小一档 */
.comment-ip-mobile {
    margin-left: 5px;
    font-size: 11px;
}

/* 子评论里同色，不做特殊处理 */
.comment-child .comment-ip {
    color: rgba(255, 255, 255, 0.25);
}

/* 不再有 hover 提亮 */
.comment-top:hover .comment-ip,
.comment-child:hover .comment-ip {
    color: rgba(255, 255, 255, 0.28);
}

/* ============================================================
   站内表情包
   ============================================================ */

.form-actions-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ---- 表情按钮 ---- */
.btn-emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    padding: 0;
}
.btn-emoji:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.12);
    color: #55d88b;
    border-color: rgba(85, 216, 139, 0.35);
    transform: translateY(-1px);
}
.btn-emoji:active:not(:disabled) {
    transform: scale(0.94);
}
.btn-emoji:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* ---- 表情面板 ---- */
.emoji-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 30;
    width: 460px;
    max-width: 94vw;
    max-height: 420px;
    background: #1d2229;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.65);
    padding: 14px;
    display: flex;
    flex-direction: column;
    animation: emojiPanelIn 0.15s ease;
}
.emoji-panel[hidden] {
    display: none;
}
@keyframes emojiPanelIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.emoji-panel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 10px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;              /* ★ 关键：让 flex 子项能正确触发 overflow */
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: #3b434d transparent;
}
/* 滚动条（Chrome / Edge / Safari） */
.emoji-panel-grid::-webkit-scrollbar {
    width: 8px;
}
.emoji-panel-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
}
.emoji-panel-grid::-webkit-scrollbar-thumb {
    background: #3b434d;
    border-radius: 4px;
    border: 2px solid #1d2229;
}
.emoji-panel-grid::-webkit-scrollbar-thumb:hover {
    background: #4d5663;
}

.emoji-panel-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    padding: 6px;
    transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.emoji-panel-item:hover {
    background: rgba(85, 216, 139, 0.10);
    border-color: rgba(85, 216, 139, 0.35);
}
.emoji-panel-item:active {
    transform: scale(0.92);
}
.emoji-panel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    pointer-events: none;
}

.emoji-panel-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 13px;
    padding: 20px 0;
}

/* ---- 评论里渲染出来的表情图片 ----
   ★ 尺寸从 1.6em 放大到 2.6em，明显比正文大
   ★ vertical-align 用负值让表情"下沿"对齐文字基线附近
   ★ 用 em 单位跟随字体大小自动缩放（顶层 14px，子评论 13px）
*/
/* 表情尺寸：改这里即可全局生效 */
:root {
    --emoji-size: 150px;           /* 桌面端：顶层评论里的表情高度 */
    --emoji-size-child: 100px;     /* 桌面端：子评论里的表情高度 */
    --emoji-size-mobile: 30px;    /* 移动端所有场景统一用这个 */
}

.comment-emoji {
    display: inline-block;
    height: var(--emoji-size);
    width: auto;
    max-width: none;
    /* vertical-align 用固定像素微调，让表情下沿贴住文字基线附近 */
    vertical-align: calc(var(--emoji-size) * -0.28);
    margin: 0 3px;
    user-select: none;
    pointer-events: none;
    object-fit: contain;
}

/* 子评论里的表情稍小一点（可自行改） */
.comment-child .comment-emoji,
.thread-comment .comment-emoji {
    height: var(--emoji-size-child);
    vertical-align: calc(var(--emoji-size-child) * -0.28);
}

/* ---- 移动端适配 ---- */
@media (max-width: 767px) {
    .emoji-panel {
        width: 100%;
        left: 0;
        right: 0;
        max-width: none;
        max-height: 320px;
        border-radius: 14px;
        padding: 12px;
    }
    .emoji-panel-grid {
        grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
        gap: 8px;
    }
    .btn-emoji {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    /* 移动端表情稍小一档，避免撑破窄屏 */
    .comment-emoji {
        height: 2.2em;
        vertical-align: -0.55em;
        margin: 0 2px;
    }
}