/* 文章 / 视频详情页互动区 */
.content-interact {
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    backdrop-filter: blur(6px);
}

.content-interact-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.ci-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.18);
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.ci-btn:hover {
    background: rgba(0, 0, 0, 0.28);
    border-color: rgba(253, 187, 45, 0.45);
}

.ci-btn.is-active {
    background: rgba(253, 187, 45, 0.22);
    border-color: rgba(253, 187, 45, 0.65);
    color: #ffe8a3;
}

.ci-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.9rem;
}

.content-interact-comments {
    padding-top: 16px;
}

.ci-comments-title {
    margin: 0 0 12px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

.ci-comment-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.ci-comment-form textarea {
    width: 100%;
    min-height: 88px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.22);
    color: #fff;
    font-size: 0.92rem;
    line-height: 1.5;
    resize: vertical;
    box-sizing: border-box;
}

.ci-comment-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.ci-submit {
    align-self: flex-end;
    padding: 8px 20px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #c62828, #e53935);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.ci-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.ci-comment-empty {
    margin: 0;
    padding: 20px 0 8px;
    text-align: center;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.88rem;
}

.ci-comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ci-comment-item {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ci-comment-item:last-child {
    border-bottom: none;
}

.ci-comment-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

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

.ci-comment-avatar--letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(253, 187, 45, 0.35);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
}

.ci-comment-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ci-comment-meta strong {
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
}

.ci-comment-meta span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.78rem;
}

.ci-comment-body {
    margin: 0 0 0 46px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.92rem;
    line-height: 1.55;
    word-break: break-word;
}

.ci-toast {
    position: fixed;
    left: 50%;
    bottom: max(24px, env(safe-area-inset-bottom));
    transform: translateX(-50%) translateY(12px);
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.82);
    color: #fff;
    font-size: 0.88rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
    z-index: 10060;
}

.ci-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.ci-toast.is-ok {
    background: rgba(46, 125, 50, 0.92);
}

@media (max-width: 600px) {
    .content-interact {
        padding: 16px;
    }

    .ci-comment-body {
        margin-left: 0;
    }
}
