/* 留言板额外样式 */

/* 分页控制样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    padding: 20px;
}

.page-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.page-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.page-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.page-info {
    color: #666;
    font-weight: 500;
    padding: 0 10px;
}

/* 留言项样式增强 */
.message-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.message-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.message-item.mood-happy {
    border-left-color: #ffd700;
}

.message-item.mood-excited {
    border-left-color: #ff6b6b;
}

.message-item.mood-love {
    border-left-color: #ff69b4;
}

.message-item.mood-thinking {
    border-left-color: #4ecdc4;
}

.message-item.mood-sad {
    border-left-color: #95a5a6;
}

.message-item.mood-angry {
    border-left-color: #e74c3c;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.message-author {
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.message-author i {
    color: #667eea;
}

.message-time {
    color: #999;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.message-content {
    color: #555;
    line-height: 1.6;
    font-size: 14px;
}

.message-mood {
    display: inline-block;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    margin-top: 8px;
}

.message-email {
    color: #999;
    font-size: 12px;
    margin-top: 5px;
}

/* 点赞按钮样式 */
.like-btn {
    background: linear-gradient(135deg, #ff9a9e, #fad0c4);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    margin-top: 10px;
    margin-right: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(255, 154, 158, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
    overflow: hidden;
}

.like-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 154, 158, 0.4);
    background: linear-gradient(135deg, #ff8a95, #f093fb);
}

.like-btn:active {
    transform: translateY(-1px) scale(0.98);
    transition: all 0.1s ease;
}

.like-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
}

.like-btn:hover::before {
    width: 100px;
    height: 100px;
}

/* 回复按钮样式 */
.reply-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    margin-top: 10px;
    margin-right: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
    overflow: hidden;
}

.reply-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a67d8, #553c9a);
}

.reply-btn:active {
    transform: translateY(-1px) scale(0.98);
    transition: all 0.1s ease;
}

.reply-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
}

.reply-btn:hover::before {
    width: 100px;
    height: 100px;
}

/* 回复表单样式 */
.reply-form {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border: 2px solid rgba(102, 126, 234, 0.1);
    border-radius: 20px;
    padding: 25px;
    margin-top: 20px;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.reply-form:hover {
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.15);
}

.reply-form .reply-author,
.reply-form .reply-email,
.reply-form .reply-content {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 15px;
    font-size: 14px;
    font-family: inherit;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.reply-form .reply-author:focus,
.reply-form .reply-email:focus,
.reply-form .reply-content:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1), 0 8px 25px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.reply-form .reply-content {
    min-height: 100px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.6;
}

.reply-form .reply-author::placeholder,
.reply-form .reply-email::placeholder,
.reply-form .reply-content::placeholder {
    color: #999;
    font-style: italic;
}

.reply-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 20px;
}

.reply-actions button {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.reply-actions button:first-child {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: white;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

.reply-actions button:first-child:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.4);
    background: linear-gradient(135deg, #26d0ce, #2a9d8f);
}

.reply-actions button:last-child {
    background: linear-gradient(135deg, #ff9a9e, #fad0c4);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 154, 158, 0.3);
}

.reply-actions button:last-child:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 154, 158, 0.4);
    background: linear-gradient(135deg, #ff8a95, #f093fb);
}

.reply-actions button:active {
    transform: translateY(-1px) scale(0.98);
    transition: all 0.1s ease;
}

/* 回复区域样式 */
.replies {
    margin-top: 20px;
    padding-left: 25px;
    border-left: 3px solid rgba(102, 126, 234, 0.3);
    position: relative;
}

.replies::before {
    content: '';
    position: absolute;
    left: -3px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #667eea, #764ba2);
    border-radius: 2px;
}

.reply-item {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.05));
    border: 1px solid rgba(102, 126, 234, 0.15);
    border-radius: 15px;
    padding: 18px;
    margin-bottom: 12px;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.reply-item:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.25);
}

.reply-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #667eea, #764ba2);
    border-radius: 0 2px 2px 0;
}

.reply-author {
    font-weight: 700;
    color: #667eea;
    margin-bottom: 8px;
    font-size: 15px;
}

.reply-content {
    color: #555;
    line-height: 1.6;
    margin-bottom: 8px;
}

.reply-time {
    color: #999;
    font-size: 12px;
    font-style: italic;
}

/* 加载状态样式 */
.loading {
    text-align: center;
    padding: 40px;
    color: #999;
}

.loading i {
    font-size: 2rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 错误状态样式 */
.error {
    text-align: center;
    padding: 40px;
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 10px;
    margin: 20px 0;
}

/* 空状态样式 */
.empty {
    text-align: center;
    padding: 60px 40px;
    color: #999;
}

.empty i {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .pagination {
        flex-direction: column;
        gap: 10px;
    }
    
    .page-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .message-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .replies {
        padding-left: 10px;
    }
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 15px 25px;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    font-weight: 500;
    animation: slideInRight 0.5s ease-out;
}

.notification.success {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
}

.notification.error {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* 表单增强样式 */
.form-input, .form-textarea {
    transition: all 0.3s ease;
}

.form-input:focus, .form-textarea:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

/* 统计数据动画 */
.stat-number {
    transition: all 0.3s ease;
}

.stat-number.updated {
    transform: scale(1.2);
    color: #667eea;
}