﻿/* 基础样式 - 增强视觉层次和现代感 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 20px;
}
/* 在原有样式基础上添加或修改以下内容 */

/* 评论头像样式 */
.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
    flex-shrink: 0; /* 防止头像被压缩 */
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.comment-info {
    display: flex;
    flex-direction: column;
}

.comment-username {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 2px;
}

.comment-time {
    font-size: 12px;
    color: #888;
}

.header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 25px;
            border-bottom: 1px solid rgba(0,0,0,0.08);
            background-color: #ffffff;
            margin-bottom: 20px;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.03);
        }
        
        .header-content {
            display: flex;
            width: 100%;
            justify-content: space-between;
            align-items: center;
            flex-wrap: nowrap; 
        }
        
        .header h1 {
            position: relative;
            color: #ff3b7f;
            font-size: 24px;
            font-weight: 700;
            letter-spacing: -0.5px;
            background: linear-gradient(45deg, #ff3b7f, #ff6b9c);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 60%; /* 限制标题最大宽度 */
            margin-right: 20px; /* 添加右侧间距 */
        }
        
        .auth-buttons {
            display: flex;
            gap: 12px;
            flex-shrink: 0; /* 防止按钮区域收缩 */
        }
        
        .auth-buttons button {
            padding: 10px 18px;
            border: none;
            border-radius: 30px;
            background: linear-gradient(45deg, #ff3b7f, #ff6b9c);
            color: white;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            transition: all 0.3s ease;
            white-space: nowrap; /* 防止按钮文本换行 */
        }
        
        .auth-buttons button:hover {
            box-shadow: 0 6px 15px rgba(255, 59, 127, 0.35);
        }
.notifications-btn-container {
    position: relative;
    display: inline-block;
}
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff3b7f;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 模态框样式 - 更精致的UI */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 30px;
    border-radius: 16px;
    width: 90%;
    max-width: 300px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}

.close:hover {
    color: #ff3b7f;
}

.tabs {
    display: flex;
    margin-bottom: 25px;
    background: #f8f9fa;
    border-radius: 50px;
    padding: 4px;
}

.tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    background: transparent;
    border: none;
    border-radius: 50px;
    cursor: pointer;
color: #ff3b7f;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tab.active {
    background: white;
    color: #ff3b7f;
font-size: 17px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s;
    background: #f8fafc;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff9cb9;
    box-shadow: 0 0 0 3px rgba(255, 59, 127, 0.15);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

button {
    padding: 14px 20px;
    background: linear-gradient(45deg, #ff3b7f, #ff3b7f);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    
    transition: all 0.3s ease;
}

.like-btn.liked {
  color: #ff4444;
  border-color: #ff4444;
}
.like-btn.liked i {
  color: #ff4444;
   
}

/* 发表表单样式 - 更现代的设计 */
.post-form {
    background-color: white;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    border: 1px solid rgba(0,0,0,0.03);
}

.post-form h2 {
    margin-bottom: 20px;
    color: #ff3b7f;
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.post-form h2::before {
    content: "";
    display: block;
    width: 5px;
    height: 25px;
    background: linear-gradient(to bottom, #ff3b7f, #ff6b9c);
    border-radius: 10px;
}

.upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #f1f5f9;
    border-radius: 8px;
    cursor: pointer;
    color: #555;
    font-weight: 500;
    transition: all 0.3s;
    border: 1px dashed #cbd5e1;
}

.upload-btn:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
}

.preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

.preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.preview-item:hover {
    transform: translateY(-3px);
}

.preview-item img,
.preview-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-item .remove {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: rgba(255, 255, 255, 0.8);
    color: #ff3b7f;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    backdrop-filter: blur(2px);
}

.preview-item .remove:hover {
    background-color: #ff3b7f;
    color: white;
}

/* 帖子列表样式 - 更精致的卡片设计 */
.posts-container {
    margin-bottom: 30px;
}

.post-card {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08);
}

.post-header {
    display: flex;
    align-items: center;
    padding: 18px;
    border-bottom: 1px solid #f1f5f9;
}

.post-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;        /* 消除图片底部间隙 */
    vertical-align: top;  /* 对齐顶部防止基线问题 */
    border-radius: 50%;   /* 确保图片也是圆形 */
}
/* 媒体行布局 */
.media-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 5px;
}

/* 每个媒体项占33.3%宽度 */
.media-item {
    flex: 0 0 33.3333%;
    padding: 2px;
    box-sizing: border-box;
}

/* 媒体内容样式 */
.media-item img,
.media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1/1; /* 保持正方形 */
    border-radius: 4px;
}

.post-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;     /* 确保图片不会溢出容器 */
}
.post-info {
    flex: 1;
}

.post-username {
    font-weight: 700;
    margin-bottom: 3px;
    color: #1e293b;
}

