/* 评论系统样式 */
.comments {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* 标题样式 */
.comments h4 {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
    position: relative;
}

.comments h4::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #3498db, #2980b9);
}

/* 表单样式 */
.comments form {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.form-group {
    margin-bottom: 20px;
}

.form-group textarea{
	width: 93%!important;
	height: 120px;	
}

/* 文本输入框样式 */
.form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;
}

.form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
    outline: none;
}

.form-control::placeholder {
    color: #adb5bd;
}

/* 验证码区域样式 */
.form-group .row {
    align-items: center;
	display: inline-flex;
}

.codeimg {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
}

.codeimg:hover {
    border-color: #3498db;
    transform: scale(1.02);
}

/* 提交按钮样式 */
.btn-info {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: none;
    border-radius: 8px;
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    background: linear-gradient(135deg, #2980b9, #2573a7);
}

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

/* 评论列表样式 */
.media {
    background: #fff;
    margin-bottom: 0;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f1f3f4;
}

.media:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.media:not(:last-child) {
    margin-bottom: 15px;
}

.media img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    object-fit: cover;
	float: left;
	margin-right: 20px;;
}

.media:hover img {
    border-color: #3498db;
    transform: scale(1.05);
}

.media-body {
    margin-left: 12px;
}

.media-body h6 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 8px;
}

.media-body h6 small {
    font-weight: 400;
    margin-left: 10px;
}

.media-body p {
    color: #495057;
    margin-bottom: 10px;
    line-height: 1.5;
}

/* 子评论样式 */
.media .media {
    background: #f8f9fa;
    border-left: 3px solid #3498db;
    margin-top: 15px;
    padding: 15px;
    border-radius: 8px;
}

.media .media img {
    width: 35px;
    height: 35px;
}

.media .media .media-body h6 {
    color: #495057;
}

/* 回复按钮样式 */
.replybtn {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    border: none;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.replybtn:hover {
    background: linear-gradient(135deg, #5a6268, #495057);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

/* 分页样式 */
.pagination {
    margin: 30px 0;
}

.page-link {
    border: 2px solid #e9ecef;
    color: #495057;
    padding: 8px 16px;
    margin: 0 5px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
    transform: translateY(-1px);
}

/* 无数据提示 */
.text-secondary {
    color: #ffffff !important;
    font-size: 16px;
    padding: 40px 0;
}

/* 模态框样式 */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border-radius: 12px 12px 0 0;
    border-bottom: none;
    padding: 20px;
}

.modal-title {
    font-weight: 600;
    font-size: 1.2rem;
}

.close {
    color: white;
    opacity: 0.8;
    text-shadow: none;
}

.close:hover {
    opacity: 1;
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 20px;
}

.btn-secondary {
    background: #6c757d;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .comments {
        padding: 20px 15px;
    }
    
    .comments form {
        padding: 20px;
    }
    
    .media {
        padding: 15px;
    }
    
    .form-group .row {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-group .row .col-6,
    .form-group .row .col-md-3 {
        width: 100% !important;
    }
}

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

.media {
    animation: fadeInUp 0.5s ease-out;
}

/* 加载状态 */
.form-control:disabled {
    background-color: #f8f9fa;
    opacity: 0.7;
}

.btn-info:disabled {
    opacity: 0.6;
    transform: none !important;
}