/**
 * 评论可见功能样式
 */

/* 隐藏内容容器 */
.comment-hidden-content {
    position: relative;
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* 隐藏状态 */
.comment-hidden-content.hidden {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    min-height: 200px;
}

/* 可见状态 */
.comment-hidden-content.visible {
    background: transparent;
    border: none;
}

/* 评论提示框 */
.comment-prompt {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10;
}

.comment-prompt-content {
    text-align: center;
    padding: 30px;
    max-width: 400px;
}

.comment-prompt-icon {
    margin-bottom: 20px;
}

.comment-prompt-icon i {
    font-size: 48px;
    color: #4270f5;
    opacity: 0.8;
}

.comment-prompt-text h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.comment-prompt-text p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.comment-prompt-btn {
    background: linear-gradient(135deg, #4270f5 0%, #5a8cff 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(66, 112, 245, 0.3);
}

.comment-prompt-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 112, 245, 0.4);
    background: linear-gradient(135deg, #5a8cff 0%, #4270f5 100%);
}

.comment-prompt-btn:active {
    transform: translateY(0);
}

.comment-prompt-btn i {
    font-size: 12px;
}

/* 深色模式样式 */
.dark .comment-hidden-content.hidden {
    background: linear-gradient(135deg, #2a2a2b 0%, #1a1a1b 100%);
    border: 1px solid #404040;
}

.dark .comment-prompt {
    background: rgba(0, 0, 0, 0.95);
}

.dark .comment-prompt-text h4 {
    color: #fff;
}

.dark .comment-prompt-text p {
    color: #bdbdbd;
}

.dark .comment-prompt-icon i {
    color: #ffc008;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .comment-prompt-content {
        padding: 20px;
    }
    
    .comment-prompt-icon i {
        font-size: 36px;
    }
    
    .comment-prompt-text h4 {
        font-size: 16px;
    }
    
    .comment-prompt-text p {
        font-size: 13px;
    }
    
    .comment-prompt-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.comment-hidden-content.visible {
    animation: fadeInUp 0.5s ease-out;
}

/* 隐藏内容的模糊效果 */
.comment-hidden-content.hidden .wznrys {
    filter: blur(3px);
    pointer-events: none;
    user-select: none;
}

/* 可见状态下的正常显示 */
.comment-hidden-content.visible .wznrys {
    filter: none;
    pointer-events: auto;
    user-select: auto;
}

/* 文章内容结尾的提示条 */
.comment-article-banner {
    position: relative;
    margin: 30px 0 20px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #333;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    overflow: hidden;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.comment-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    max-width: 1200px;
    margin: 0 auto;
    gap: 15px;
}

.comment-banner-icon {
    display: flex;
    align-items: center;
}

.comment-banner-icon i {
    font-size: 20px;
    color: #4270f5;
    opacity: 0.9;
}

.comment-banner-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.comment-banner-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.comment-banner-desc {
    font-size: 12px;
    color: #666;
}

.comment-banner-btn {
    background: #4270f5;
    color: white;
    border: 1px solid #4270f5;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.comment-banner-btn:hover {
    background: #5a8cff;
    border-color: #5a8cff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(66, 112, 245, 0.3);
}

.comment-banner-btn:active {
    transform: translateY(0);
}

.comment-banner-btn i {
    font-size: 11px;
}

.comment-banner-close {
    background: rgba(0, 0, 0, 0.1);
    color: #666;
    border: none;
    padding: 6px;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.comment-banner-close:hover {
    background: rgba(0, 0, 0, 0.2);
    color: #333;
    transform: scale(1.1);
}

.comment-banner-close:active {
    transform: scale(0.95);
}

/* 深色模式下的文章内容结尾提示条 */
.dark .comment-article-banner {
    background: linear-gradient(135deg, #2a2a2b 0%, #1a1a1b 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark .comment-banner-title {
    color: #fff;
}

.dark .comment-banner-desc {
    color: #bdbdbd;
}

.dark .comment-banner-icon i {
    color: #ffc008;
}

.dark .comment-banner-btn {
    background: #ffc008;
    border-color: #ffc008;
    color: #333;
}

.dark .comment-banner-btn:hover {
    background: #ffd43b;
    border-color: #ffd43b;
}

.dark .comment-banner-close {
    background: rgba(255, 255, 255, 0.1);
    color: #bdbdbd;
}

.dark .comment-banner-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.dark .comment-banner-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.dark .comment-banner-close {
    background: rgba(255, 255, 255, 0.05);
}

.dark .comment-banner-close:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .comment-article-banner {
        margin: 15px 0;
        border-radius: 8px;
    }
    
    .comment-banner-content {
        padding: 10px 15px;
        gap: 10px;
    }
    
    .comment-banner-icon i {
        font-size: 18px;
    }
    
    .comment-banner-title {
        font-size: 13px;
    }
    
    .comment-banner-desc {
        font-size: 11px;
    }
    
    .comment-banner-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .comment-banner-btn i {
        font-size: 10px;
    }
    
    .comment-banner-close {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .comment-article-banner {
        margin: 10px 0;
    }
    
    .comment-banner-content {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .comment-banner-text {
        order: 2;
        flex-basis: 100%;
        text-align: center;
    }
    
    .comment-banner-btn {
        order: 1;
        flex: 1;
        justify-content: center;
    }
    
    .comment-banner-close {
        order: 3;
    }
} 