.post-time {
    font-size: 13px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-content {
    padding: 18px;
    font-size: 16px;
    line-height: 1.7;
    color: #334155;
}

.post-media {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    padding: 0 18px 18px;
}

.post-media img,
.post-media video {
    width: 100%;
    border-radius: 12px;
    aspect-ratio: 1/1;
    object-fit: cover;
    box-shadow: 0 4px 6px rgba(0,0,0,0.03);
    transition: transform 0.3s;
}

.post-media img:hover,
.post-media video:hover {
    transform: scale(1.03);
}

.post-actions {
    display: flex;
    padding: 12px 18px;
    border-top: 1px solid #f1f5f9;
    background: #f8fafc;
}

.post-actions button {
    background: none;
    border: none;
    color: #64748b;
    display: flex;
    align-items: center;
    font-size: 14px;
    padding: 8px 15px;
    border-radius: 8px;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(255, 59, 127, 0.25);
}

.post-actions button i {
    margin-right: 8px;
    font-size: 18px;
}

.post-actions button:hover {
    color: #ff3b7f;
    background: rgba(255, 59, 127, 0.08);
}

/* 评论区样式 - 更清晰的层次结构 */
.comments-section {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    padding: 25px;
    border: 1px solid rgba(0,0,0,0.03);
}

.comments-section h2 {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment {
    padding: 18px 0;
    border-bottom: 1px solid #f8fafc;
}

.comment:last-child {
    border-bottom: none;
}

.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(45deg, #2196f3, #21cbf3);
    color: white;
    display: block;        /* 消除图片底部间隙 */
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    margin-right: 12px;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);

}

.comment-info {
    flex: 1;
}

.comment-username {
    font-weight: 600;
    font-size: 15px;
    color: #1e293b;
}

.comment-time {
    font-size: 12px;
    color: #94a3b8;
}

.comment-content {
    font-size: 15px;
    line-height: 1.6;
    padding-left: 48px;
    color: #475569;
}

.reply-btn {
    background: none;
    border: none;
    color: #000000;
    font-size: 13px;
    padding: 0;
    margin-top: 8px;
    margin-left: 48px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}

.reply-btn:hover {
    color: #ff3b7f;
}

.replies {
    padding-left: 36px;
    margin-top: 15px;
    border-left: 2px solid #e2e8f0;
}

.comment-form {
    margin-top: 25px;
}

.comment-form textarea {
    width: 100%;
    min-height: 100px;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 15px;
    font-size: 15px;
    background: #f8fafc;
    transition: all 0.3s;
}

.comment-form textarea:focus {
    outline: none;
    border-color: #ff9cb9;
    box-shadow: 0 0 0 3px rgba(255, 59, 127, 0.15);
}

.load-more {
    text-align: center;
    margin: 25px 0;
}

.load-more button {
    padding: 12px 40px;
    border-radius: 30px;
}

/* 个人主页样式 */
.profile-header {
    padding: 20px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 25px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.profile-header h2 {
    color: #ff3b7f;
    font-size: 20px;
    margin-bottom: 12px;
    background: linear-gradient(45deg, #ff3b7f, #ff6b9c);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 按钮样式增强 */
.delete-btn {
    background: linear-gradient(45deg, #f44336, #ff6b6b);
   
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 30px;
}

.delete-btn:hover {
    background: linear-gradient(45deg, #d32f2f, #ff5252);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(244, 67, 54, 0.25);
}

.view-count {
    color: #94a3b8;
    font-size: 13px;
    margin-left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.comment-delete {
    background: none;
    border: none;
    color: #f44336;
    font-size: 13px;
padding: 0;
    cursor: pointer;
    margin-left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.comment-delete:hover {
    color: #d32f2f;
}

 
        
    
    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .auth-buttons {
        align-self: stretch;
        justify-content: flex-end;
    }
    
    .modal-content {
        padding: 20px;
    }
    
    .post-form {
        padding: 20px;
    }
    
    .post-media {
        grid-template-columns: 1fr;
    }
    
    .profile-header {
        padding: 20px;
    }
}


/* 动画效果 */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

/* 微交互增强 */
button, .upload-btn, .post-card {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #ff9cb9, #ff3b7f);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #ff8aad, #ff2a72);
}
.btn {
    background: linear-gradient(135deg, #6a5af9, #d66efd);
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}
/* 头像相关样式 */
.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 8px;
    object-fit: cover;
}

.post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
}

.post-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.load-more-btn {
    display: block;
    width: 100%;
    padding: 12px;
    margin: 20px 0;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background-color: #e9e9e9;
    color: #333;
}

.load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.avatar-upload-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.avatar-preview {
    width: 400px;
    height: 300px;
    margin: 0 auto 20px;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.avatar-preview img {
    max-width: 100%;
    max-height: 100%;
}

.avatar-upload-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.upload-btn {
    padding: 8px 16px;
    
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: inline-block;
}

.save-btn {
    padding: 8px 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.cancel-btn {
    padding: 8px 16px;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Cropper.js覆盖样式 */
.cropper-view-box,
.cropper-face {
    border-radius: 50%;
}

.cropper-modal {
    background-color: rgba(255, 255, 255, 0.8);
}
   .footer {
            text-align: center;
            padding: 2rem 1rem;
            color: #718096;
            font-size: 0.9rem;
            background: #f7fafc;
            border-top: 1px solid #e2e8f0;
            margin-top: 2rem;
        }
        
        .footer-links {
            display: flex;
            justify-content: center;
            list-style: none;
            margin-top: 1rem;
            flex-wrap: wrap;
        }
        
        .footer-links li {
            margin: 0.5rem 1rem;
        }
        
        .footer-links a {
            color: #4a5568;
            text-decoration: none;
            transition: color 0.3s;
        }
        
        .footer-links a:hover {
            color: #1a4b8c;
        }

/* 通知按钮样式 */
.notifications-btn {
    position: relative;
    margin-left: 15px;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff4d4f;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    display: none;
}

/* 通知中心样式 */
.notifications-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
}

.notifications-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
    max-height: 80vh;
    overflow-y: auto;
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.notification {
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.notification.unread {
    background-color: #f0f7ff;
    border-left: 3px solid #1890ff;
}

.notification.read {
    background-color: #f9f9f9;
}

.notification:hover {
    background-color: #f5f5f5;
}

.notification-content {
    margin-bottom: 10px;
    line-height: 1.5;
}

.notification-actions {
    text-align: right;
}

.mark-read-btn {
    background: none;
    border: none;
    color: #1890ff;
    cursor: pointer;
    padding: 5px 10px;
}

.mark-read-btn:hover {
    background-color: #e6f7ff;
    border-radius: 4px;
}

.no-notifications {
    text-align: center;
    padding: 40px 0;
    color: #999;
}

/* 消息中心页样式 */
.notifications-container {
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
/* 评论样式 */
.comment {
    padding: 15px;
    border-radius: 8px;
    background-color: #ffffff;
    position: relative;
    transition: all 0.3s ease;
}



.reply-comment {
    border-left: 3px solid #f0f8ff;
    margin-top: 10px;
}

.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-info {
    flex: 1;
}

.comment-username {
    font-weight: bold;
    font-size: 16px;
    color: #333;
}

.comment-time {
    font-size: 12px;
    color: #888;
}

.comment-content {
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.5;
    color: #444;
 word-wrap: break-word;
            white-space: pre-wrap;
            overflow-wrap: break-word;
}

.comment-actions {
    display: flex;
    gap: 10px;
}

.reply-btn, .comment-delete {
    padding: 5px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.reply-btn {
    background-color: #f0f8ff;
    color: #000000;
}

.reply-btn:hover {
    background-color: #bdbdbd;
}

.comment-delete {
    background-color: #f0f8ff;
    color: black;
    margin-top: 8px;
}

.comment-delete:hover {
    background-color: #bdbdbd;
}

/* 评论表单 */
.comment-form {
    margin-top: 20px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.comment-form textarea {
    width: 100%;
    height: 100px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    resize: vertical;
    font-size: 14px;
    margin-bottom: 10px;
}

.comment-form textarea:focus {
    border-color: #f0f8ff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

#submitComment {
    background-color: #f0f8ff;
    color: black;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    transition: background-color 0.3s;
}

#submitComment:hover {
    background-color: #3a7bc8;
}
/* 搜索表单样式 */
.search-form {
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.search-container input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    min-width: 150px;
}

.search-container button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

#searchBtn {
    background-color: #f0f8ff;
    color: white;
}

#searchBtn:hover {
    background-color: #3a7bc8;
}

#clearSearchBtn {
    background-color: #f5f5f5;
    color: #ffffff;
}

#clearSearchBtn:hover {
    background-color: #e0e0e0;
}

.search-info {
    padding: 10px 15px;
    background-color: #f0f8ff;
    border-left: 4px solid #f0f8ff;
    margin: 10px 0;
    border-radius: 4px;
    font-size: 14px;
}

/* 评论折叠按钮样式 */
.toggle-replies-btn {
    padding: 5px 10px;
    background-color: #f0f8ff;
    border: 1px solid #f0f8ff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.toggle-replies-btn:hover {
    background-color: #e0f0ff;
}

/* 回复容器样式 */
.replies-container {
    margin-top: 10px;
    padding-left: 20px;
    border-left: 2px solid #e0e0e0;
}
/* 搜索表单样式 */
.search-form {
    margin: 20px 0;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.search-container input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    min-width: 150px;
}

.search-container button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

#searchBtn {
    background-color: #f0f8ff;
    color: white;
}

#searchBtn:hover {
    background-color: #3a7bc8;
}

#clearSearchBtn {
    background-color: #f5f5f5;
    color: #ffffff;
}

#clearSearchBtn:hover {
    background-color: #e0e0e0;
}

.search-info {
    padding: 10px 15px;
    background-color: #f0f8ff;
    border-left: 4px solid #f0f8ff;
    margin: 10px 0;
    border-radius: 4px;
    font-size: 14px;
}

/* 评论折叠按钮样式 */
.toggle-replies-btn {
    padding: 5px 10px;
    background-color: #000000;
    color: #000000;
    border: 1px solid #f0f8ff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
margin-top: 10px;
}

.toggle-replies-btn:hover {
    background-color: #f0f8ff;
}

/* 回复容器样式 */
.replies-container {
    margin-top: 10px;
    padding-left: 20px;
    border-left: 2px solid #e0e0e0;
}
.comment-content-container {
    margin-top: 10px;
}

.comment-media {
    margin-top: 10px;
}

.media-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}
.cmt {
display: flex;
}
.media-item {
    width: calc(33.33% - 10px);
    aspect-ratio: 1/1;
  
    border-radius: 4px;
    transform: translateX(45px); 
}

.media-item img,
.media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pmedia-item {
    width: calc(33.33% - 10px);
    aspect-ratio: 1/1;
  
    border-radius: 4px;
    
}
 /* QQ登录按钮样式 */
        .qq-login-container {
            margin-top: 15px;
        }

        .or-use {
            text-align: center;
            color: #999;
            font-size: 12px;
            margin-bottom: 10px;
        }

        .qq-login-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 8px 20px;
            background-color: #f5f5f5; /* 灰白色背景 */
            color: #333;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
            text-decoration: none;
            width: 100%; /* 与输入框等宽 */
            box-sizing: border-box;
        }

        .qq-circle {
            width: 24px;
            height: 24px;
            border-radius: 50%; /* 圆形图标 */
            background-color: #12B7F5; /* QQ蓝色 */
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 8px;
        }

        .qq-login-btn:hover {
            background-color: #eee;
            border-color: #ccc;
            transform: translateY(-1px);
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }

        .qq-login-btn:active {
            transform: translateY(0);
            box-shadow: none;
        }
 /* 表单通用样式 */
        .form-group {
            width: 100%;
            box-sizing: border-box;
            margin-bottom: 15px;
        }
        
        .form input,
        .form button {
            width: 100%;
            box-sizing: border-box;
            padding: 8px 12px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 14px;
        }
        
        .form button {
            background-color: #4CAF50;
            color: white;
            border: none;
            padding: 10px;
            cursor: pointer;
            margin-bottom: 10px;
        }
        
        .form button:disabled {
            background-color: #cccccc;
            cursor: not-allowed;
        }

        /* 同意条款勾选框样式 */
        .terms-container {
            display: flex;
            align-items: center;
            font-size: 12px;
            color: #666;
            margin: 10px 0 15px;
        }
        
        .terms-container input {
            width: auto;
            margin-right: 6px;
        }
        
        .terms-container a {
            color: #12B7F5;
            text-decoration: none;
        }
        
        .terms-container a:hover {
            text-decoration: underline;
        }
 /* 添加评论区域样式 */
        .comments-section {
            margin-top: 30px;
            background-color: #fff;
            border-radius: 8px;
            padding: 20px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        }
        
        .comments-section h2 {
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 1px solid #eee;
        }
        
        .comment-form {
            margin-top: 20px;
        }
        
        .comment-form textarea {
            width: 100%;
            height: 100px;
            padding: 12px;
            border: 1px solid #ddd;
            border-radius: 6px;
            resize: vertical;
            font-size: 14px;
            margin-bottom: 10px;
        }
        
        .comment-form textarea:focus {
            border-color: #4a90e2;
            outline: none;
            box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
        }
        
        #submitComment {
            margin-bottom: 7px;
            background: linear-gradient(45deg, #3b64ff, #ff3b7f);
            color: white;
            border: none;
            padding: 3px 5px;
            white-space: nowrap;
            border-radius: 6px;
            cursor: pointer;
            font-size: 15px;
            transition: background-color 0.3s;
            height: 39px;
            width: 44px;
        }
        
        #submitComment:hover {
            background-color: #3a7bc8;
        }
        
        /* 新增：评论图片上传样式 */
        .comment-media-upload {
            display: flex;
            flex-direction: column;
        }
        
        #commentMediaBtn {
            align-self: flex-start;
            background-color: #f5f5f5;
            border: 1px solid #ddd;
            padding: 8px 14px;
            border-radius: 4px;
            cursor: pointer;
            background: linear-gradient(45deg, #cdb2bc, #c5b6bb);
            height: 39px;
            
        }
        
        #commentMediaBtn:hover {
            background-color: #eaeaea;
        }
        
        #commentPreviewContainer {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }
        
        .comment-preview-item {
            position: relative;
            width: 100px;
            height: 100px;
            border-radius: 4px;
            overflow: hidden;
        }
        
        .comment-preview-item img, 
        .comment-preview-item video {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .comment-preview-item .remove {
            position: absolute;
            top: 5px;
            right: 5px;
            background: rgba(0,0,0,0.5);
            color: white;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }
/* 评论容器 */
#commentsContainer {

    flex-direction: column;

}

