/* 响应式样式 */
@media (max-width: 992px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-avatar {
        margin-right: 0;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: fixed;
        bottom: 100px;
        right: 30px;
        width: auto;
        background-color: #fff;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
        padding: 15px;
        border-radius: 15px;
        z-index: 999;
    }
    
    .main-nav.active {
        display: block;
        animation: fadeInUp 0.3s ease-out;
    }
    
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .main-nav ul {
        flex-direction: column;
    }
    
    .main-nav li {
        margin-left: 0;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .main-nav li:last-child {
        margin-bottom: 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    /* 移动端图片显示 - 一行两张 */
    .post-images {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .post-images.multiple-images .post-image-item:first-child:nth-last-child(1) {
        grid-column: span 2;
    }
    
    .post-images.multiple-images .post-image-item:first-child:nth-last-child(2),
    .post-images.multiple-images .post-image-item:first-child:nth-last-child(2) ~ .post-image-item {
        grid-column: span 1;
    }
    
    .post-images.multiple-images .post-image-item:first-child:nth-last-child(3),
    .post-images.multiple-images .post-image-item:first-child:nth-last-child(3) ~ .post-image-item {
        grid-column: span 1;
    }
    
    .post-images.multiple-images .post-image-item:first-child:nth-last-child(3):nth-child(3) {
        grid-column: span 2;
    }
    
    /* 优化表单在移动端的显示 */
    .form-group label {
        font-size: 16px;
    }
    
    .form-group input[type="text"],
    .form-group input[type="password"],
    .form-group input[type="email"],
    .form-group textarea {
        padding: 12px;
        font-size: 15px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 15px;
    }
    
    /* 优化图片上传预览 */
    .image-previews {
        justify-content: center;
    }
    
    .image-preview-item {
        width: 100px;
        height: 100px;
    }
}

/* 小屏幕手机 */
@media (max-width: 480px) {
    .post-images {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }
    
    .image-preview-item {
        width: 80px;
        height: 80px;
    }
    
    .logout-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .post-card {
        border-radius: 10px;
    }
    
    .post-content {
        padding: 10px;
    }
    
    .post-header, .post-footer {
        padding: 10px;
    }
}