.hb-admin-tools {
    display: inline-block;
    margin-left: 0;
    font-size: 12px;
    vertical-align: middle;
}

.hb-admin-tools a {
    margin-right: 6px;
    color: #333;
    font-weight: 700;
}

.hb-admin-tools a:hover {
    color: #000;
    text-decoration: none;
}

.hb-label {
    margin-left: 4px;
    vertical-align: middle;
}

.hb-edit-box {
    margin: 8px 0 12px;
}

.hb-edit-box textarea {
    min-height: 90px;
    resize: vertical;
}

.hb-post-admin {
    margin: -36px 0 10px 120px;
    font-size: 12px;
    line-height: 1.8;
    color: #333;
    white-space: normal;
    text-align: right;
}

.hb-post-admin .hb-admin-tools {
    margin-left: 0;
}

.hb-ip-line {
    color: #333;
    margin-right: 8px;
}

.hb-ban-form {
    display: inline-block;
    margin: 0 8px 0 0;
}

.hb-ban-form input {
    display: inline-block;
    width: 58px;
    height: 24px;
    padding: 2px 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

@media (max-width: 768px) {
    .hb-post-admin {
        margin: 6px 0 10px 0;
        text-align: left;
        white-space: normal;
    }
}

.pager li + li {
    margin-left: 10px;
}

/* 顶部右侧头像前显示昵称 */
.hb-nav-user {
    display: flex !important;
    align-items: center;
    gap: 8px;
}

.hb-nav-user-name {
    color: #333;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 首页缩略图悬停放大 */
.hb-index-body {
    overflow: visible;
}

#dagonge {
    overflow: visible;
}

.hb-index-body #dagonge {
    width: 500px;
    max-width: 100%;
}

.hb-index-body #dagonge a {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.hb-index-body #dagonge img#gonge {
    width: 120px;
    height: 90px;
    flex: 0 0 120px;
    object-fit: cover;
    margin: 0;
    border-radius: 5px;
}

#dagonge img#gonge {
    position: relative;
    z-index: 1;
    cursor: zoom-in;
}

.hb-img-preview {
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 9999;
    max-width: 520px;
    max-height: 68vh;
    transform: translate(-50%, -50%);
    border-radius: 8px;
    box-shadow: 0 12px 38px rgba(0, 0, 0, 0.32);
    background: #fff;
    pointer-events: none;
    display: none;
}

.hb-img-preview.is-show {
    display: block;
}