/* 主评论样式 */
.comment-main {
    background: white;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 回复评论样式 - 向右缩进 */
.comment-reply {
    background: #ffffff;

    border-radius: 6px;
    margin-left: 48px; /* 向右缩进 */
    position: relative;
}

/* 添加箭头指示回复关系 */
.comment-reply::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 12px;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 12px solid #ffffff;
}

/* 回复关系样式 */
.reply-to {
    color: #666;
    font-size: 0.9em;
    margin-left: 4px;
}

/* 评论头部 */
.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.comment-avatar img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

.comment-info {
    flex: 1;
}

.comment-username {
    font-weight: 500;
    font-size: 14px;
}

.comment-time {
    color: #888;
    font-size: 12px;
}

/* 评论内容 */
.comment-content {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 8px;
}

/* 评论媒体 */
.comment-media {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.media-item {
    max-width: 150px;
    max-height: 150px;
    border-radius: 4px;
    overflow: hidden;
}

.media-item img, 
.media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 评论操作 */
.comment-actions {
    display: flex;
    gap: 10px;
}

.comment-actions button {
    background: none;
    border: none;
    color: #666;
    font-size: 12px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    height: 24px;
}

.comment-actions button:hover {
    background: #f0f0f0;
}

/* 无评论提示 */
.no-comments {
    text-align: center;
    color: #888;
    padding: 20px;
}
.content-link {
    color: #1a73e8;
    text-decoration: underline;
    word-break: break-all;
}

.content-link i {
    margin-right: 5px;
}
/* 用户选择模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    max-width: 450px;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}
/* 收藏按钮样式 */
.favorite-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.favorite-btn:hover {
    color: #ffd700;
}

.favorite-btn.favorited {
    color: #ff4444;
}
.close-modal {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #888;
}

.close-modal:hover {
    color: #000;
}

.search-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.user-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 4px;
}

.user-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    transition: background-color 0.2s;
}

.user-item:hover {
    background-color: #f9f9f9;
}

.user-info {
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

.user-name {
    font-size: 14px;
}

.user-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.modal-footer {
    margin-top: 15px;
    text-align: right;
}

.modal-footer button {
    background-color: #4a90e2;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.modal-footer button:hover {
    background-color: #3a7bc8;
}

.no-users {
    text-align: center;
    padding: 20px;
    color: #888;
}
 .notifications-container {
            margin-top: 20px;
        }
        
        .notification {
            background-color: #fff;
            border-radius: 8px;
            padding: 15px;
            margin-bottom: 15px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .notification.unread {
            background-color: #f0f8ff;
            border-left: 4px solid #4a90e2;
        }
        
        .notification-content {
            flex: 1;
        }
        
        .notification-text {
            font-size: 16px;
            margin-bottom: 5px;
        }
        
        .notification-time {
            font-size: 12px;
            color: #888;
        }
        
        .notification-actions {
            display: flex;
            gap: 10px;
        }
        
        .mark-read-btn, .delete-notification-btn {
            padding: 5px 10px;
            border: none;
            cursor: pointer;
            font-size: 12px;
        }
        
        .mark-read-btn {
            background-color: #4a90e2;
            color: white;
        }
        
        .delete-notification-btn {
            background-color: #f44336;
            color: white;
        }
        
        .no-notifications {
            text-align: center;
            padding: 20px;
            color: #888;
        }
/* 通知筛选按钮样式 */
.filter-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 6px 12px;
    background: linear-gradient(45deg, #ffffff, #ffffff);
    border: none;
    border-radius: 16px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    color: black;
}

.filter-btn.active {
    background: linear-gradient(45deg, #8721f3, #4c548b);
    color: white;
}

.filter-btn:hover:not(.active) {
    background-color: #e0e0e0;
}

/* 通知图标样式 */
.notification-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 18px;
}

.notification {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
}
/* 在现有CSS中添加 */
.like-comment-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 0.9rem;
    margin-top: 7px;
}

.like-comment-btn.liked {
    color: #ff3b7f;
}

.like-comment-btn:hover {
    color: #ff3b7f;
}

.like-count {
    margin-left: 4px;
}
.profile-header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 20px;
            border-radius: 10px;
            margin-bottom: 20px;
            position: relative;
        }
        
        .profile-info {
            display: flex;
            align-items: center;
            gap: 20px;
        }
        
        .profile-avatar {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            border: 4px solid rgba(255, 255, 255, 0.3);
            overflow: hidden;
        }
        
        .profile-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .profile-details {
            flex: 1;
        }
        
        .profile-username {
            font-size: 24px;
            font-weight: bold;
            margin-bottom: 5px;
        }
        
        .profile-join-date {
            font-size: 14px;
            opacity: 0.9;
        }
        
        .profile-stats {
            display: flex;
            gap: 20px;
            margin-top: 15px;
        }
        
        .stat-item {
            text-align: center;
        }
        
        .stat-count {
            font-size: 18px;
            font-weight: bold;
        }
        
        .stat-label {
            font-size: 12px;
            opacity: 0.8;
        }
        
        .profile-filter {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
        }
        
      
        
        .banned-alert {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #ff4757 0%, #ff3742 100%);
    color: white;
    padding: 15px 20px;
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.3);
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideDown 0.4s ease-out;
}

.banned-alert > div {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
}

.banned-alert i.fas.fa-ban {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
}

.banned-alert span {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

#closeBannedAlert {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

#closeBannedAlert:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

#closeBannedAlert:active {
    transform: scale(0.95);
}

/* 隐藏状态 */
.banned-alert.hidden {
    display: none;
}

/* 动画效果 */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}



 /* 添加下拉菜单样式 */
        .dropdown {
            position: relative;
            display: inline-block;
            margin-left: 15px;
        }
        
        .dropdown-content {
            display: none;
            position: absolute;
            background-color: #fff;
            min-width: 250px;
            box-shadow: 0 8px 20px rgba(0,0,0,0.15);
            z-index: 100;
            right: 0;
            top: 100%;
            border-radius: 12px;
            overflow: hidden;
            opacity: 0;
            transform: translateY(10px);
            transition: all 0.3s ease;
            border: 1px solid rgba(0,0,0,0.05);
        }
        
        .dropdown:hover .dropdown-content {
            display: block;
            opacity: 1;
            transform: translateY(0);
        }
        
        .dropdown-content a, 
        .dropdown-content button {
            color: #4c4747;
            padding: 14px 20px;
            text-decoration: none;
            display: flex;
            align-items: center;
            text-align: left;
            width: 100%;
            border: none;
            background: transparent;
            cursor: pointer;
            font-size: 15px;
            transition: all 0.2s ease;
            border-bottom: 1px solid #f5f5f5;
        }
        
        .dropdown-content a:last-child, 
        .dropdown-content button:last-child {
            border-bottom: none;
        }
        
        .dropdown-content a:hover, 
        .dropdown-content button:hover {
            background-color: #f8f9ff;
            color: #6a5af9;
        }
        
        .dropdown-content a i, 
        .dropdown-content button i {
            margin-right: 12px;
            width: 18px;
            text-align: center;
            font-size: 16px;
        }
        
        /* 调整消息按钮徽章位置 */
        .dropdown .notification-badge {
            position: absolute;
            top: -5px;
            right: -5px;
            background: #ff4757;
            color: white;
            border-radius: 50%;
            width: 20px;
            height: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: bold;
        }
        
        /* 确保头像按钮有正确的大小 */
        #profileBtn {
            width: 46px;
            height: 46px;
            border-radius: 50%;
            display: block;
            background: linear-gradient(135deg, #6a5af9, #d66efd);
            border: 3px solid white;
            box-shadow: 0 4px 10px rgba(106, 90, 249, 0.25);
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }
        
        #profileBtn::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            
        }
        
        #profileBtn:hover {
            transform: scale(1.05);
            box-shadow: 0 6px 15px rgba(106, 90, 249, 0.35);
        }
        
        /* 添加下拉菜单箭头 */
        .dropdown-content::before {
            content: "";
            position: absolute;
            top: -10px;
            right: 15px;
            width: 0;
            height: 0;
            border-left: 10px solid transparent;
            border-right: 10px solid transparent;
            border-bottom: 10px solid white;
            z-index: 1;
        }
        
        .dropdown-content::after {
            content: "";
            position: absolute;
            top: -11px;
            right: 15px;
            width: 0;
            height: 0;
            border-left: 10px solid transparent;
            border-right: 10px solid transparent;
            border-bottom: 10px solid rgba(0,0,0,0.05);
            z-index: 0;
        }
        
        /* 登录按钮样式 */
        #loginBtn {
            background: linear-gradient(135deg, #6a5af9, #d66efd);
            border: none;
            padding: 10px 20px;
            border-radius: 30px;
            color: white;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(106, 90, 249, 0.25);
        }
        
        #loginBtn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(106, 90, 249, 0.35);
        }
