/* 评论弹窗 */
.comment-modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.75);
    z-index: 99998;
}

.comment-modal-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    max-width: 90%;
    height: 80vh;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.comment-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.comment-modal-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    margin-right: 12px;
}

.comment-modal-box .comment-modal-close {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    border-radius: 50%;
    border: none;
    outline: none;
    background: rgba(0,0,0,0.05);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
    flex-shrink: 0;
    -webkit-appearance: none;
    appearance: none;
    position: relative;
}

.comment-modal-box .comment-modal-close::before,
.comment-modal-box .comment-modal-close::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 2px;
    background: #666;
    border-radius: 1px;
}

.comment-modal-box .comment-modal-close::before {
    transform: rotate(45deg);
}

.comment-modal-box .comment-modal-close::after {
    transform: rotate(-45deg);
}

.comment-modal-box .comment-modal-close:hover {
    background: rgba(0,0,0,0.1);
}

.comment-modal-box .comment-modal-close:hover::before,
.comment-modal-box .comment-modal-close:hover::after {
    background: #333;
}

.comment-modal-body {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.comment-frame {
    width: 100%;
    height: 100%;
    border: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    z-index: 10;
}

.loading-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 28px;
}

.loading-bars span {
    width: 4px;
    height: 8px;
    border-radius: 2px;
    background: var(--be-hover, #3498db);
    animation: barWave 1.2s ease-in-out infinite;
}

.loading-bars span:nth-child(1) { animation-delay: 0s; }
.loading-bars span:nth-child(2) { animation-delay: 0.1s; }
.loading-bars span:nth-child(3) { animation-delay: 0.2s; }
.loading-bars span:nth-child(4) { animation-delay: 0.3s; }
.loading-bars span:nth-child(5) { animation-delay: 0.4s; }

@keyframes barWave {
    0%, 100% { height: 8px; }
    50% { height: 28px; }
}

.loading-label {
    font-size: 13px;
    color: #999;
    letter-spacing: 0.5px;
}

@media (max-width: 650px) {
    .comment-modal-box {
        max-width: 95%;
        height: 70vh;
    }
}

/* 说说列表页样式 */
.shuo-bottom {
    margin-top: 10px;
    margin-left: 58px;
    padding-top: 10px;
    border-top: 1px solid var(--be-border-grey);
}

.shuo-binf {
    margin-right: 5px;
    color: var(--be-grey-9);
}

.shuo-binf a {
    color: var(--be-grey-9);
}

.shuo-cat i,
.shuo-cat a,
.shuo-binf a:hover {
    color: var(--be-hover);
}

#shuoys .post {
    padding: 15px !important;
}

.shuo-eye {
    float: right;
}

.region-txt {
    background: var(--be-bg-grey-f8);
    padding: 3px;
    border-radius: 6px;
}

@media (max-width: 650px) {
    .right-content {
        display: none;
    }
    .shuo-bqsm {
        display: none;
    }
    .shuo-toggle-wrap {
        height: 300px;
    }
}

.single-tjbt {
    display: flex;
    align-items: center;
    height: 30px;
}

.single-tjbt h3 {
    margin-right: auto;
    color: #656565;
    font-size: 1.9rem;
    border-left: 5px solid var(--be-bg-ht);
    padding: 0 10px;
    border-radius: 2px 0 0 2px;
}

.right-content {
    margin-left: auto;
    margin-right: 20px;
}

.shuo-bqsm {
    float: left;
    padding: 4px 0 0 0;
    clear: both;
    display: block;
}

.meta-author-avatar.shuo-avatar img {
    margin: 2px 10px 0 0 !important;
    transition: transform 0.3s ease;
    will-change: transform;
}

li.post:hover .meta-author-avatar.shuo-avatar img {
    transform: translateY(-4px) scale(1.05);
}

/* 点赞按钮样式 */
.shuo-bottom .be-btn-like {
    display: inline;
    cursor: pointer;
    color: var(--be-grey-9);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.shuo-bottom .be-btn-like:hover {
    color: var(--be-hover) !important;
}

.shuo-bottom .be-btn-like.active {
    color: var(--be-hover) !important;
    cursor: default;
}

.shuo-bottom .be-btn-like .like-number {
    position: static;
    width: auto;
    min-height: auto;
    font-size: inherit;
    color: inherit !important;
    display: inline;
    text-align: left;
    line-height: inherit;
    padding: 0;
    background: none;
    border-radius: 0;
    margin: 0;
}

.shuo-bottom .shuo-binf i.be {
    vertical-align: 0% !important;
}

.shuo-bottom .be-btn-like.loading {
    opacity: 0.5;
    cursor: wait;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.shuo-bottom .be-btn-like:not(.loading) {
    transition: all 0.3s ease;
}

.shuo-bottom .be-btn-like:before {
    display: none;
}

/* 点赞动画 */
.shuo-bottom .be-btn-like {
    position: relative;
}

.shuo-bottom .be-btn-like.active {
    animation: likePop 0.4s ease;
}

@keyframes likePop {
    0% { transform: scale(1); }
    30% { transform: scale(1.25); }
    60% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

.like-floater {
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    font-weight: 600;
    color: var(--be-hover);
    pointer-events: none;
    animation: floatUp 0.8s ease-out forwards;
}

@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-30px);
    }
}

/* 长内容折叠 */
.shuo-toggle-wrap {
    position: relative;
    height: 400px;
    overflow: hidden;
    cursor: pointer;
}

.shuo-toggle-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent 0%, rgba(255,255,255,0.4) 40%, rgba(255,255,255,0.85) 70%, #fff 100%);
    pointer-events: none;
}

.shuo-toggle-wrap.shuo-expanded {
    height: auto;
    cursor: default;
}

.shuo-toggle-wrap.shuo-expanded::after {
    display: none;
}

/* 暗黑模式 */
body.night .comment-modal-mask {
    background: rgba(0,0,0,0.85);
}

body.night .comment-modal-box {
    background: #2c2c2c;
}

body.night .comment-modal-header {
    border-bottom-color: #3a3a3a;
}

body.night .comment-modal-title {
    color: #e0e0e0;
}

body.night .comment-modal-close {
    background: rgba(255,255,255,0.08);
}

body.night .comment-modal-close::before,
body.night .comment-modal-close::after {
    background: #888;
}

body.night .comment-modal-close:hover {
    background: rgba(255,255,255,0.15);
}

body.night .comment-modal-close:hover::before,
body.night .comment-modal-close:hover::after {
    background: #fff;
}

body.night .loading-bars span {
    background: var(--be-hover, #5b9aff);
}

body.night .loading-label {
    color: #777;
}

body.night .shuo-toggle-wrap::after {
    background: linear-gradient(transparent 0%, rgba(44,44,44,0.4) 40%, rgba(44,44,44,0.85) 70%, #2c2c2c 100%);
}
