/* 全局样式 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* 导航栏 */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 横幅轮播 */
.banner-slider {
    position: relative;
    overflow: hidden;
    height: 400px;
    background-color: #f0f0f0;
    margin-bottom: 2rem;
}

.slider-container {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-controls {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.slider-controls button {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.slider-controls button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.slider-dots {
    display: flex;
    gap: 8px;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.slider-dots .dot.active {
    background-color: white;
}

/* 文章卡片 */
.post-card {
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.post-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.post-card .card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.post-card .card-footer {
    background-color: white;
    border-top: none;
}

/* 页脚 */
footer {
    background-color: #343a40 !important;
}

footer a {
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: #0d6efd !important;
}

.social-links a {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s;
}

.social-links a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: white !important;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .banner-slider {
        height: 250px;
    }
    
    .post-card .card-img-top {
        height: 150px;
    }
}

/* 文章内容样式 */
.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-content img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    border-radius: 8px;
}

.post-content h2,
.post-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.post-content blockquote {
    border-left: 4px solid #0d6efd;
    padding-left: 1rem;
    color: #6c757d;
    margin: 1.5rem 0;
}

/* 评论样式 */
.comment-avatar {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.comment-card {
    transition: transform 0.2s;
}

.comment-card:hover {
    transform: translateX(5px);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .post-content {
        font-size: 1rem;
    }
    
    .comment-avatar {
        width: 40px;
        height: 40px;
    }
}

/* 分页样式 */
.pagination {
    margin-top: 30px;
}

.page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
}

.page-link {
    color: #007bff;
    margin: 0 5px;
    border-radius: 4px;
}

.page-link:hover {
    color: #0056b3;
}


/* 点赞按钮样式 */
.like-section .btn {
    transition: all 0.3s ease;
}

.like-section .btn:hover {
    transform: scale(1.05);
}

/* 评论区域样式 */
.comment-list .card {
    border-left: 3px solid #007bff;
}

.comment-list .card-body {
    padding: 1rem;
}

/* 评论表单样式 */
.comment-form textarea {
    resize: none;
    min-height: 100px;
}

/* 好友操作按钮样式 */
.friend-item {
    position: relative;
    padding: 12px;
    border-bottom: 1px solid #eee;
}

[data-action] {
    padding: 6px 12px;
    margin: 0 5px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

[data-action="add"] {
    background: #4CAF50;
    color: white;
}

[data-action="delete"] {
    background: #f44336;
    color: white;
}

/* Toast通知 */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1100;
    min-width: 250px;
    opacity: 1;
    transition: opacity 0.5s;
}

.toast.show {
    display: block;
    opacity: 1;
}

.toast.bg-success {
    background-color: #28a745 !important;
}

.toast.bg-error {
    background-color: #dc3545 !important;
}

.toast.bg-info {
    background-color: #17a2b8 !important;
}




/* 头像样式 */
.avatar-sm {
    width: 40px;
    height: 40px;
    object-fit: cover;
}

.avatar-md {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.avatar-lg {
    width: 150px;
    height: 150px;
    object-fit: cover;
}

/* 聊天消息样式 */
.chat-messages {
    scroll-behavior: smooth;
}

/* 性别图标颜色 */
.fa-mars {
    color: #0d6efd;
}

.fa-venus {
    color: #dc3545;
}

.fa-genderless {
    color: #6c757d;
}

/* 消息气泡 */
.message-content {
    word-break: break-word;
    white-space: pre-wrap;
}

.chat-messages {
    overflow-anchor: none; /* 防止浏览器自动滚动 */
}

.device-item {
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}
.device-item:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
/* 已读状态样式 */
.read-status {
font-size: 0.75rem;
margin-top: 2px;
}

.read-status i {
margin-right: 3px;
}

/* 未读状态样式 */
.read-status.text-muted {
opacity: 0.7;
}

/* 已读状态样式 */
.read-status.text-primary {
font-weight: 500;
}