/* 新增的设置页面样式 */
        .settings-container {
            display: flex;
            flex-direction: row;
            margin: 20px 0;
            gap: 20px;
            min-height: 500px;
        }
        
        .settings-sidebar {
            width: 250px;
            background: #fff;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.08);
            padding: 20px;
            height: fit-content;
        }
        
        .settings-sidebar h2 {
            font-size: 1.5rem;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 1px solid #eee;
            color: #6a11cb;
        }
        
        .settings-button {
            display: flex;
            align-items: center;
            width: 100%;
            padding: 12px 15px;
            margin-bottom: 10px;
            background: #f8f9fa;
            border: none;
            border-radius: 8px;
            text-align: left;
            font-size: 1rem;
            color: #333;
            transition: all 0.3s ease;
            cursor: pointer;
        }
        
        .settings-button:hover {
            background: #6a11cb;
            color: white;
            transform: translateX(5px);
        }
        
        .settings-button i {
            margin-right: 10px;
            font-size: 1.2rem;
        }
        
        .settings-main {
            flex: 1;
            background: #fff;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.08);
            padding: 30px;
        }
        
        .settings-header {
            margin-bottom: 30px;
            padding-bottom: 20px;
            border-bottom: 1px solid #eee;
        }
        
        .settings-header h1 {
            font-size: 2rem;
            color: #6a11cb;
            margin-bottom: 10px;
        }
        
        .settings-header p {
            color: #666;
            font-size: 1.05rem;
        }
        
        .status-card {
            background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
            border-radius: 12px;
            padding: 25px;
            color: white;
            margin-bottom: 30px;
            position: relative;
            overflow: hidden;
        }
        
        .status-card::before {
            content: "";
            position: absolute;
            top: -50px;
            right: -50px;
            width: 200px;
            height: 200px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
        }
        
        .status-card h3 {
            font-size: 1.5rem;
            margin-bottom: 15px;
            position: relative;
        }
        
        .status-card p {
            margin-bottom: 20px;
            position: relative;
            max-width: 70%;
        }
        
        .status-badge {
            background: rgba(255, 255, 255, 0.2);
            padding: 5px 15px;
            border-radius: 20px;
            font-weight: bold;
            display: inline-block;
        }
        
        .settings-section {
            margin-bottom: 30px;
        }
        
        .settings-section h3 {
            font-size: 1.3rem;
            margin-bottom: 20px;
            color: #333;
            padding-bottom: 10px;
            border-bottom: 1px solid #eee;
        }
        
        .feature-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 20px;
        }
        
        .feature-card {
            background: #f8f9fa;
            border-radius: 10px;
            padding: 20px;
            transition: all 0.3s ease;
        }
        
        .feature-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 16px rgba(0,0,0,0.1);
            background: #fff;
        }
        
        .feature-card i {
            font-size: 2rem;
            color: #6a11cb;
            margin-bottom: 15px;
        }
        
        .feature-card h4 {
            font-size: 1.1rem;
            margin-bottom: 10px;
            color: #333;
        }
        
        .feature-card p {
            color: #666;
            font-size: 0.9rem;
        }


.comment-actions {
    display: flex;
    align-items: center;
    margin-bottom: 3px;
}
/* 修改cmt为垂直布局 */
.cmt {
  display: flex;
  flex-direction: column; /* 改为垂直方向 */
  width: 100%; /* 确保占满宽度 */
}

/* 新增输入框组容器 - 关键修复 */
.input-group {
  display: flex;
  width: 100%;
  align-items: flex-end; /* 底部对齐 */
}

.floating-comment-form {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 750px;
    max-width: 100%;
    background: white;
    padding: 10px 10px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
    border-top: 1px solid #eee;
    box-sizing: border-box;
}

.floating-comment-form textarea {
    flex: 1;
    height: 40px; 
    min-height: 40px;
    max-height: 40px;
    resize: none;
    overflow-y: auto; 
    width: 625px;
    padding: 8px;
    box-sizing: border-box;
}

/* 关键修复：让输入框和按钮在同一行 */
.floating-comment-form .cmt {
    display: flex;
    flex-direction: row; /* 改为水平排列 */
    align-items: flex-end; /* 底部对齐 */
    width: 100%;
}

.floating-comment-form .comment-media-upload {
    margin-left: 10px; /* 添加间距 */
}

.floating-comment-form .comment-actions {
    margin-bottom: 0; /* 移除底部间距 */
    display: flex;
    align-items: center;
}
        

/* 底部悬浮菜单样式 */
        .bottom-nav {
            opacity: 0;
        }
        
        .nav-btn {
            background: none;
            border: none;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: none;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            font-size: 20px;
            color: #555;
            transition: all 0.3s ease;
        }
        
        .nav-btn:hover {
            background-color: #f0f0f0;
            transform: translateY(-3px);
        }
        
        .center-btn {
            width: 70px;
            height: 70px;
            font-size: 28px;
            background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            margin: 0 10px;
        }
        
        .center-btn:hover {
            background: linear-gradient(135deg, #e0e0e0, #d0d0d0);
            transform: scale(1.05);
        }
        
       
/* 通用样式 */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* 主上传区域样式 */
.progress-bar-container {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #fff;
    transition: all 0.3s ease;
}

.file-icon {
    font-size: 24px;
    margin-right: 15px;
    width: 40px;
    text-align: center;
}

.file-info {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-weight: 500;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.progress-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.speed-display {
    font-size: 12px;
    color: #666;
    min-width: 80px;
    margin-right: 10px;
}

.progress-track {
    flex: 1;
    height: 6px;
    background-color: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    margin: 0 10px;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background-color: #2196F3;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.size-info {
    font-size: 12px;
    color: #666;
    min-width: 120px;
    text-align: right;
    margin: 0 10px;
}

.time-remaining {
    font-size: 12px;
    color: #666;
    min-width: 80px;
    text-align: right;
    margin-right: 15px;
}

.delete1-btn {
    background: none;
    border: none;
    font-size: 16px;
    color: #f44336;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-btn1:hover {
    background-color: #ffebee;
}

/* 评论区上传样式 */
.comment-progress-bar-container {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 8px;
    background: #f9f9f9;
    transition: all 0.3s ease;
}

.comment-file-icon {
    font-size: 20px;
    margin-right: 12px;
    width: 32px;
    text-align: center;
}

.comment-file-info {
    flex: 1;
    min-width: 0;
}

.comment-file-name {
    font-weight: 500;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
}

.comment-progress-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.comment-speed-display {
    font-size: 11px;
    color: #666;
    min-width: 70px;
    margin-right: 8px;
}

.comment-progress-track {
    flex: 1;
    height: 5px;
    background-color: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    margin: 0 8px;
}

.comment-progress-fill {
    height: 100%;
    width: 0%;
    background-color: #2196F3;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.comment-size-info {
    font-size: 11px;
    color: #666;
    min-width: 100px;
    text-align: right;
    margin: 0 8px;
}

.comment-time-remaining {
    font-size: 11px;
    color: #666;
    min-width: 70px;
    text-align: right;
    margin-right: 12px;
}

.comment-delete-btn {
    background: none;
    border: none;
    font-size: 14px;
    color: #f44336;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comment-delete-btn:hover {
    background-color: #ffebee;
}

.comment-preview-item {
    position: relative;
    display: inline-block;
    margin: 5px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    background: #f5f5f5;
}

.comment-preview-item img,
.comment-preview-item video {
    display: block;
    max-width: 120px;
    max-height: 80px;
    object-fit: cover;
}

.comment-remove-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    background: rgba(244, 67, 54, 0.8);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.comment-remove-btn:hover {
    background: rgba(244, 67, 54, 1);
}
@media (max-width: 768px) {


/* 评论头像样式 */
.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
    flex-shrink: 0; /* 防止头像被压缩 */
}
.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保持图片比例并填充容器 */
}

/* 评论头部布局 */
.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

/* 评论信息样式 */
.comment-info {
    display: flex;
    flex-direction: column;
}

/* 评论用户名 */
.comment-username {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 2px;
}

/* 评论时间 */
.comment-time {
    font-size: 12px;
    color: #888;
}

/* 头部样式 - 更现代的设计 */
.header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 25px;
            border-bottom: 1px solid rgba(0,0,0,0.08);
            background-color: #ffffff;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.03);
            padding-top: 8px;
            padding-bottom: 8px;
            margin: 0;s
        }
        
        .header-content {
            display: flex;
            width: 100%;
            justify-content: space-between;
            align-items: center;
            flex-wrap: nowrap; /* 防止内容换行 */
        }
        
        .header h1 {
            position: relative;
            color: #ff3b7f;
            font-size: 18px;
            font-weight: 700;
            letter-spacing: -0.5px;
            background: linear-gradient(45deg, #ff3b7f, #ff6b9c);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 60%; /* 限制标题最大宽度 */
            margin-right: 20px; /* 添加右侧间距 */
        }
        
        .auth-buttons {
            display: flex;
            gap: 12px;
            flex-shrink: 0; /* 防止按钮区域收缩 */
        }
        
        .auth-buttons button {
            padding: 10px 18px;
            border: none;
            border-radius: 30px;
            background: linear-gradient(45deg, #ff3b7f, #ff6b9c);
            color: white;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            transition: all 0.3s ease;
            white-space: nowrap; /* 防止按钮文本换行 */
        }
        
        .auth-buttons button:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 15px rgba(255, 59, 127, 0.35);
        }
.notifications-btn-container {
    position: relative;
    display: inline-block;
}
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff3b7f;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 模态框样式 - 更精致的UI */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 30px;
    border-radius: 16px;
    width: 90%;
    max-width: 300px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}

.close:hover {
    color: #ff3b7f;
}

.tabs {
    display: flex;
    margin-bottom: 25px;
    background: #f8f9fa;
    border-radius: 50px;
    padding: 4px;
}

.tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    background: transparent;
    border: none;
    border-radius: 50px;
    cursor: pointer;
color: #ff3b7f;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tab.active {
    background: white;
    color: #ff3b7f;
font-size: 17px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 10px;
    transition: all 0.3s;
    background: #f8fafc;
    height: 20px
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff9cb9;
    box-shadow: 0 0 0 3px rgba(255, 59, 127, 0.15);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

button {
    padding: 10px 18px;
    background: linear-gradient(45deg, #ff3b7f, #ff3b7f);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}


.like-btn.liked {
  color: #ff4444;
  border-color: #ff4444;
}
.like-btn.liked i {
  color: #ff4444;
}

/* 发表表单样式 - 更现代的设计 */
.post-form {
    background-color: white;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    border: 1px solid rgba(0,0,0,0.03);
    margin-top: 10px
}

.post-form h2 {
    margin-bottom: 20px;
    color: #ff3b7f;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.post-form h2::before {
    content: "";
    display: block;
    width: 5px;
    height: 25px;
    background: linear-gradient(to bottom, #ff3b7f, #ff6b9c);
    border-radius: 10px;
}

.upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #f1f5f9;
    border-radius: 8px;
    cursor: pointer;
    color: #555;
    font-weight: 500;
    transition: all 0.3s;
    border: 1px dashed #cbd5e1;
}

.upload-btn:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
}

.preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

.preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.preview-item:hover {
    transform: translateY(-3px);
}

.preview-item img,
.preview-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-item .remove {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: rgba(255, 255, 255, 0.8);
    color: #ff3b7f;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    backdrop-filter: blur(2px);
}

.preview-item .remove:hover {
    background-color: #ff3b7f;
    color: white;
}

/* 帖子列表样式 - 更精致的卡片设计 */
.posts-container {
    margin-bottom: 30px;
}

.post-card {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
    margin-top: 11px;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08);
}

.post-header {
    display: flex;
    align-items: center;
    padding: 18px;
    border-bottom: 1px solid #f1f5f9;
}

.post-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;        /* 消除图片底部间隙 */
    vertical-align: top;  /* 对齐顶部防止基线问题 */
    border-radius: 50%;   /* 确保图片也是圆形 */
}
/* 媒体行布局 */
.media-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 5px;
}

/* 每个媒体项占33.3%宽度 */
.media-item {
    flex: 0 0 33.3333%;
    padding: 2px;
    box-sizing: border-box;
}

/* 媒体内容样式 */
.media-item img,
.media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1/1; /* 保持正方形 */
    border-radius: 4px;
}

.post-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;     /* 确保图片不会溢出容器 */
}
.post-info {
    flex: 1;
}

.post-username {
    font-weight: 700;
    color: #1e293b;
    font-size: 12px
}

.post-time {
    font-size: 10px;
    color: #94a3b8;
    display: flex;
    align-items: center;
}

.post-content {
    padding: 18px;
    font-size: 13px;
    line-height: 1.7;
    color: #334155;
}

.post-media {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    padding: 0 18px 18px;
}

.post-media img,
.post-media video {
    width: 100%;
    border-radius: 12px;
    aspect-ratio: 1/1;
    object-fit: cover;
    box-shadow: 0 4px 6px rgba(0,0,0,0.03);
    transition: transform 0.3s;
}

.post-media img:hover,
.post-media video:hover {
    transform: scale(1.03);
}

.post-actions {
    display: flex;
    padding: 12px 18px;
    border-top: 1px solid #f1f5f9;
    background: #f8fafc;
}

.post-actions button {
    background: none;
    border: none;
    color: #64748b;
    display: flex;
    align-items: center;
    font-size: 10px;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(255, 59, 127, 0.25);
}

.post-actions button i {
    margin-right: 8px;
    font-size: 18px;
}

.post-actions button:hover {
    color: #ff3b7f;
    background: rgba(255, 59, 127, 0.08);
}

/* 评论区样式 - 更清晰的层次结构 */
.comments-section {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    padding: 25px;
    border: 1px solid rgba(0,0,0,0.03);
}

.comments-section h2 {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.total-comments {
font-size: 10px
}

.comment {
    padding: 18px 0;
    border-bottom: 1px solid #f8fafc;
}

.comment:last-child {
    border-bottom: none;
}

.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(45deg, #2196f3, #21cbf3);
    color: white;
    display: block;        /* 消除图片底部间隙 */
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    margin-right: 12px;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);

}

.comment-info {
    flex: 1;
}

.comment-username {
    font-weight: 600;
    font-size: 15px;
    color: #1e293b;
}

.comment-time {
    font-size: 12px;
    color: #94a3b8;
}

.comment-content {
    font-size: 10px;
    line-height: 1;
    padding-left: 40px;
    color: #475569;
}

.reply-btn {
    background: none;
    border: none;
    color: #000000;
    font-size: 13px;
    padding: 0;
    margin-top: 8px;
    margin-left: 48px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}

.reply-btn:hover {
    color: #ff3b7f;
}

.replies {
    padding-left: 36px;
    margin-top: 15px;
    border-left: 2px solid #e2e8f0;
}

.comment-form {
    margin-top: 25px;
}

.comment-form textarea {
    width: 100%;
    min-height: 90px;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 15px;
    font-size: 10px;
    background: #f8fafc;
    transition: all 0.3s;
}

.comment-form textarea:focus {
    outline: none;
    border-color: #ff9cb9;
    box-shadow: 0 0 0 3px rgba(255, 59, 127, 0.15);
}

.load-more {
    text-align: center;
    margin: 25px 0;
}

.load-more button {
    padding: 8px 30px;
    border-radius: 30px;
    font-size: 12px
}

/* 个人主页样式 */
.profile-header {
    padding: 20px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 25px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.profile-header h2 {
    color: #ff3b7f;
    font-size: 20px;
    margin-bottom: 12px;
    background: linear-gradient(45deg, #ff3b7f, #ff6b9c);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 按钮样式增强 */
.delete-btn {
    background: linear-gradient(45deg, #f44336, #ff6b6b);
    width: 70px;
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 30px;
}

.delete-btn:hover {
    background: linear-gradient(45deg, #d32f2f, #ff5252);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(244, 67, 54, 0.25);
}

.view-count {
    color: #94a3b8;
    font-size: 10px;
    margin-left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.comment-delete {
    background: none;
    border: none;
    color: #f44336;
    font-size: 13px;
padding: 0;
    cursor: pointer;
    margin-left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.comment-delete:hover {
    color: #d32f2f;
}

 
        
    
   


/* 动画效果 */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

/* 微交互增强 */
button, .upload-btn, .post-card {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #ff9cb9, #ff3b7f);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #ff8aad, #ff2a72);
}
.btn {
    background: linear-gradient(135deg, #6a5af9, #d66efd);
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}
/* 头像相关样式 */
.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 8px;
    object-fit: cover;
}

.post-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
}

.post-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-upload-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.avatar-preview {
    height: 300px;
    margin: 0 auto 20px;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.avatar-preview img {
    max-width: 100%;
    max-height: 100%;
}

.avatar-upload-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.upload-btn {
    padding: 8px 16px;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: inline-block;
    font-size: 10px
}

.save-btn {
    padding: 8px 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.cancel-btn {
    padding: 8px 16px;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Cropper.js覆盖样式 */
.cropper-view-box,
.cropper-face {
    border-radius: 50%;
}

.cropper-modal {
    background-color: rgba(255, 255, 255, 0.8);
}
   .footer {
            text-align: center;
            padding: 2rem 1rem;
            color: #718096;
            font-size: 0.9rem;
            background: #f7fafc;
            border-top: 1px solid #e2e8f0;
            margin-top: 2rem;
            font-size:11px;
            visibility: hidden;
        }
        
        .footer-links {
            display: flex;
            justify-content: center;
            list-style: none;
            margin-top: 1rem;
            flex-wrap: wrap;
        }
        
        .footer-links li {
            margin: 0.5rem 1rem;
        }
        
        .footer-links a {
            color: #4a5568;
            text-decoration: none;
            transition: color 0.3s;
        }
        
        .footer-links a:hover {
            color: #1a4b8c;
        }

/* 通知按钮样式 */
.notifications-btn {
    position: relative;
    margin-left: 15px;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff4d4f;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    display: none;
}

/* 通知中心样式 */
.notifications-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
}

.notifications-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
    max-height: 80vh;
    overflow-y: auto;
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    margin-top: 10px
}

.notification {
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.notification.unread {
    background-color: #f0f7ff;
    border-left: 3px solid #1890ff;
}

.notification.read {
    background-color: #f9f9f9;
}

.notification:hover {
    background-color: #f5f5f5;
}

.notification-content {
    margin-bottom: 10px;
    line-height: 1.5;
}

.notification-actions {
    text-align: right;
}

.mark-read-btn {
    background: none;
    border: none;
    color: #1890ff;
    cursor: pointer;
    padding: 5px 10px;
}

.mark-read-btn:hover {
    background-color: #e6f7ff;
    border-radius: 4px;
}

.no-notifications {
    text-align: center;
    padding: 40px 0;
    color: #999;
}

/* 消息中心页样式 */
.notifications-container {
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
/* 评论样式 */
.comment {
    padding: 1px;
    border-radius: 8px;
    background-color: #ffffff;
    position: relative;
    transition: all 0.3s ease;
}

.reply-comment {
    border-left: 3px solid #f0f8ff;
    margin-top: 10px;
}

.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.comment-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-info {
    flex: 1;
}

.comment-username {
    font-weight: bold;
    font-size: 16px;
    color: #333;
}

.comment-time {
    font-size: 12px;
    color: #888;
}

.comment-content {
    margin-bottom: 10px;
    font-size: 10px;
    line-height: 1;
    color: #444;
 word-wrap: break-word;
            white-space: pre-wrap;
            overflow-wrap: break-word;
}

.comment-actions {
    display: flex;
    gap: 10px;
}

.reply-btn, .comment-delete {
    padding: 5px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
    transform: translateX(-12px);
}

.reply-btn {
    background-color: #f0f8ff;
    color: #000000;
}

.reply-btn:hover {
    background-color: #bdbdbd;
    transform: translateX(-12px);
}

.comment-delete {
    background-color: #f0f8ff;
    color: black;
    margin-top: 7px;
    transform: translateX(-12px);
}

.comment-delete:hover {
    background-color: #bdbdbd;
    transform: translateX(-12px);
}

/* 评论表单 */
.comment-form {
    margin-top: 20px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.comment-form textarea {
    width: 100%;
    height: 100px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    resize: vertical;
    font-size: 10px;
    margin-bottom: 10px;
}

.comment-form textarea:focus {
    border-color: #f0f8ff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

#submitComment {
    background: linear-gradient(45deg, #3b64ff, #ff3b7f);
    color: black;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    transition: background-color 0.3s;
}

#submitComment:hover {
    background-color: #3a7bc8;
}
/* 搜索表单样式 */
.search-form {
    margin: 20px 0;
    padding: 8px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.search-container input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    min-width: 150px;
}

.search-container button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

#searchBtn {
    background-color: #f0f8ff;
    color: white;
}

#searchBtn:hover {
    background-color: #3a7bc8;
}

#clearSearchBtn {
    background-color: #f5f5f5;
    color: #ffffff;
}

#clearSearchBtn:hover {
    background-color: #e0e0e0;
}

.search-info {
    padding: 10px 15px;
    background-color: #f0f8ff;
    border-left: 4px solid #f0f8ff;
    margin: 10px 0;
    border-radius: 4px;
    font-size: 14px;
}

/* 评论折叠按钮样式 */
.toggle-replies-btn {
    padding: 5px 10px;
    background-color: #f0f8ff;
    border: 1px solid #f0f8ff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.toggle-replies-btn:hover {
    background-color: #e0f0ff;
}

/* 回复容器样式 */
.replies-container {
    margin-top: 10px;
    padding-left: 20px;
    border-left: 2px solid #e0e0e0;
}
/* 搜索表单样式 */
.search-form {
    margin: 13px 0;
    padding: 8px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.search-container input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 10px;
    min-width: 90px;
    height: 30px
}

.search-container button {
    padding: 8px 17px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 10px;
    transition: background-color 0.3s;
}

#searchBtn {
    background-color: #f0f8ff;
    color: white;
}

#searchBtn:hover {
    background-color: #3a7bc8;
}

#clearSearchBtn {
    background-color: #f5f5f5;
    color: #ffffff;
}

#clearSearchBtn:hover {
    background-color: #e0e0e0;
}

.search-info {
    padding: 10px 15px;
    background-color: #f0f8ff;
    border-left: 4px solid #f0f8ff;
    margin: 10px 0;
    border-radius: 4px;
    font-size: 14px;
}

/* 评论折叠按钮样式 */
.toggle-replies-btn {
    padding: 5px 10px;
    background-color: #000000;
    color: #000000;
    border: 1px solid #f0f8ff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
margin-top: 10px;
}

.toggle-replies-btn:hover {
    background-color: #f0f8ff;
}

/* 回复容器样式 */
.replies-container {
    margin-top: 10px;
    padding-left: 20px;
    border-left: 2px solid #e0e0e0;
}
.comment-content-container {
    margin-top: 10px;
}

.comment-media {
    margin-top: 10px;
}

.media-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.media-item {
    width: calc(33.33% - 10px);
    aspect-ratio: 1/1;
  
    border-radius: 4px;
    transform: translateX(38px); 
}

.media-item img,
.media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pmedia-item {
    width: calc(33.33% - 10px);
    aspect-ratio: 1/1;
  
    border-radius: 4px;
    
}
.load-more-btn {
    display: block;
    width: 100%;
    padding: 12px;
    margin: 20px 0;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background-color: #e9e9e9;
    color: #333;
}

.load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
/* 收藏按钮样式 */
.favorite-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.favorite-btn:hover {
    color: #ff4444;
}

.favorite-btn.favorited {
    color: #ff4444;
}
        .qq-login-container {
            margin-top: 15px;
        }

        .or-use {
            text-align: center;
            color: #999;
            font-size: 12px;
            margin-bottom: 10px;
        }

        .qq-login-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 8px 20px;
            background-color: #f5f5f5; /* 灰白色背景 */
            color: #333;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
            text-decoration: none;
            width: 100%; /* 与输入框等宽 */
            box-sizing: border-box;
        }

        .qq-circle {
            width: 24px;
            height: 24px;
            border-radius: 50%; /* 圆形图标 */
            background-color: #12B7F5; /* QQ蓝色 */
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 8px;
        }

        .qq-login-btn:hover {
            background-color: #eee;
            border-color: #ccc;
            transform: translateY(-1px);
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }

        .qq-login-btn:active {
            transform: translateY(0);
            box-shadow: none;
        }
 /* 表单通用样式 */
        .form-group {
            width: 100%;
            box-sizing: border-box;
            margin-bottom: 15px;
        }
        
        .form input,
        .form button {
            width: 100%;
            box-sizing: border-box;
            padding: 8px 12px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 14px;
        }
        
        .form button {
            background-color: #4CAF50;
            color: white;
            border: none;
            padding: 10px;
            cursor: pointer;
            margin-bottom: 10px;
        }
        
        .form button:disabled {
            background-color: #cccccc;
            cursor: not-allowed;
        }

        /* 同意条款勾选框样式 */
        .terms-container {
            display: flex;
            align-items: center;
            font-size: 12px;
            color: #666;
            margin: 10px 0 15px;
        }
        
        .terms-container input {
            width: auto;
            margin-right: 6px;
        }
        
        .terms-container a {
            color: #12B7F5;
            text-decoration: none;
        }
        
        .terms-container a:hover {
            text-decoration: underline;
        }
 /* 添加评论区域样式 */
        .comments-section {
            margin-top: 30px;
            background-color: #fff;
            border-radius: 8px;
            padding: 20px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        }
        
        .comments-section h2 {
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 1px solid #eee;
        }
        
        .comment-form {
            margin-top: 20px;
        }
        
        .comment-form textarea {
            width: 100%;
            height: 100px;
            padding: 12px;
            border: 1px solid #ddd;
            border-radius: 6px;
            resize: vertical;
            font-size: 10px;
            margin-bottom: 10px;
        }
        
        .comment-form textarea:focus {
            border-color: #4a90e2;
            outline: none;
            box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
        }
        
        #submitComment {
            background: linear-gradient(45deg, #3b64ff, #ff3b7f);
            color: white;
            border: none;
            padding: 3px 5px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 15px;
            transition: background-color 0.3s;
            height: 29px;
            white-space: nowrap;
            width: 43px;
        }
        
        #submitComment:hover {
            background-color: #3a7bc8;
        }
        
        /* 新增：评论图片上传样式 */
        .comment-media-upload {
            display: flex;
            flex-direction: column;
            margin-bottom: 10px;
            height: 30px;
            min-height: 30px;
        }
        
        #commentMediaBtn {
            align-self: flex-start;
            min-height: 30px;
            background-color: #f5f5f5;
            border: 1px solid #ddd;
            padding: 8px 14px;
            border-radius: 4px;
            cursor: pointer;
            background: linear-gradient(45deg, #cdb2bc, #c5b6bb);
            margin-bottom: 7px;
            height: auto;
        }
        
        #commentMediaBtn:hover {
            background-color: #eaeaea;
        }
        
        #commentPreviewContainer {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 10px;
        }
        
        .comment-preview-item {
            position: relative;
            width: 100px;
            height: 100px;
            border-radius: 4px;
            overflow: hidden;
        }
        
        .comment-preview-item img, 
        .comment-preview-item video {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .comment-preview-item .remove {
            position: absolute;
            top: 5px;
            right: 5px;
            background: rgba(0,0,0,0.5);
            color: white;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }
/* 评论容器 */
#commentsContainer {

    flex-direction: column;

}

/* 主评论样式 */
.comment-main {
    background: white;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 回复评论样式 - 向右缩进 */
.comment-reply {
    background: #ffffff;
    border-radius: 6px;
    margin-left: 48px; /* 向右缩进 */
    position: relative;
    margin-top: 10px;
    margin-bottom: 10px
}

/* 添加箭头指示回复关系 */
.comment-reply::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 12px;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 12px solid #ffffff;
}

/* 回复关系样式 */
.reply-to {
    color: #666;
    font-size: 0.9em;
    margin-left: 4px;
}

/* 评论头部 */
.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.comment-avatar img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

.comment-info {
    flex: 1;
}

.comment-username {
    font-weight: 500;
    font-size: 10px;
}

.comment-time {
    color: #888;
    font-size: 10px;
}

/* 评论内容 */
.comment-content {
    font-size: 10px;
    line-height: 1.3;
    margin-bottom: 8px;
}

/* 评论媒体 */
.comment-media {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.media-item {
    max-width: 150px;
    max-height: 150px;
    border-radius: 4px;
    overflow: hidden;
}

.media-item img, 
.media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 评论操作 */
.comment-actions {
    display: flex;
}

.comment-actions button {
    background: none;
    border: none;
    color: #666;
    font-size: 9px;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
}

.comment-actions button:hover {
    background: #f0f0f0;
}

/* 无评论提示 */
.no-comments {
    text-align: center;
    color: #888;
    padding: 20px;
}
.content-link {
    color: #1a73e8;
    text-decoration: underline;
    word-break: break-all;
}

.content-link i {
    margin-right: 5px;
}
/* 用户选择模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    max-width: 450px;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.close-modal {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #888;
}

.close-modal:hover {
    color: #000;
}

.search-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.user-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 4px;
}

.user-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    transition: background-color 0.2s;
}

.user-item:hover {
    background-color: #f9f9f9;
}

.user-info {
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

.user-name {
    font-size: 14px;
}

.user-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.modal-footer {
    margin-top: 15px;
    text-align: right;
}

.modal-footer button {
    background-color: #4a90e2;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.modal-footer button:hover {
    background-color: #3a7bc8;
}

.no-users {
    text-align: center;
    padding: 20px;
    color: #888;
}
 .notifications-container {
            margin-top: 20px;
        }
        
        .notification {
            background-color: #fff;
            border-radius: 8px;
            padding: 15px;
            margin-bottom: 15px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .notification.unread {
            background-color: #f0f8ff;
            border-left: 4px solid #4a90e2;
        }
        
        .notification-content {
            flex: 1;
        }
        
        .notification-text {
            font-size: 10px;
            margin-bottom: 5px;
        }
        
        .notification-time {
            font-size: 10px;
            color: #888;
        }
        
        .notification-actions {
            display: flex;
            gap: 10px;
        }
        
        .mark-read-btn, .delete-notification-btn {
            padding: 5px 10px;
            border: none;
            cursor: pointer;
            font-size: 12px;
        }
        
        .mark-read-btn {
            background-color: #4a90e2;
            color: white;
            font-size: 10px
        }
        
        .delete-notification-btn {
            background-color: #f44336;
            color: white;
            font-size: 10px
        }
        
        .no-notifications {
            text-align: center;
            padding: 20px;
            color: #888;
        }
/* 通知筛选按钮样式 */
.filter-buttons {
    display: flex;
    margin-bottom: 15px;
}

.filter-btn {
    padding: 6px 12px;
    background: linear-gradient(45deg, #ffffff, #ffffff);
    border: none;
    border-radius: 16px;
    cursor: pointer;
    font-size: 10px;
    transition: all 0.3s;
    color: black;
}

.filter-btn.active {
    background: linear-gradient(45deg, #8721f3, #4c548b);
    color: white;
}

.filter-btn:hover:not(.active) {
    background-color: #e0e0e0;
}

/* 通知图标样式 */
.notification-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 18px;
}

.notification {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
}
/* 在现有CSS中添加 */
.like-comment-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 0.9rem;
    margin-top: 7px;
}

.like-comment-btn.liked {
    color: #ff3b7f;
}

.like-comment-btn:hover {
    color: #ff3b7f;
}

.like-count {
    margin-left: 4px;
}
.profile-header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 20px;
            border-radius: 10px;
            margin-bottom: 20px;
            position: relative;
            margin-top: 20px;
        }
        
        .profile-info {
            display: flex;
            align-items: center;
            gap: 20px;
        }
        
        .profile-avatar {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            border: 4px solid rgba(255, 255, 255, 0.3);
            overflow: hidden;
        }
        
        .profile-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .profile-details {
            flex: 1;
        }
        
        .profile-username {
            font-size: 15px;
            font-weight: bold;
            margin-bottom: 3px;
        }
        
        .profile-join-date {
            font-size: 10px;
            opacity: 0.9;
        }
        
        .profile-stats {
            display: flex;
            gap: 20px;
        }
        
        .stat-item {
            text-align: center;
        }
        
        .stat-count {
            font-size: 15px;
            font-weight: bold;
        }
        
        .stat-label {
            font-size: 10px;
            opacity: 0.8;
        }
        
        .profile-filter {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
        }
        
      
        
        .banned-alert {
            background-color: #ff4757;
            color: white;
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .banned-alert.hidden {
            display: none;
        }
 /* 添加下拉菜单样式 */
        .dropdown {
            position: relative;
            display: inline-block;
            margin-left: 15px;
        }
        
        .dropdown-content {
            display: none;
            position: absolute;
            background-color: #fff;
            box-shadow: 0 8px 20px rgba(0,0,0,0.15);
            z-index: 100;
            right: 0;
            min-width: 150px;
            top: 100%;
            border-radius: 12px;
            overflow: hidden;
            opacity: 0;
            transform: translateY(10px);
            transition: all 0.3s ease;
            border: 1px solid rgba(0,0,0,0.05);
        }
        
        .dropdown:hover .dropdown-content {
            display: block;
            opacity: 1;
            transform: translateY(0);
        }
        
        .dropdown-content a, 
        .dropdown-content button {
            color: #4c4747;
            padding: 9px 15px;
            text-decoration: none;
            display: flex;
            align-items: center;
            text-align: left;
            width: 100%;
            border: none;
            background: transparent;
            cursor: pointer;
            font-size: 10px;
            transition: all 0.2s ease;
            border-bottom: 1px solid #f5f5f5;
        }
        
        .dropdown-content a:last-child, 
        .dropdown-content button:last-child {
            border-bottom: none;
        }
        
        .dropdown-content a:hover, 
        .dropdown-content button:hover {
            background-color: #f8f9ff;
            color: #6a5af9;
        }
        
        .dropdown-content a i, 
        .dropdown-content button i {
            margin-right: 12px;
            width: 18px;
            text-align: center;
            font-size: 16px;
        }
        
        /* 调整消息按钮徽章位置 */
        .dropdown .notification-badge {
            position: absolute;
            top: -5px;
            right: -5px;
            background: #ff4757;
            color: white;
            border-radius: 50%;
            width: 14px;
            height: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 8px;
            font-weight: bold;
        }
        
        /* 确保头像按钮有正确的大小 */
        #profileBtn {
            width: 35px;
            height: 35px;
            border-radius: 50%;
            display: block;
            background: linear-gradient(135deg, #6a5af9, #d66efd);
            border: 3px solid white;
            box-shadow: 0 4px 10px rgba(106, 90, 249, 0.25);
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }
        
        #profileBtn::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            
        }
        
        #profileBtn:hover {
            transform: scale(1.05);
            box-shadow: 0 6px 15px rgba(106, 90, 249, 0.35);
        }
        
        /* 添加下拉菜单箭头 */
        .dropdown-content::before {
            content: "";
            position: absolute;
            top: -10px;
            right: 15px;
            width: 0;
            height: 0;
            border-left: 10px solid transparent;
            border-right: 10px solid transparent;
            border-bottom: 10px solid white;
            z-index: 1;
        }
        
        .dropdown-content::after {
            content: "";
            position: absolute;
            top: -11px;
            right: 15px;
            width: 0;
            height: 0;
            border-left: 10px solid transparent;
            border-right: 10px solid transparent;
            border-bottom: 10px solid rgba(0,0,0,0.05);
            z-index: 0;
        }
        
        /* 登录按钮样式 */
        #loginBtn {
            background: linear-gradient(135deg, #6a5af9, #d66efd);
            border: none;
            padding: 8px 14px;
            border-radius: 30px;
            color: white;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(106, 90, 249, 0.25);
            font-size: 10px
        }
        
        #loginBtn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(106, 90, 249, 0.35);
        }
/* 新增的设置页面样式 */
        .settings-container {
            display: block;
            flex-direction: row;
            margin: 20px 0;
            gap: 20px;
            min-height: 500px;
        }
        
        .settings-sidebar {
            width: 100%;
            background: #fff;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.08);
            padding: 20px;
            height: fit-content;
        }
        
        .settings-sidebar h2 {
            font-size: 15px;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 1px solid #eee;
            color: #6a11cb;
        }
        
        .settings-button {
            display: flex;
            align-items: center;
            width: 100%;
            padding: 12px 15px;
            margin-bottom: 10px;
            background: #f8f9fa;
            border: none;
            border-radius: 8px;
            text-align: left;
            font-size: 13px;
            color: #333;
            transition: all 0.3s ease;
            cursor: pointer;
        }
        
        .settings-button:hover {
            background: #6a11cb;
            color: white;
            transform: translateX(5px);
        }
        
        .settings-button i {
            margin-right: 10px;
            font-size: 13px;
        }
        
        .settings-main {
            flex: 1;
            background: #fff;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.08);
            padding: 30px;
            margin-top: 20px;
        }
        
        .settings-header {
            margin-bottom: 30px;
            padding-bottom: 20px;
            border-bottom: 1px solid #eee;
        }
        
        .settings-header h1 {
            font-size: 2rem;
            color: #6a11cb;
            margin-bottom: 10px;
        }
        
        .settings-header p {
            color: #666;
            font-size: 1.05rem;
        }
        
        .status-card {
            background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
            border-radius: 12px;
            padding: 25px;
            color: white;
            margin-bottom: 30px;
            position: relative;
            overflow: hidden;
        }
        
        .status-card::before {
            content: "";
            position: absolute;
            top: -50px;
            right: -50px;
            width: 200px;
            height: 200px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
        }
        
        .status-card h3 {
            font-size: 1.5rem;
            margin-bottom: 15px;
            position: relative;
        }
        
        .status-card p {
            margin-bottom: 20px;
            position: relative;
            max-width: 70%;
        }
        
        .status-badge {
            background: rgba(255, 255, 255, 0.2);
            padding: 5px 15px;
            border-radius: 20px;
            font-weight: bold;
            display: inline-block;
        }
        
        .settings-section {
            margin-bottom: 30px;
        }
        
        .settings-section h3 {
            font-size: 1.3rem;
            margin-bottom: 20px;
            color: #333;
            padding-bottom: 10px;
            border-bottom: 1px solid #eee;
        }
        
        .feature-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 20px;
        }
        
        .feature-card {
            background: #f8f9fa;
            border-radius: 10px;
            padding: 20px;
            transition: all 0.3s ease;
        }
        
        .feature-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 16px rgba(0,0,0,0.1);
            background: #fff;
        }
        
        .feature-card i {
            font-size: 2rem;
            color: #6a11cb;
            margin-bottom: 15px;
        }
        
        .feature-card h4 {
            font-size: 1.1rem;
            margin-bottom: 10px;
            color: #333;
        }
        
        .feature-card p {
            color: #666;
            font-size: 0.9rem;
        }
        
        
.bottom-nav {
    opacity: 1; /* 使底部导航可见 */
    display: flex; /* 确保使用 flex 布局 */
    justify-content: space-around; /* 按钮均匀分布 */
    align-items: center;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 500px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 50px;
    padding: 12px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 65px;
}
        
        .nav-btn {
            background: none;
            border: none;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            font-size: 15px;
            color: #555;
            transition: all 0.3s ease;
        }
        
        .nav-btn:hover {
            background-color: #f0f0f0;
            transform: translateY(-3px);
        }
        
        .center-btn {
            width: 60px;
            height: 60px;
            font-size: 28px;
            background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            margin: 0 10px;
        }
        
        .center-btn:hover {
            background: linear-gradient(135deg, #e0e0e0, #d0d0d0);
            transform: scale(1.05);
        }
.comment-actions {
    display: flex;
    margin-bottom: 7px;
    gap: 0px;
}
/* 修改cmt为垂直布局 */
.cmt {
  display: flex;
  flex-direction: column; /* 改为垂直方向 */
  margin-bottom: 20px;
  width: 100%; /* 确保占满宽度 */
}

/* 新增输入框组容器 */
.input-group {
  display: flex;
  width: 100%;
  align-items: flex-end; /* 底部对齐 */
}
.floating-comment-form {
    position: fixed;
    bottom: 55px; /* 完全贴底 */
    left: 50%; /* 水平居中关键1 */
    transform: translateX(-50%); /* 水平居中关键2 */
    max-width: 80%; /* 固定宽度 */
    width: 90%; /* 防止在小屏幕上溢出 */
    background: white;
    padding: 10px 10px 0; /* 下边距改为0 */
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
    border-top: 1px solid #eee; /* 可选：顶部边框 */
    box-sizing: border-box; /* 确保 padding 不影响总宽度 */
}
/* 调整文本域样式 */
.floating-comment-form textarea {
  flex-grow: 1; /* 占据剩余空间 */
  height: 30px;
  min-height: 30px;
  max-height: 150px; /* 允许扩大高度 */
  resize: vertical; /* 允许垂直调整 */
  overflow-y: auto;
  padding: 8px;
  box-sizing: border-box;
  margin-right: 1px; /* 与按钮间距 */
}
/* 预览容器样式 */
#commentPreviewContainer {
  width: 100%;
  margin-bottom: 10px; /* 与输入框间距 */
  display: flex; /* 用于媒体项排列 */
  flex-wrap: wrap; /* 多项目换行 */
  gap: 8px; /* 项目间距 */
}
        
/* 通用样式 */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* 主上传区域样式 */
.progress-bar-container {
    display: flex;
    align-items: center;
    padding: 0px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #fff;
    transition: all 0.3s ease;
}

.file-icon {
    font-size: 15px;
    margin-right: 10px;
    width: 25px;
    text-align: center;
}

.file-info {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    margin-bottom: 0px;
}

.progress-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.speed-display {
    font-size: 10px;
    color: #666;
    min-width: 60px;
}

.progress-track {
    flex: 1;
    height: 6px;
    background-color: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    margin: 0 10px;
    display: none;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background-color: #2196F3;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.size-info {
    font-size: 10px;
    color: #666;
    min-width: 90px;
    text-align: left;
    margin: 0 10px;
    margin-left: 0px;
}

.time-remaining {
    font-size: 10px;
    color: #666;
    min-width: 50px;
    text-align: left;
    margin-right: 0px;
}

.delete1-btn {
    background: none;
    border: none;
    font-size: 16px;
    color: #f44336;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-btn:hover {
    background-color: #ffebee;
}

/* 评论区上传样式 */
.comment-progress-bar-container {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 8px;
    background: #f9f9f9;
    transition: all 0.3s ease;
}

.comment-file-icon {
    font-size: 20px;
    margin-right: 12px;
    width: 32px;
    text-align: center;
}

.comment-file-info {
    flex: 1;
    min-width: 0;
}

.comment-file-name {
    font-weight: 500;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
}

.comment-progress-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.comment-speed-display {
    font-size: 11px;
    color: #666;
    min-width: 70px;
    margin-right: 8px;
}

.comment-progress-track {
    flex: 1;
    height: 5px;
    background-color: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    margin: 0 8px;
}

.comment-progress-fill {
    height: 100%;
    width: 0%;
    background-color: #2196F3;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.comment-size-info {
    font-size: 11px;
    color: #666;
    min-width: 100px;
    text-align: right;
    margin: 0 8px;
}

.comment-time-remaining {
    font-size: 11px;
    color: #666;
    min-width: 70px;
    text-align: right;
    margin-right: 12px;
}

.comment-delete-btn {
    background: none;
    border: none;
    font-size: 14px;
    color: #f44336;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comment-delete-btn:hover {
    background-color: #ffebee;
}

.comment-preview-item {
    position: relative;
    display: inline-block;
    margin: 5px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    background: #f5f5f5;
}

.comment-preview-item img,
.comment-preview-item video {
    display: block;
    max-width: 120px;
    max-height: 80px;
    object-fit: cover;
}

.comment-remove-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    background: rgba(244, 67, 54, 0.8);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.comment-remove-btn:hover {
    background: rgba(244, 67, 54, 1);
}
 .banned-alert {
        padding: 12px 15px;
    }
    
    .banned-alert > div {
        font-size: 14px;
        gap: 10px;
    }
    
    .banned-alert i.fas.fa-ban {
        font-size: 16px;
    }
    
    #closeBannedAlert {
        width: 28px;
        height: 28px;
        font-size: 18px;
    }
}